Changeset 2c1a763 for common


Ignore:
Timestamp:
03/30/2022 08:35:12 PM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
2bf44e2
Parents:
1242857
Message:

try to fix func_install_blfs to work in all cases

WIP...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_install_blfs

    r1242857 r2c1a763  
    3333# book has already been validated, tmp is posterior to the others, and
    3434# validation will not be done again.
    35   cp -ruT --preserve=timestamps $BLFS_WC_LOCATION \
     35# sudo is needed because make (below) may already have been run and
     36# may have put some files owned by root
     37  sudo cp -ruT --preserve=timestamps $BLFS_WC_LOCATION \
    3638                                ${BUILDDIR}${BLFS_ROOT}/$BLFS_XML
    3739fi
     
    3941# Copy the LFS book. Note that now, the book is downloaded before running
    4042# the BLFS tools.
    41 cp -ruT --preserve=timestamps $BOOK \
     43sudo cp -ruT --preserve=timestamps $BOOK \
    4244                              ${BUILDDIR}${BLFS_ROOT}/$LFS_XML
    4345
    4446# Downloads the book if necessary, initialize the tracking file and the
    4547# package database.
     48# updating first is needed if the xml sources have already been cloned
     49# and we want to set the branches.
     50# Note that if LFS-BRANCH or BLFS-BRANCH is empty, which may happen
     51# if using a working copy, then the corresponding update is not
     52# performed by make (see BLFS/Makefile).
    4653# sudo is needed if $BUILDDIR/var/lib is owned by root and /var/lib/jhalfs
    4754# has to be created
     55sudo make -j1 -C $BUILDDIR$BLFS_ROOT             \
     56          REV=$INITSYS                           \
     57          LFS-BRANCH=${COMMIT}                   \
     58          BLFS-BRANCH=${BLFS_TREE}               \
     59          update
    4860sudo make -j1 -C $BUILDDIR$BLFS_ROOT             \
    4961          REV=$INITSYS                           \
     
    5365          BLFS_XML=$BUILDDIR$BLFS_ROOT/$BLFS_XML \
    5466          BLFS-BRANCH=${BLFS_TREE}               \
     67          update                                 \
    5568          $BUILDDIR$BLFS_ROOT/packages.xml
    5669
Note: See TracChangeset for help on using the changeset viewer.