Fix some bugs in func_install_blfs
- do not try to copy downloaded files to $SRC_ARCHIVE: they may belong to another user, and so be non writable. - trunk/BOOK is not used anymore in BLFS/Makefile - do not make update a second time
This commit is contained in:
parent
8c2b505caf
commit
30a444a477
1 changed files with 4 additions and 7 deletions
|
@ -22,8 +22,6 @@ fi
|
||||||
# Set some harcoded envars to their proper values
|
# Set some harcoded envars to their proper values
|
||||||
sed -i s@tracking-dir@$TRACKING_DIR@ \
|
sed -i s@tracking-dir@$TRACKING_DIR@ \
|
||||||
${BUILDDIR}${BLFS_ROOT}/{Makefile,gen-makefile.sh,gen_pkg_book.sh}
|
${BUILDDIR}${BLFS_ROOT}/{Makefile,gen-makefile.sh,gen_pkg_book.sh}
|
||||||
sed -i s@trunk/BOOK@$BLFS_TREE@ \
|
|
||||||
${BUILDDIR}${BLFS_ROOT}/Makefile
|
|
||||||
|
|
||||||
# If we have a working copy, copy it:
|
# If we have a working copy, copy it:
|
||||||
if [[ "$BLFS_WORKING_COPY" = "y" ]]; then
|
if [[ "$BLFS_WORKING_COPY" = "y" ]]; then
|
||||||
|
@ -64,7 +62,6 @@ sudo make -j1 -C $BUILDDIR$BLFS_ROOT \
|
||||||
LFS-BRANCH="${COMMIT}" \
|
LFS-BRANCH="${COMMIT}" \
|
||||||
BLFS_XML=$BUILDDIR$BLFS_ROOT/$BLFS_XML \
|
BLFS_XML=$BUILDDIR$BLFS_ROOT/$BLFS_XML \
|
||||||
BLFS-BRANCH=${BLFS_TREE} \
|
BLFS-BRANCH=${BLFS_TREE} \
|
||||||
update \
|
|
||||||
$BUILDDIR$BLFS_ROOT/packages.xml
|
$BUILDDIR$BLFS_ROOT/packages.xml
|
||||||
|
|
||||||
# But then $BUILDDIR/var/lib/ is owned by root if just created, which
|
# But then $BUILDDIR/var/lib/ is owned by root if just created, which
|
||||||
|
@ -162,17 +159,17 @@ mv scripts $BUILDDIR$BLFS_ROOT
|
||||||
# Generates a list containing download and copying instructions for tarballs
|
# Generates a list containing download and copying instructions for tarballs
|
||||||
echo -e '#!/bin/bash\nset -e\n' > $BUILDDIR$BLFS_ROOT/download_script
|
echo -e '#!/bin/bash\nset -e\n' > $BUILDDIR$BLFS_ROOT/download_script
|
||||||
sed -n -e '/PACKAGE=/,/^fi/{/^fi/a\
|
sed -n -e '/PACKAGE=/,/^fi/{/^fi/a\
|
||||||
cp $PACKAGE $JH_SRC_ARCHIVE
|
[ ! -f "$JH_SRC_ARCHIVE/$PACKAGE" ] && cp $PACKAGE $JH_SRC_ARCHIVE
|
||||||
p}' \
|
p}' \
|
||||||
-e '/|[ ]*md5sum/p' \
|
-e '/|[ ]*md5sum/p' \
|
||||||
-e '/PACKAGE1=/,/^fi/{/^fi/a\
|
-e '/PACKAGE1=/,/^fi/{/^fi/a\
|
||||||
cp $PACKAGE1 $JH_SRC_ARCHIVE
|
[ ! -f "$JH_SRC_ARCHIVE/$PACKAGE1" ] && cp $PACKAGE1 $JH_SRC_ARCHIVE
|
||||||
p}' \
|
p}' \
|
||||||
-e '/PATCH=/,/^fi/{/^fi/a\
|
-e '/PATCH=/,/^fi/{/^fi/a\
|
||||||
cp $PATCH $JH_SRC_ARCHIVE
|
[ ! -f "$JH_SRC_ARCHIVE/$PATCH" ] && cp $PATCH $JH_SRC_ARCHIVE
|
||||||
p}' \
|
p}' \
|
||||||
-e '/URL=/,/^fi/{/^fi/a\
|
-e '/URL=/,/^fi/{/^fi/a\
|
||||||
cp $BOOTPACKG $JH_SRC_ARCHIVE
|
[ ! -f "$JH_SRC_ARCHIVE/$BOOTPACKG" ] && cp $BOOTPACKG $JH_SRC_ARCHIVE
|
||||||
p}' \
|
p}' \
|
||||||
$BUILDDIR$BLFS_ROOT/scripts/* >> $BUILDDIR$BLFS_ROOT/download_script
|
$BUILDDIR$BLFS_ROOT/scripts/* >> $BUILDDIR$BLFS_ROOT/download_script
|
||||||
chmod u+x $BUILDDIR$BLFS_ROOT/download_script
|
chmod u+x $BUILDDIR$BLFS_ROOT/download_script
|
||||||
|
|
Reference in a new issue