Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682404 - sys-fs/lvm2-2.02.184-r4: fails to build with dash
Summary: sys-fs/lvm2-2.02.184-r4: fails to build with dash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Robin Johnson
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-03 09:27 UTC by Fabian Groffen
Modified: 2020-04-08 16:40 UTC (History)
4 users (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 Fabian Groffen gentoo-dev 2019-04-03 09:27:06 UTC
make[2]: Entering directory '/var/tmp/portage/sys-fs/lvm2-2.02.183/work/LVM2.2.0
2.183/daemons/dmeventd'
    [GEN] command-count.h
    [GEN] cmds.h
/bin/dash: 1: set: Illegal option -o pipefail
make[1]: *** [Makefile:217: command-lines-input.h] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/dash: 1: set: Illegal option -o pipefail
make[1]: *** [Makefile:198: command-count.h] Error 2
/bin/dash: 1: set: Illegal option -o pipefail
make[1]: *** [Makefile:207: cmds.h] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-fs/lvm2-2.02.183/work/LVM2.2.02
.183/tools'
make: *** [make.tmpl:361: tools.device-mapper] Error 2
make: *** Waiting for unfinished jobs....

I think usage of bash should just be forced in the ebuild (export CONFIG_SHELL=${BASH}) as it's probably not worth the fuzz to fix this.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-08 18:36:11 UTC
I've tried to reproduce this with sys-fs/lvm2-2.02.184 on my system where "/bin/sh -> dash" is set. But the build succeeded. Any idea what basic settings are required for this issue getting triggered.?
Comment 2 Fabian Groffen gentoo-dev 2019-04-08 18:41:29 UTC
env CONFIG_SHELL=/bin/dash emerge lvm

my /bin/sh points to /bin/bash, I didn't modify my system.
Comment 3 Fabian Groffen gentoo-dev 2019-06-18 12:54:45 UTC
still an issue with 2.02.184-r4
Comment 4 Larry the Git Cow gentoo-dev 2019-07-24 10:07:47 UTC
The bug has been closed via the following commit(s):

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

commit abfedf55c98ff501e8c924646ea91ed315a0c71e
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-07-24 10:06:20 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-07-24 10:06:20 +0000

    sys-fs/lvm2: use /bin/bash as CONFIG_SHELL
    
    Closes: https://bugs.gentoo.org/682404
    Package-Manager: Portage-2.3.69, Repoman-2.3.16
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-fs/lvm2/lvm2-2.02.183.ebuild    | 3 +++
 sys-fs/lvm2/lvm2-2.02.184-r4.ebuild | 3 +++
 sys-fs/lvm2/lvm2-2.02.185.ebuild    | 3 +++
 sys-fs/lvm2/lvm2-2.03.05.ebuild     | 3 +++
 4 files changed, 12 insertions(+)
Comment 5 Michael Orlitzky gentoo-dev 2020-04-08 16:40:20 UTC
I filed an upstream report, since that's where the problem is.