Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820671 - media-libs/freeimage-3.18.0-r3: stabilisation (was: media-libs/freeimage-3.18.0-r2: fails to build with media-libs/openexr-3.1.2: Package OpenEXR was not found in the pkg-config search path)
Summary: media-libs/freeimage-3.18.0-r3: stabilisation (was: media-libs/freeimage-3.18...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: CC-ARCHES, PullRequest
Depends on:
Blocks: 820674
  Show dependency tree
 
Reported: 2021-10-29 09:13 UTC by Niko Böckerman
Modified: 2021-11-08 06:22 UTC (History)
3 users (show)

See Also:
Package list:
media-libs/freeimage-3.18.0-r3
Runtime testing required: ---
nattka: sanity-check+


Attachments
build.log (build.log,21.51 KB, text/plain)
2021-10-29 09:15 UTC, Niko Böckerman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niko Böckerman 2021-10-29 09:13:29 UTC
After media-libs/openexr-3.1.2:3 was stabilized I built it, then ran "emerge --depclean" which removed the older openexr-2.5.7:0. After that portage reported that freeimage was still using preserved-libs of that older openexr version. But after this building freeimage always fails.

It seems to me that freeimage is not compatible with openexr:3 and the dependency should be corrected to require openexr:0 explicitly.



Reproducible: Always

Steps to Reproduce:
1. Uninstall media-libs/openexr:0
3. Install media-libs/openexr:3
2. Try to install media-libs/freeimage[openexr]

Actual Results:  
Building of media-libs/freeimage[openexr] fails with these error messages being printed:

Package OpenEXR was not found in the pkg-config search path.
Perhaps you should add the directory containing `OpenEXR.pc'
to the PKG_CONFIG_PATH environment variable
Package 'OpenEXR', required by 'virtual:world', not found


Expected Results:  
Freeimage gets successfully installed with openexr support.

Portage 3.0.28 (python 3.9.7-final-0, default/linux/amd64/17.1/systemd, gcc-11.2.0, glibc-2.33-r1, 5.10.61-gentoo x86_64)
=================================================================
System uname: Linux-5.10.61-gentoo-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-glibc2.33
KiB Mem:    16306556 total,   6179280 free
KiB Swap:   20971516 total,  20971260 free
Timestamp of repository gentoo: Thu, 28 Oct 2021 19:30:01 +0000
Head commit of repository gentoo: db567409fb787f7b2151f0dba58eaa5473c4893b
Timestamp of repository bobwya: Tue, 26 Oct 2021 21:21:57 +0000
Head commit of repository bobwya: 0c22931e366470460c2f59157742a9968d0e527a

Timestamp of repository dlang: Sun, 19 Sep 2021 21:51:49 +0000
Head commit of repository dlang: 28eda9d7ca9aecd415f52e65db02d9af79ac27f0

Timestamp of repository guru: Wed, 27 Oct 2021 06:36:18 +0000
Head commit of repository guru: a42a78a73aa4969f00584957ae2cca99968fd2fb

Timestamp of repository thegreatmcpain: Mon, 25 Oct 2021 20:08:19 +0000
Head commit of repository thegreatmcpain: e5abc4c665ea5281c57cd423339c2f15ee6af947

sh dash 0.5.11.3-r1
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
ccache version 4.3 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          3.9.7_p1::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/ccache:          4.3-r3::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo, 11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/bobwya.git
    masters: gentoo

dlang
    location: /var/db/repos/dlang
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/dlang.git
    masters: gentoo

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

thegreatmcpain
    location: /var/db/repos/thegreatmcpain
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/thegreatmcpain.git
    masters: gentoo

temp
    location: /var/db/repos/temp
    masters: gentoo
    priority: 1

Installed sets: @enabled-sets
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -mtune=intel -O2 -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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=x86-64 -mtune=intel -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --nospinner --oneshot --jobs=2 --with-bdeps=y --autounmask-write=n --buildpkg-exclude "virtual/* sys-kernel/*-sources sys-kernel/linux-firmware" --usepkg --binpkg-respect-use=y --binpkg-changed-deps"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=x86-64 -mtune=intel -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=x86-64 -mtune=intel -O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirrors.aliyun.com/gentoo/ https://mirrors.aliyun.com/gentoo/ https://mirror.yandex.ru/gentoo-distfiles/ http://mirrors.dotsrc.org/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -l3"
PKGDIR="/var/cache/binpkgs"
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="acl amd64 bzip2 cli crypt dri fortran gdbm iconv idn ipv6 libglvnd libtirpc lzma man multilib ncurses nls nptl openmp pam pcre pulseaudio readline seccomp split-usr ssl systemd tcpd udev unicode wayland xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2019" 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="karbon sheets words" 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 greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Niko Böckerman 2021-10-29 09:15:13 UTC
Created attachment 747186 [details]
build.log
Comment 2 Niko Böckerman 2021-10-29 09:18:18 UTC
Openexr-3.1.2 install this pkg-config file: /usr/lib64/pkgconfig/OpenEXR-3.pc

But freeimage-3.18.0-r1 contains this in it's Makefile.gnu:
  LIBRARIES-$(USE_EXR)    += $(shell $(PKG_CONFIG) --libs OpenEXR)

To me that looks as if freeimage doesn't support openexr:3.
Comment 3 Bernd 2021-10-29 14:30:04 UTC
FreeImage isn't yet compatible with v3 of OpenEXr, see also https://bugs.gentoo.org/788349#c4
Comment 4 Niko Böckerman 2021-10-31 08:27:59 UTC
Could the openexr dependency in freeimage be changed to depend on openexr:0?

Effectively by changing this:
openexr? ( media-libs/openexr:= )

to this:
openexr? ( media-libs/openexr:0= )
Comment 5 Larry the Git Cow gentoo-dev 2021-11-02 10:04:24 UTC
The bug has been closed via the following commit(s):

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

commit 39428fadcfe3ebc4b90bc471af27aba690fe2cc7
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2021-11-02 05:13:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-02 10:04:12 +0000

    media-libs/freeimage: restrict dependency on openexr
    
    Package does not yet support OpenEXR-3, so restrict to :0
    
    Closes: https://bugs.gentoo.org/788349
    Closes: https://bugs.gentoo.org/820671
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/22793
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/freeimage/freeimage-3.18.0-r3.ebuild | 121 ++++++++++++++++++++++++
 1 file changed, 121 insertions(+)
Comment 6 Niko Böckerman 2021-11-02 18:35:25 UTC
Should the new freeimage-3.18.0-r3 be stabilized as well? Current stable tree with freeimage-3.18.0-r2 is broken currently ever since openexr-3.1.2 was stabilized recently.
Comment 7 Bernd 2021-11-02 18:42:00 UTC
Yes it will eventually be stabilized as well, but give it a few days to see if there are no issues coming up.
Comment 8 Jakov Smolić archtester gentoo-dev 2021-11-07 12:26:47 UTC
amd64 done
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-08 06:22:36 UTC
x86 done

all arches done