Created attachment 740844 [details] emerge --info Emerge fails with error: checking for findFileFormatStream in -llept... no Error! Leptonica not detected. but media-libs/leptonica-1.80.0:0/5::gentoo is already installed: [ebuild R ] media-libs/leptonica-1.80.0:0/5::gentoo USE="gif jpeg png tiff webp zlib -jpeg2k -static-libs -test -utils" ABI_X86="(64) -32 (-x32)" 0 KiB
I upgraded media-libs/leptonica to 1.81.1 and with that jbig2enc-0.29 successfully installs.
leptonica 1.83.0 seems to reintroduce this in two ways. It installs library libleptonica.so instead of liblept.so (I think I saw somewhere that this is a side effect of using cmake vs another make tool). The other is that even if you modify jbig2enc to link against libleptonica (modify configure and change -llept to -lleptonica) it still has incomplete type issues. jbig2.cc: In function ‘void pixInfo(PIX*, const char*)’: jbig2.cc:74:14: error: invalid use of incomplete type ‘PIX’ {aka ‘struct Pix’} 74 | pix->w, pix->h, pix->d, pix->xres, pix->yres, pix->refcount);
Created attachment 848855 [details] build log
Created attachment 848857 [details] Patch file for leptonica 1.83 Looks like there was a patch to fix part of this. You still may need to edit the configure, but applying the patch pieces from: https://github.com/agl/jbig2enc/commit/a614bdb580d65653dbfe5c9925940797a065deac fixed this for me.
Dear treecleaner@: gcc13_tinderbox reproduced this issue right now. Since it has not been fixed for a long time, I'd suggest to evaluate if it is the case to remove this package from the tree. Thanks
(In reply to Jeremy Stent from comment #4) > Created attachment 848857 [details] > Patch file for leptonica 1.83 > > Looks like there was a patch to fix part of this. You still may need to > edit the configure, but applying the patch pieces from: > https://github.com/agl/jbig2enc/commit/ > a614bdb580d65653dbfe5c9925940797a065deac > fixed this for me. Thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be3b16b8435f258fb3a4f3751dd9833e72816349 commit be3b16b8435f258fb3a4f3751dd9833e72816349 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-03-09 07:44:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-09 07:57:02 +0000 media-libs/jbig2enc: EAPI 8, fix build w/ newer leptonica Closes: https://bugs.gentoo.org/814473 Signed-off-by: Sam James <sam@gentoo.org> .../files/jbig2enc-0.29-leptonica-1.83.patch | 81 ++++++++++++++++++++++ ...big2enc-0.29.ebuild => jbig2enc-0.29-r1.ebuild} | 8 ++- 2 files changed, 87 insertions(+), 2 deletions(-)
(Please tell me if I should file a new bug instead) The jbig2enc-r1 ebuild does not find leptonica on my system. I am using the current stable release of leptonica 1.82.0-r1. Unmasking the leptopnica "testing" ebuild 1.83.1 works.
(In reply to Frederik Pfautsch from comment #8) > (Please tell me if I should file a new bug instead) > > The jbig2enc-r1 ebuild does not find leptonica on my system. I am using the > current stable release of leptonica 1.82.0-r1. Unmasking the leptopnica > "testing" ebuild 1.83.1 works. i can reproduce this issue. equery f leptonica (current stable 1.82.0-r1) shows /usr/lib64/liblept.so while jbig2enc checks for -lleptonica
(In reply to Frederik Pfautsch from comment #8) > (Please tell me if I should file a new bug instead) > > The jbig2enc-r1 ebuild does not find leptonica on my system. I am using the > current stable release of leptonica 1.82.0-r1. Unmasking the leptopnica > "testing" ebuild 1.83.1 works. I went ahead and just filed bug 901079 as it's easiest.