dslm4515 / BMLFS

Beyond Musl Linux From Scratch - Build Recipes for MLFS [Musl Linux From Source]
16 stars 4 forks source link

Cannot compile LVM2 with sh as dash #19

Closed dslm4515 closed 3 years ago

dslm4515 commented 3 years ago

If /bin/sh is a symlink to dash, LVM2 will not compile:

make[1]: Leaving directory '/src/LVM2.2.02.187/daemons'
    [LN] man-generator.c
    [GEN] command-lines-input.h
    [GEN] command-count.h
/bin/sh: 1: set: Illegal option -o pipefail
    [GEN] cmds.h
/bin/sh: 1: set: Illegal option -o pipefail
make[1]: *** No rule to make target 'command-lines-input.h', needed by 'dmsetup.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
/bin/sh: 1: set: Illegal option -o pipefail
make[1]: Leaving directory '/src/LVM2.2.02.187/tools'
make: *** [make.tmpl:364: tools.device-mapper] Error 2
dslm4515 commented 3 years ago

Set /bin/sh as /bin/bash and build completes.