Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716496 - sys-kernel/genkernel-4.0.5: lvm-2.02.186 OR genkernel-4.0.5 with dash as sh /bin/sh: 1: set: Illegal option -o pipefail
Summary: sys-kernel/genkernel-4.0.5: lvm-2.02.186 OR genkernel-4.0.5 with dash as 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 Genkernel Maintainers
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 714092
  Show dependency tree
 
Reported: 2020-04-06 21:08 UTC by Alessandro Barbieri
Modified: 2020-04-10 12:55 UTC (History)
1 user (show)

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


Attachments
genkernel.log.xz (genkernel.log.xz,119.77 KB, application/x-xz)
2020-04-06 21:12 UTC, Alessandro Barbieri
Details
info (info,14.25 KB, text/plain)
2020-04-06 21:12 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2020-04-06 21:08:17 UTC
make[1]: Entering directory '/var/tmp/genkernel/gk_vR3rNVH4/lvm_t99GQycN/LVM2.2.02.186/tools'
make -C dmeventd device-mapper
    [GEN] command-lines-input.h
set -o pipefail && \
( cat ../tools/license.inc && \
  echo "/* Do not edit. This file is generated by the Makefile. */" && \
  echo -en "const char _command_input[] =\n\n\"" && \
  /bin/grep -E -v '^#|\-\-\-|^$' ./command-lines.in | gawk 'BEGIN {ORS = "\\n\"\n\""} //' && \
  printf "%s\n" "\\n\";" \
) > command-lines-input.h
make[2]: Entering directory '/var/tmp/genkernel/gk_vR3rNVH4/lvm_t99GQycN/LVM2.2.02.186/daemons/dmeventd'
    [GEN] command-count.h
set -o pipefail && \
( cat ../tools/license.inc && \                                                                                                                                          echo "/* Do not edit. This file is generated by the Makefile. */" && \
  echo -n "#define COMMAND_COUNT " && \
  /bin/grep '^ID:' ./command-lines.in | /bin/wc -l \
) > command-count.h
    [GEN] cmds.h
set -o pipefail && \
( cat ../tools/license.inc && \
  echo "/* Do not edit. This file is generated by the Makefile. */" && \
  echo "cmd(CMD_NONE, none)" && \
  /bin/grep '^ID:' ./command-lines.in | /bin/sort -u | gawk '{print "cmd(" $2 "_CMD, " $2 ")"}' && \
  echo "cmd(CMD_COUNT, count)" \
) > cmds.h
/bin/sh: 1: set: Illegal option -o pipefail
make[1]: *** [Makefile:217: command-lines-input.h] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/sh: 1: set: Illegal option -o pipefail
make[1]: *** [Makefile:198: command-count.h] Error 2
/bin/sh: 1: set: Illegal option -o pipefail
make[1]: *** [Makefile:207: cmds.h] Error 2
make[1]: Leaving directory '/var/tmp/genkernel/gk_vR3rNVH4/lvm_t99GQycN/LVM2.2.02.186/tools'
make: *** [make.tmpl:360: tools.device-mapper] Error 2
Comment 1 Alessandro Barbieri 2020-04-06 21:12:28 UTC
Created attachment 630892 [details]
genkernel.log.xz

genkernel.log
Comment 2 Alessandro Barbieri 2020-04-06 21:12:54 UTC
Created attachment 630894 [details]
info

emerge --info
Comment 3 Larry the Git Cow gentoo-dev 2020-04-07 23:03:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=8d3182553b151bcaf9010fae4dcc091f18096839

commit 8d3182553b151bcaf9010fae4dcc091f18096839
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-04-07 22:39:11 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-04-07 22:39:11 +0000

    gkbuilds/lvm: Force CONFIG_SHELL=bash
    
    Bug: https://bugs.gentoo.org/716496
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 gkbuilds/lvm.gkbuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 4 Michael Orlitzky gentoo-dev 2020-04-08 16:44:08 UTC
This is an upstream problem, we shouldn't be forcing users to use a slower shell to avoid filing a bug report =P

See $URL, after which this hack can be reverted.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2020-04-10 12:55:27 UTC
Released with v4.0.6, thanks for the report!