Summary: | app-office/abiword-3.0.2-r1 (with app-text/enchant-2.1.0) - enchant_checker.cpp:130:53: error: ‘enchant_dict_free_suggestions’ was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | causality, soap |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 629838 | ||
Attachments: |
build.log
Enchant-2 patch from Arch enchant-2-better-but-autoconf-not-works.patch |
Description
Juergen Rose
2017-09-03 20:25:23 UTC
~amd64 system here. I ran into this same error myself while trying to rebuild abiword-3.0.2-r1. I noticed that I also had app-text/enchant-2.1.0 installed and that it was masked (!). I never added any sort of entry to /etc/portage/package.unmask to install it. I assume this means it was once marked ~unstable, at which point it was installed, and then was later masked? The current unmasked and unstable version is app-text/enchant-1.6.1. A simple "emerge --oneshot enchant" downgraded mine from enchant-2.1.0 to enchant-1.6.1. Therefore, the masked version is no longer installed. The unstable one now is. After doing this, I was able to successfully rebuild app-office/abiword-3.0.2-r1. If there is a bug, it's that we ended up with a masked package installed that we never explicitly unmasked. Another potential way to solve this is from looking at what abiword depends on: # equery depends enchant * These packages depend on enchant: app-office/abiword-3.0.2-r1 (spell ? >=app-text/enchant-1.2) A constraint could be placed on this abiword dependency, to not accept a version of enchant greater than 1.6. Created attachment 565208 [details, diff]
Enchant-2 patch from Arch
Created attachment 574278 [details, diff]
enchant-2-better-but-autoconf-not-works.patch
I cannot figure out how configure works here, I have patched a lot, but rusult:
---
configure: error: Package requirements (
fribidi >= 0.10.4
glib-2.0 >= 2.6.0 gthread-2.0 >= 2.6.0 gobject-2.0 >= 2.6.0
libgsf-1 >= 1.14.18
wv-1.0 >= 1.2.0
libxslt
enchant >= 2.1.1 gio-2.0
cairo-pdf cairo-ps pangocairo
gtk+-3.0 >= 3.0.8 gtk+-unix-print-3.0 librsvg-2.0 >= 2.16.0 cairo-fc
x11) were not met:
Package 'enchant', required by 'virtual:world', not found
---
making a local app-text/enchant-2.2.3.ebuild with apropriet symlinks, then all works fine with: --- enchant-2.2.3.ebuild 2018-06-29 10:36:29.400214291 +0200 +++ enchant-2.2.3.ebuild 2019-05-03 17:36:46.663458583 +0200 @@ -42,4 +42,8 @@ src_install() { default find "${D}" -name '*.la' -delete || die + ln -s ${D}/usr/lib64/pkgconfig/enchant-2.pc ${D}/usr/lib64/pkgconfig/enchant.pc || die + ln -s ${D}/usr/lib64/enchant-2 ${D}/usr/lib64/enchant || die + ln -s ${D}/usr/include/enchant-2 ${D}/usr/include/enchant || die + ln -s ${D}/usr/bin/enchant-2 ${D}/usr/bin/enchant || die } I don't know, why enchant-2 needs other dirs than enchant-1 ? --- Because they (1.6 and 2.1.3+) are parallel-installable and thus install into different namespaces, so no files collide. enchant-2 is p.masked due to all this needing to be sorted out; the most likely path forward will be to have different SLOTs for enchant (so you can install 1.6 and 2.2.x at the same time) and packages that don't work with enchant-2 yet, will simply depend on enchant-1 SLOT instead until they are patched to work with enchant-2 instead. enchant:2 is now unmasked, so abiword could be hopefully patched to use that instead of enchant:0 eventually now. It could also use a small bump, but I looked that those still use enchant:0 upstream too. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=186b39b11516cc6b87f4e54d939208533160a0a8 commit 186b39b11516cc6b87f4e54d939208533160a0a8 Author: David Seifert <soap@gentoo.org> AuthorDate: 2020-04-13 16:44:07 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2020-04-13 16:44:07 +0000 app-office/abiword: Remove old Closes: https://bugs.gentoo.org/629818 Closes: https://bugs.gentoo.org/690326 Closes: https://bugs.gentoo.org/700492 Closes: https://bugs.gentoo.org/700852 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: David Seifert <soap@gentoo.org> app-office/abiword/Manifest | 2 - app-office/abiword/abiword-3.0.2-r3.ebuild | 168 --------------------- .../files/abiword-3.0.2-extern-C-template.patch | 29 ---- 3 files changed, 199 deletions(-) |