Massive changes to allow installing pkgs in a chroot.

Some changes include:
 - Xstow is not used anymore, files are copied into masterdir.
 - a new target install-chroot has been created.
 - a new meta-template xbps-base-chroot has been created required for
   the install-chroot target.
 - Removed XBPS_SYSCONFDIR, /etc is used by default.
Other changes that I cannot remember right now...

--HG--
extra : convert_revision : fb57d9dafb56aeb03cc935580172e075ce584fd5
This commit is contained in:
Juan RP 2008-10-23 17:14:00 +02:00
parent af9b77fec1
commit 89f264e88c
13 changed files with 302 additions and 314 deletions

View file

@ -1,5 +0,0 @@
#
# Rebuild dynamic linker's cache after building glibc.
#
$XBPS_DESTDIR/$pkgname-$version/sbin/ldconfig -C $XBPS_SYSCONFDIR/ld.so.cache
$XBPS_DESTDIR/$pkgname-$version/sbin/ldconfig

View file

@ -1,4 +1,4 @@
# We must configure it in another directory.
$mkdir_cmd -p $wrksrc/build_obj && cd $wrksrc/build_obj
mkdir -p $wrksrc/build_obj && cd $wrksrc/build_obj
wrksrc=$wrksrc/build_obj

View file

@ -1,3 +1,4 @@
# Create $XBPS_SYSCONFDIR/ld.conf
#
$touch_cmd $XBPS_SYSCONFDIR/ld.so.conf
# Create destdir/etc/ld.conf
mkdir -p $XBPS_DESTDIR/$pkgname-$version/etc
touch $XBPS_DESTDIR/$pkgname-$version/etc/ld.so.conf

View file

@ -4,6 +4,7 @@ version=2.8
wrksrc="libc"
distfiles="ftp://ftp.archlinux.org/other/glibc/$pkgname-2.8_20080828@.tar.bz2"
build_style=gnu_configure
configure_env="ac_cv_path_BASH_SHELL=/bin/bash"
configure_script="../configure"
configure_args="--with-tls -disable-profile --with-__thread
--enable-kernel=2.6.16 --enable-add-ons --without-gd --enable-bind-now

View file

@ -0,0 +1,14 @@
# Template file for 'linux-headers'
pkgname=linux-headers
version=2.6.27.3
wrksrc="linux-$version"
distfiles="http://www.kernel.org/pub/linux/kernel/v2.6/linux-$version@.tar.bz2"
build_style=only-install
make_install_target="
INSTALL_HDR_PATH=$XBPS_DESTDIR/$pkgname-$version/usr
headers_install"
short_desc="The Linux kernel headers"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=52d9526ea8df33c9fab3df4564b0147b1866c76b0fd31474b92592567384a02c
long_desc="
This package provides the linux kernel headers for use in userspace."

View file

@ -4,6 +4,7 @@ version=5.6
distfiles="http://ftp.gnu.org/pub/gnu/ncurses/$pkgname-$version@.tar.gz"
build_style=gnu_configure
configure_args="--with-shared"
make_install_args="ticdir=$XBPS_DESTDIR/$pkgname-$version/usr/share/terminfo"
short_desc="A System V Release 4.0 curses emulation library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=f9cac2b31683a37d65bc37119599752198a0691e462d0d1a252cf9815f5724d5

View file

@ -4,7 +4,6 @@ version=7.8
distfiles="
http://kent.dl.sourceforge.net/sourceforge/pcre/$pkgname-$version@.tar.bz2"
build_style=gnu_configure
pkgconfig_override="libpcre.pc libpcrecpp.pc"
configure_args="--enable-utf8 --enable-unicode-properties"
short_desc="Perl Compatible Regular Expressions"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -16,4 +15,4 @@ long_desc="
correspond to the POSIX regular expression API. The PCRE library is free,
even for building commercial software."
build_depends="libtool-2.2.6a"
run_depends="glibc-2.8"

View file

@ -3,6 +3,7 @@ pkgname=sed
version=4.1.5
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version@.tar.gz"
build_style=gnu_configure
configure_args="--bindir=$XBPS_DESTDIR/$pkgname-$version/bin"
short_desc="The GNU stream editor"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=be955bef7a81d69222e929689e0de0ecf64c13dc5b15b2ee5696d5ef66fdeec0

View file

@ -0,0 +1,12 @@
# Template file for 'xbps-base-chroot'
pkgname=xbps-base-chroot
version=0.1
build_style=meta-template
short_desc="xbps base packages for the chroot target"
maintainer="Juan RP <xtraeme@gmail.com>"
long_desc="
This package installs all necessary packages to be able to build packages
inside of a chroot and continue installing them."
build_depends="glibc-2.8 bash-3.2 coreutils-6.12 sed-4.1.5 make-3.81
tar-1.20 bzip2-1.0.5 gzip-1.3.12 proplib-0.1 linux-headers-2.6.27.3"