Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814473 - media-libs/jbig2enc-0.29 fails due Leptonica not detected
Summary: media-libs/jbig2enc-0.29 fails due Leptonica not detected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on: 901079
Blocks:
  Show dependency tree
 
Reported: 2021-09-23 09:20 UTC by paul g.
Modified: 2023-03-13 20:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,6.05 KB, text/plain)
2021-09-23 09:20 UTC, paul g.
Details
build log (jbig2enc-0.29_build.log,163.22 KB, application/octet-stream)
2023-01-20 03:07 UTC, Jeremy Stent
Details
Patch file for leptonica 1.83 (a614bdb580d65653dbfe5c9925940797a065deac.patch.txt,2.27 KB, text/plain)
2023-01-20 03:18 UTC, Jeremy Stent
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paul g. 2021-09-23 09:20:33 UTC
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
Comment 1 paul g. 2021-09-23 09:48:11 UTC
I upgraded media-libs/leptonica to 1.81.1 and with that jbig2enc-0.29 successfully installs.
Comment 2 Jeremy Stent 2023-01-20 03:06:03 UTC
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);
Comment 3 Jeremy Stent 2023-01-20 03:07:31 UTC
Created attachment 848855 [details]
build log
Comment 4 Jeremy Stent 2023-01-20 03:18:33 UTC
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.
Comment 5 Agostino Sarubbo gentoo-dev 2023-03-06 08:10:55 UTC
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
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-09 07:42:25 UTC
(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!
Comment 7 Larry the Git Cow gentoo-dev 2023-03-09 07:57:13 UTC
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(-)
Comment 8 Frederik Pfautsch 2023-03-13 10:00:42 UTC
(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.
Comment 9 Lorenz 2023-03-13 11:41:11 UTC
(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
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-13 20:41:04 UTC
(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.