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

Bug 602638

Summary: media-libs/openexr-2.2.0-r1 fails with dash as /bin/sh
Product: Gentoo Linux Reporter: Mikael Magnusson <mikachu>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: dracwyrm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    

Description Mikael Magnusson 2016-12-14 11:50:06 UTC
checking for sysconf(_SC_NPROCESSORS_ONLN)... yes
/tmp/portage/media-libs/openexr-2.2.0-r1/work/openexr-2.2.0/configure: 17338: test: xyes: unexpected operator
/tmp/portage/media-libs/openexr-2.2.0-r1/work/openexr-2.2.0/configure: 17449: test: xyes: unexpected operator
/tmp/portage/media-libs/openexr-2.2.0-r1/work/openexr-2.2.0/configure: 17462: test: xyes: unexpected operator
/tmp/portage/media-libs/openexr-2.2.0-r1/work/openexr-2.2.0/configure: 17486: test: xyes: unexpected operator
/tmp/portage/media-libs/openexr-2.2.0-r1/work/openexr-2.2.0/configure: 17521: test: xno: unexpected operator
/tmp/portage/media-libs/openexr-2.2.0-r1/work/openexr-2.2.0/configure: 17530: test: xno: unexpected operator
checking that generated files are newer than configure... done

configure doesn't abort but it leads to a build failure almost immediately:
In file included from /tmp/portage/media-libs/openexr-2.2.0-r1/work/openexr-2.2.0/IlmImf/ImfHeader.cpp:54:0:
/tmp/portage/media-libs/openexr-2.2.0-r1/work/openexr-2.2.0/IlmImf/ImfDwaCompressor.h:74:13: error: 'Imf' does not name a type
     virtual Imf::Compressor::Format format () const;
             ^

The build succeeds when bash is /bin/sh.
Comment 1 Mikael Magnusson 2016-12-14 14:57:01 UTC
This is probably unrelated but I also noticed that upgrading openexr doesn't really work, you have to completely uninstall it first (or maybe installing it twice would work too), or it ends up linking against old system libs and preserve-libs keeping them, like this:

>>> package: media-libs/openexr-2.2.0-r1
 *  - /usr/lib64/libIlmImf-Imf_2_1.so.21
 *  - /usr/lib64/libIlmImf-Imf_2_1.so.21.0.0
 *      used by /usr/lib64/libIlmImfUtil-2_2.so.22.0.0 (media-libs/openexr-2.2.0-r1)
Comment 2 Andreas Sturmlechner gentoo-dev 2020-07-21 19:45:00 UTC
This version is long gone and >=2.5.2 is cmake-based instead of autotools.