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

Bug 728222

Summary: media-libs/ilmbase with sh -> dash: configure: 22771: test: xyes: unexpected operator
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: remi
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/16469
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268, 724092    
Attachments: build.log

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-06-14 12:26:52 UTC
Created attachment 644628 [details]
build.log

checking for gcc optimization flags... -pipe
/var/tmp/portage/media-libs/ilmbase-2.3.0/work/ilmbase-2.3.0/configure: 22771: test: xyes: unexpected operator
/var/tmp/portage/media-libs/ilmbase-2.3.0/work/ilmbase-2.3.0/configure: 22790: test: xyes: unexpected operator
/var/tmp/portage/media-libs/ilmbase-2.3.0/work/ilmbase-2.3.0/configure: 22826: test: xyes: unexpected operator
/var/tmp/portage/media-libs/ilmbase-2.3.0/work/ilmbase-2.3.0/configure: 22861: test: xno: unexpected operator
/var/tmp/portage/media-libs/ilmbase-2.3.0/work/ilmbase-2.3.0/configure: 22873: test: xno: unexpected operator
/var/tmp/portage/media-libs/ilmbase-2.3.0/work/ilmbase-2.3.0/configure: 22919: Syntax error: "(" unexpected (expecting "fi")

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-libs/ilmbase-2.3.0/work/ilmbase-2.3.0-abi_x86_64.amd64/config.log
 * ERROR: media-libs/ilmbase-2.3.0::gentoo failed (configure phase):
 *   econf failed
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2020-06-27 23:51:18 UTC
Got a patch working that is roughly adapted from https://github.com/AcademySoftwareFoundation/openexr/commit/ba329cba788d4f320e6fc455919233222c27a0dd#diff-da9cc74bcbd515b62ac028123c37bed2

Any objections to me committing this?

Thanks
Comment 2 Larry the Git Cow gentoo-dev 2020-07-02 06:03:10 UTC
The bug has been closed via the following commit(s):

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

commit 864218ba6be7a2e13717267705e87447475a1be1
Author:     Rémi Cardona <remi@gentoo.org>
AuthorDate: 2020-06-28 09:16:01 +0000
Commit:     Rémi Cardona <remi@gentoo.org>
CommitDate: 2020-07-02 06:02:00 +0000

    media-libs/ilmbase: fix bashisms in configure script
    
    Closes: https://bugs.gentoo.org/728222
    Package-Manager: Portage-2.3.102, Repoman-2.3.23
    Signed-off-by: Rémi Cardona <remi@gentoo.org>

 .../ilmbase/files/ilmbase-2.3.0-fix-bashisms.patch | 214 +++++++++++++++++++++
 media-libs/ilmbase/ilmbase-2.3.0.ebuild            |   7 +-
 2 files changed, 219 insertions(+), 2 deletions(-)