Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847013 - media-libs/openjpeg: CMake config files are in wrong path (and contain wrong includedir) (was: app-text/poppler-22.05.0[jpeg2k]: Could NOT find openjpeg2. CMake Error at CMakeLists.txt:263)
Summary: media-libs/openjpeg: CMake config files are in wrong path (and contain wrong ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Bracht Laumann Jespersen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-22 22:21 UTC by Toralf Förster
Modified: 2022-05-23 20:46 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.66 KB, text/plain)
2022-05-22 22:21 UTC, Toralf Förster
Details
CMakeError.log (CMakeError.log,1.77 KB, text/plain)
2022-05-22 22:21 UTC, Toralf Förster
Details
CMakeOutput.log (CMakeOutput.log,48.85 KB, text/plain)
2022-05-22 22:21 UTC, Toralf Förster
Details
app-text:poppler-22.05.0:20220522-214643.log (app-text:poppler-22.05.0:20220522-214643.log,8.40 KB, text/plain)
2022-05-22 22:21 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,99.80 KB, application/x-bzip)
2022-05-22 22:21 UTC, Toralf Förster
Details
environment (environment,94.81 KB, text/plain)
2022-05-22 22:21 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,34.71 KB, application/x-bzip)
2022-05-22 22:21 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.20 KB, application/x-bzip)
2022-05-22 22:21 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.50 KB, application/x-bzip)
2022-05-22 22:21 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-05-22 22:21:20 UTC
  By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Gui", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Gui" with any
  of the following names:


  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j4-20220517-010104

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.3.1
 [2] x86_64-pc-linux-gnu-12.1.0 *
clang/llvm (if any):
clang version 14.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.3
Python 3.9.13
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.60.0
  [2]   rust-1.60.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
3)	Eclipse Temurin JRE 11.0.15_p10 [openjdk-jre-bin-11]
4)	Eclipse Temurin JRE 17.0.3_p7 [openjdk-jre-bin-17]
*)	Eclipse Temurin JRE 8.332_p09 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-11 
  [2]   openjdk-bin-17 
  [3]   openjdk-jre-bin-8  system-vm
  [4]   openjdk-jre-bin-11 
  [5]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php8.1 *

  HEAD of ::gentoo
commit b981cf1d9443cda539ca53904833294f124080eb
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun May 22 21:17:57 2022 +0000

    2022-05-22 21:17:57 UTC

emerge -qpvO app-text/poppler
[ebuild  N    ] app-text/poppler-22.05.0  USE="cxx introspection jpeg jpeg2k lcms utils -boost -cairo -cjk -curl -debug -doc -nss -png -qt5 -tiff"
Comment 1 Toralf Förster gentoo-dev 2022-05-22 22:21:22 UTC
Created attachment 780203 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-22 22:21:22 UTC
Created attachment 780206 [details]
CMakeError.log
Comment 3 Toralf Förster gentoo-dev 2022-05-22 22:21:24 UTC
Created attachment 780209 [details]
CMakeOutput.log
Comment 4 Toralf Förster gentoo-dev 2022-05-22 22:21:25 UTC
Created attachment 780212 [details]
app-text:poppler-22.05.0:20220522-214643.log
Comment 5 Toralf Förster gentoo-dev 2022-05-22 22:21:26 UTC
Created attachment 780215 [details]
emerge-history.txt.bz2
Comment 6 Toralf Förster gentoo-dev 2022-05-22 22:21:27 UTC
Created attachment 780218 [details]
environment
Comment 7 Toralf Förster gentoo-dev 2022-05-22 22:21:29 UTC
Created attachment 780221 [details]
etc.portage.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-05-22 22:21:30 UTC
Created attachment 780224 [details]
logs.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-05-22 22:21:31 UTC
Created attachment 780227 [details]
temp.tar.bz2
Comment 10 Andreas Sturmlechner gentoo-dev 2022-05-23 19:41:29 UTC
That's the actual error.
Comment 11 Andreas Sturmlechner gentoo-dev 2022-05-23 19:43:42 UTC
2022-05-17T22:27:27 >>> media-libs/openjpeg-2.4.0-r3
Comment 12 Andreas Sturmlechner gentoo-dev 2022-05-23 19:49:59 UTC
> Run Build Command(s):/usr/bin/ninja cmTC_46e5b && [1/2] Building CXX object CMakeFiles/cmTC_46e5b.dir/src.cxx.o
> FAILED: CMakeFiles/cmTC_46e5b.dir/src.cxx.o 
> /usr/bin/x86_64-pc-linux-gnu-g++ -DICONV_SECOND_ARGUMENT_IS_CONST   -pipe -march=native -fno-diagnostics-color -O2 -Wnon-virtual-dtor -Woverloaded-virtual   -pipe -march=native -fno-diagnostics-color -O2 -std=c++17 -o CMakeFiles/cmTC_46e5b.dir/src.cxx.o -c ../_build/CMakeFiles/CMakeTmp/src.cxx
> ../_build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
> ../_build/CMakeFiles/CMakeTmp/src.cxx:9:17: error: invalid conversion from ‘const char**’ to ‘char**’ [-fpermissive]
>     9 |     iconv(conv, &in, &ilen, &out, &olen);
>       |                 ^~~
>       |                 |
>       |                 const char**
> In file included from ../_build/CMakeFiles/CMakeTmp/src.cxx:2:
> /usr/include/iconv.h:42:54: note:   initializing argument 2 of ‘size_t iconv(iconv_t, char**, size_t*, char**, size_t*)’
>    42 | extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
>       |                                    ~~~~~~~~~~~~~~~~~~^~~~~~~
> ninja: build stopped: subcommand failed.

GCC-12 issue, won't block stabilisation.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-23 20:43:36 UTC
No, it's classic CMakeError.log deception. The issue is the openjpeg CMake files being in the wrong place.
Comment 14 Larry the Git Cow gentoo-dev 2022-05-23 20:44:15 UTC
The bug has been closed via the following commit(s):

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

commit de20312c7cc3c05ec8183595808198048699fed2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-23 20:43:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-23 20:44:08 +0000

    media-libs/openjpeg: fix GNUInstallDirs patch
    
    - Fix install dir for CMake*Config (needs to be in a subdir)
    - Fix include path within those
    
    Closes: https://bugs.gentoo.org/847013
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/openjpeg-2.5.0-gnuinstalldirs.patch      | 33 +++++++++++++++++-----
 ...eg-2.5.0-r1.ebuild => openjpeg-2.5.0-r2.ebuild} |  0
 2 files changed, 26 insertions(+), 7 deletions(-)
Comment 15 Larry the Git Cow gentoo-dev 2022-05-23 20:46:01 UTC
The bug has been referenced in the following commit(s):

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

commit f0941fb5417e182ffce947e0242caa0b61fee71c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-23 20:45:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-23 20:45:53 +0000

    media-libs/openjpeg: cleanup patch
    
    Bug: https://bugs.gentoo.org/847013
    Signed-off-by: Sam James <sam@gentoo.org>

 .../openjpeg/files/openjpeg-2.5.0-gnuinstalldirs.patch    | 15 ---------------
 1 file changed, 15 deletions(-)