Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 619720

Summary: app-text/poppler-0.55.0 USE="-jpeg2k" fails: Invalid ENABLE_LIBOPENJPEG value
Product: Gentoo Linux Reporter: Märt Bakhoff <mbakhoff>
Component: Current packagesAssignee: Maciej Mrozowski <reavertm>
Status: RESOLVED FIXED    
Severity: normal CC: fturco, jstein, kde, musv, printing
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Märt Bakhoff 2017-05-26 07:31:20 UTC
Created attachment 474348 [details]
build.log

app-text/poppler-0.55.0 build fails with USE=-jpeg2k: 
CMake Error at CMakeLists.txt:233 (message):
  Invalid ENABLE_LIBOPENJPEG value:

1) enabling jpeg2k is a workaround
2) removing the line "mycmakeargs+=(-DENABLE_LIBOPENJPEG=)" from the ebuild looks like a fix. tested locally: 

 if use jpeg2k; then
     mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2)
-else
-    mycmakeargs+=(-DENABLE_LIBOPENJPEG=)
 fi
Comment 1 Sven Müller 2017-05-26 09:22:44 UTC
No 2 works for me. Thanks.
Comment 2 Davide Palma 2017-05-27 16:25:18 UTC
Same for me. I think the correct value of ENABLE_LIBOPENJPEG may be "none", but I am not sure.
Comment 3 Andrey Volkov 2017-05-31 06:13:54 UTC
This works for me:

diff --git a/app-text/poppler/poppler-0.55.0.ebuild b/app-text/poppler/poppler-0.55.0.ebuild
index 289730d1abc0..89984da6af6c 100644
--- a/app-text/poppler/poppler-0.55.0.ebuild
+++ b/app-text/poppler/poppler-0.55.0.ebuild
@@ -113,7 +113,7 @@ src_configure() {
        if use jpeg2k; then
                mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2)
        else
-               mycmakeargs+=(-DENABLE_LIBOPENJPEG=)
+               mycmakeargs+=(-DENABLE_LIBOPENJPEG=none)
        fi
        if use lcms; then
                mycmakeargs+=(-DENABLE_CMS=lcms2)
Comment 4 Michael Palimaka (kensington) gentoo-dev 2017-06-03 15:39:19 UTC
Thanks, fixed in git.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdb1a320ada8a638591259e36535b46835491991