summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2011-07-05 12:41:12 -0400
committerDJ Delorie <dj@delorie.com>2011-07-05 12:41:12 -0400
commit2d1dd4c1de34258a29caa448e9c5cceb90a793b4 (patch)
treee759b0e9a6293d8e402dc9107224ef94538b130e
parent3d640cf4b44610c2c3852e0ae0406e02990b34f1 (diff)
downloadbootstrap-2d1dd4c1de34258a29caa448e9c5cceb90a793b4.tar.gz
bootstrap-2d1dd4c1de34258a29caa448e9c5cceb90a793b4.tar.xz
bootstrap-2d1dd4c1de34258a29caa448e9c5cceb90a793b4.zip
Sync with rootfs
-rwxr-xr-xstage149
1 files changed, 19 insertions, 30 deletions
diff --git a/stage1 b/stage1
index becdcb0..993173a 100755
--- a/stage1
+++ b/stage1
@@ -698,16 +698,18 @@ EOF
CC=${TARGET}-gcc \
AR=${TARGET}-ar \
RANLIB=${TARGET}-ranlib \
+ PREFIX=/usr \
+ CFLAGS="$CFLAGS -fpic -fPIC" \
libbz2.a bzip2 bzip2recover
make $J \
CC=${TARGET}-gcc \
AR=${TARGET}-ar \
RANLIB=${TARGET}-ranlib \
- PREFIX=${ROOTFS} \
+ PREFIX=${ROOTFS}/usr \
install
# the installation makes symbols links with our host's paths
# in them, we need to redo those.
- cd $ROOTFS/bin
+ cd $ROOTFS/usr/bin
rm bzless; ln -s bzmore bzless
rm bzfgrep; ln -s bzgrep bzfgrep
rm bzcmp; ln -s bzdiff bzcmp
@@ -720,34 +722,21 @@ EOF
mkdirp $ROOTFS/stage2
- # Might as well keep these sorted, so we can check them easier.
-
- rsrpm bison
- rsrpm chkconfig
- rsrpm cpio
- rsrpm curl
- rsrpm db4
- rsrpm flex
- rsrpm gdb
- rsrpm gdbm
- rsrpm gettext
- rsrpm glib2
- rsrpm libtool
- rsrpm m4
- rsrpm ncurses
- rsrpm nspr
- rsrpm nss
- rsrpm nss-softokn
- rsrpm openssl
- rsrpm pcre
- rsrpm perl
- rsrpm pkgconfig
- rsrpm popt
- rsrpm pth
- rsrpm readline
- rsrpm rpm
- rsrpm sqlite
- rsrpm texinfo
+ # FIXME: the recipe files need to be copied into the rootfs
+ # before they can be used.
+
+ for PKG in $ROOTFS/stage2/recipe.d/[0-9][0-9][0-9][0-9]-*
+ do
+ PKG=$(echo $PKG | sed "s/.*\\/[0-9][0-9][0-9][0-9]-//")
+ echo "Installing SRPM for $PKG"
+ rsrpm $PKG
+ done
+
+ (
+ cd $ROOTFS/stage2/rpmbuild/BUILD/sqlite-*
+ test -f sqlite3.h.stage1 \
+ || tclsh tool/mksqlite3h.tcl . > sqlite3.h.stage1
+ )
cp $STAGE2 $ROOTFS/stage2/stage2