Retry failed commit r3686: LFS/master.sh:
- Ignore error when useradd does not support "-k /dev/null" (happens at least on Suse) - strip "-libstdc++" from the script name to allow building gcc-libstdc++ with package gcc
This commit is contained in:
parent
8418e9b896
commit
18499359b0
1 changed files with 4 additions and 2 deletions
|
@ -29,7 +29,7 @@ chapter4_Makefiles() { #
|
||||||
|
|
||||||
021-addinguser: 020-creatingtoolsdir
|
021-addinguser: 020-creatingtoolsdir
|
||||||
@\$(call echo_message, Building)
|
@\$(call echo_message, Building)
|
||||||
@if [ ! -d \$(LUSER_HOME) ]; then \\
|
@-if [ ! -d \$(LUSER_HOME) ]; then \\
|
||||||
groupadd \$(LGROUP); \\
|
groupadd \$(LGROUP); \\
|
||||||
useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\
|
useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\
|
||||||
else \\
|
else \\
|
||||||
|
@ -102,7 +102,9 @@ chapter5_Makefiles() {
|
||||||
|
|
||||||
# Grab the name of the target (minus the -pass1 or -pass2 in the case of gcc
|
# Grab the name of the target (minus the -pass1 or -pass2 in the case of gcc
|
||||||
# and binutils in chapter 5)
|
# and binutils in chapter 5)
|
||||||
name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@' -e 's@-pass[0-9]\{1\}@@'`
|
name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@' \
|
||||||
|
-e 's@-pass[0-9]\{1\}@@' \
|
||||||
|
-e 's@-libstdc++@@'`
|
||||||
|
|
||||||
# Set the dependency for the first target.
|
# Set the dependency for the first target.
|
||||||
if [ -z $PREV ] ; then PREV=022-settingenvironment ; fi
|
if [ -z $PREV ] ; then PREV=022-settingenvironment ; fi
|
||||||
|
|
Reference in a new issue