[linux-lvm] fail to build latest lvm2 on Ubuntu due to default shell

Neutron Sharc neutronsharc at gmail.com
Tue Mar 21 17:50:57 UTC 2017


Hi all,

I'm having problem building latest lvm2 on Ubuntu, which is caused by
default /bin/sh -> dash.

However I'm able to build tag v2_02_166 with default sh (dash).

It would be great if this compatibility could be fixed.


Here is the build log when it failed:
======
make[1]: Entering directory '/home/hcd/code/lvm2/tools'
set -o pipefail && \
( cat ../doc/license.txt && \
  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\""} //' && \
  echo "\\n\";" \
) > command-lines-input.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]: Leaving directory '/home/hcd/code/lvm2/tools'
make.tmpl:329: recipe for target 'tools.device-mapper' failed
make: *** [tools.device-mapper] Error 2



Thanks.

-Shawn




More information about the linux-lvm mailing list