Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602638 - media-libs/openexr-2.2.0-r1 fails with dash as /bin/sh
Summary: media-libs/openexr-2.2.0-r1 fails with dash as /bin/sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2016-12-14 11:50 UTC by Mikael Magnusson
Modified: 2020-07-21 19:45 UTC (History)
1 user (show)

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


Attachments

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