Created attachment 498484 [details] build.log I got this error : CMake Error: INSTALL(EXPORT) given unknown export "OpenJPEGTargets" I've always had static-libs, and it has worked until media-libs/openjpeg-2.2.0 I can confirm that without static-libs, the package emerges fine.
Please also attach your emerge --info.
Created attachment 498560 [details] emerge --info output
Created attachment 498590 [details] failed build.log (In reply to Thomas Capricelli from comment #0) > Created attachment 498484 [details] > build.log > > I got this error : > > CMake Error: INSTALL(EXPORT) given unknown export "OpenJPEGTargets" > > I've always had static-libs, and it has worked until > media-libs/openjpeg-2.2.0 > > I can confirm that without static-libs, the package emerges fine. This happens to me as well. Same error, in configure phase. Haven't tried without static-libs.
Created attachment 498592 [details] emerge --info media-libs/openjpeg
Same problem here with static-libs. Best regars, Jan kohni /var/tmp/portage/media-libs/openjpeg-2.3.0 # emerge --info Portage 2.3.8 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r4, 4.4.6-gentoo x86_64) ================================================================= System uname: Linux-4.4.6-gentoo-x86_64-AMD_FX-tm-6100_Six-Core_Processor-with-gentoo-2.4.1 KiB Mem: 16462880 total, 9038192 free KiB Swap: 20971516 total, 20971516 free Timestamp of repository gentoo: Sat, 14 Oct 2017 10:00:02 +0000 Head commit of repository gentoo: 8c78558ffd96fe0c705083b3f2a493c850bdc303 sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1 app-shells/bash: 4.3_p48-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.3::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/cmake: 3.7.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.28::gentoo sys-apps/sandbox: 2.10-r3::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.28.1::gentoo sys-devel/gcc: 5.4.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 science location: /var/lib/layman/science masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA @FSF-APPROVED @EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-ggdb -O2 -march=bdver1 -mprefer-avx128 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-ggdb -O2 -march=bdver1 -mprefer-avx128 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="3dnow 3dnowext X X509 a52 aac acpi activities additions aim alsa amd64 apng arts audiofile bash-completion berkdb branding bzip2 cairo calendar cdda cddb cdparanoia cdr cjk classic cli clucene consolekit cpudetection cracklib crypt cups cupsddk curl cxx daap dbus declarative device-mapper dga dhclient divx dolphin dri dts dvb dvd dvdr dvipdfm dynamic embedded emboss emerald encode examples exif expat extra extras faac fam ffmpeg fftw firefox flac float fontconfig fortran fts3 g3dvl gcj gd gdbm gif git glamor glitz glut gmedia gmp gnome-online-accounts gnutls google gpm graphics gstreamer gtk gtk3 gtkhtml gudev hbci history hpijs hwdb iconv icq icu idn ieee1394 imagemagick imlib ipod ipv6 jabber jack jack-esd jadetex java jpeg kde kerberos kipi kpathsea kwallet ladspa lastfm lcms ldap legacy-systray libnotify libsamplerate libwww lm_sensors lv2 lzo mad melt mhash minizip mjpeg mmx mmxext mng modules motif mp3 mp4 mpeg mplayer mtp multilib musicbrainz mysql mysqli ncurses network nls nptl nsplugin offensive ofx ogg openexr opengl openmp opus oscar pam pango pcre pdf perl phonon pkcs11 plasma plplot pmount png policykit portmidi postgres ppds printsupport python qml qt3support qt4 qt5 quicktime readline realmedia realtime regex samba scanner science script scripts sdl seccomp semantic-desktop server session slang smartcard snmp soprano spell sql sqlite sse sse2 ssl startup-notification static-libs subtitles subversion svg swat swig tcl tcltk tcpd theora threads tiff timidity tk truetype udev udisks unicode upower usb utils v4l v4l2 vcd vim vim-syntax vim-with-x vorbis webkit widgets winbind wmf wmp wxwidgets x264 xattr xcb xcomposite xine xinerama xinetd xml xmlrpc xmp xscreensaver xv xvfb xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS kohni /var/tmp/portage/media-libs/openjpeg-2.3.0 #
Same here on ppc. Portage 2.3.8 (python 3.4.5-final-0, default/linux/powerpc/ppc64/13.0/32bit-userland/desktop/gnome/systemd, gcc-5.4.0, glibc-2.23-r4, 4.13.5-gentoo ppc64) ================================================================= System Settings ================================================================= System uname: Linux-4.13.5-gentoo-ppc64-PPC970FX,_altivec_supported-with-gentoo-2.4.1 KiB Mem: 8055052 total, 6876520 free KiB Swap: 10488760 total, 10488760 free Timestamp of repository gentoo: Fri, 13 Oct 2017 18:30:01 +0000 Head commit of repository gentoo: 32c7c578f2b2d3699fa043062d920a908d997146 sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1 distcc 3.2rc1 powerpc-unknown-linux-gnu [disabled] app-shells/bash: 4.3_p48-r1::gentoo dev-lang/perl: 5.24.3::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/cmake: 3.7.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.28::gentoo sys-apps/sandbox: 2.10-r3::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.15-r2::gentoo sys-devel/binutils: 2.28.1::gentoo sys-devel/gcc: 5.4.0-r3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="ppc" ACCEPT_LICENSE="*" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=powerpc -mtune=powerpc -frecord-gcc-switches" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe -mcpu=powerpc -mtune=powerpc -frecord-gcc-switches" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -mcpu=powerpc -mtune=powerpc -frecord-gcc-switches" GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-6" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl alsa berkdb big-endian bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cryptsetup cups cxx dbus dri dts dvd dvdr eds emboss enca encode evo exif fam firefox flac fortran gdbm gif glamor gles2 gnome-keyring gnome-online-accounts gnutls gstreamer gtk gtk3 iconv icu introspection ipv6 jpeg jpeg2k lcms libnotify libsecret lz4 lzma lzo mad mmap mng modules mp3 mp4 mpeg mtp ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppc ppds pulseaudio readline sdl seccomp session smp spell ssl startup-notification static-libs svg system-sqlite systemd tcpd threads tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_PPC="32" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nouveau radeon r300 r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Same here.
Same. ~amd64, have static-libs set global in make.conf - fails. Use package.use to turn it off and it builds fine.
Created attachment 499028 [details, diff] patch to fix cmake error This patch allows to compile the package. It basically deletes the erroneous line
Created attachment 499280 [details, diff] Patch to quickfix openjpeg ebuild by dropping support for USE=static-libs, effectively Patch to fix openjpeg ebuild
ping, can someone on the graphics project look at this, its causing some issues.
Hey, I can confirm patch 499280 is working just fine with and without static-libs. Best regards Jan
Same here. Please fix it
(In reply to milan hodoscek from comment #9) > Created attachment 499028 [details, diff] [details, diff] > patch to fix cmake error > > This patch allows to compile the package. It basically deletes the erroneous > line Can anyone explain what line install(EXPORT OpenJPEGTargets DESTINATION ${OPENJPEG_INSTALL_PACKAGE_DIR}) is needed for and when (or when not) to people not as far into CMake wizardry? Would be awesome. Thanks!
*** Bug 644776 has been marked as a duplicate of this bug. ***
Created attachment 523916 [details, diff] Proposed ebuild patch for review It seems that -DBUILD_SHARED_LIBS=OFF for the second configure is part of the trouble. Please review the patch attached. I plan to apply that patch myself in a week or so if (and only if) no one raises concerns about that patch until then. Best, Sebastian
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ac0e28cd463490db493bbcd04b74ee6576aa416 commit 5ac0e28cd463490db493bbcd04b74ee6576aa416 Author: Sebastian Pipping <sping@gentoo.org> AuthorDate: 2018-03-28 20:58:08 +0000 Commit: Sebastian Pipping <sping@gentoo.org> CommitDate: 2018-03-28 20:58:08 +0000 media-libs/openjpeg: Fix 2.3.0 USE=static-libs compile Closes: https://bugs.gentoo.org/634144 Package-Manager: Portage-2.3.24, Repoman-2.3.6 media-libs/openjpeg/openjpeg-2.3.0.ebuild | 1 - 1 file changed, 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c8b95f0ffa4570543e8c10e594584db64e1541a commit 6c8b95f0ffa4570543e8c10e594584db64e1541a Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-11-03 21:04:02 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-11-03 21:30:52 +0000 media-libs/openjpeg: Fix USE static-libs Bug: https://bugs.gentoo.org/634144 Bug: https://bugs.gentoo.org/650322 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 .../openjpeg-2.3.0-fix-disable-static-libs.patch | 23 ++++ media-libs/openjpeg/openjpeg-2.3.0-r1.ebuild | 117 +++++++++++++++++++++ 2 files changed, 140 insertions(+)