On 08/04/2010 10:38 PM, Bruce Dubbs wrote:
Not that it makes any difference to this discussion, but I prefer to use
/usr/src/(pkgname)/ for source tarballs. I sometimes build there and
sometimes in /tmp
e.g.
DIR=`pwd`
PROGRAM=xchat-2.6.2
LOG=$DIR/$PROGRAM.log
TITLE=$PROGRAM
TIMEFORMAT="$TIMEFMT $TITLE"
BUILDDIR=/tmp/xchat
DEST=$BUILDDIR/install
rm -rf $BUILDDIR
mkdir $BUILDDIR
cd $BUILDDIR
tar -xf $DIR/$PROGRAM.tar.?z* || exit 1
...
make DESTDIR=$DEST install
Just an observation.
Bruce what you have described and presented in your build example is the
heart of the package users system and your "script" is a light weight
version of the build scripts presented in the hint. "/usr/src/(package
name)/ is the home directory for the package user. My personal
preference is to store the tarball in these directories also rather than
leaving them in /sources--the patches too. Then the "../(some command)
instructions in the book don't need to be edited.
Dan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page