Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619720 - app-text/poppler-0.55.0 USE="-jpeg2k" fails: Invalid ENABLE_LIBOPENJPEG value
Summary: app-text/poppler-0.55.0 USE="-jpeg2k" fails: Invalid ENABLE_LIBOPENJPEG value
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-26 07:31 UTC by Märt Bakhoff
Modified: 2017-06-03 15:39 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,8.01 KB, text/x-log)
2017-05-26 07:31 UTC, Märt Bakhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
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