xbps-src: <destdir> and <builddir> must not be in XBPS_HOSTDIR.

This commit is contained in:
Juan RP 2011-07-08 02:25:51 +02:00
parent b6c21b960b
commit 2b9aec22ea
3 changed files with 5 additions and 6 deletions

View File

@ -23,7 +23,6 @@ XBPS_MASTERDIR=$XBPS_DISTRIBUTIONDIR/masterdir
# Basically your directory must contain this structure: # Basically your directory must contain this structure:
# #
# /yourdir # /yourdir
# |_ /build
# |_ /binpkgs # |_ /binpkgs
# |_ /repocache # |_ /repocache
# |_ /sources # |_ /sources

View File

@ -37,12 +37,12 @@ set_defvars()
: ${XBPS_PKGMETADIR:=$XBPS_DBDIR/metadata} : ${XBPS_PKGMETADIR:=$XBPS_DBDIR/metadata}
: ${XBPS_SRCPKGDIR:=$XBPS_DISTRIBUTIONDIR/srcpkgs} : ${XBPS_SRCPKGDIR:=$XBPS_DISTRIBUTIONDIR/srcpkgs}
if [ -n "$IN_CHROOT" ]; then if [ -n "$IN_CHROOT" ]; then
: ${XBPS_DESTDIR:=/host/destdir} : ${XBPS_DESTDIR:=/destdir}
else else
: ${XBPS_DESTDIR:=$XBPS_MASTERDIR/host/destdir} : ${XBPS_DESTDIR:=$XBPS_MASTERDIR/destdir}
fi fi
: ${XBPS_PACKAGESDIR:=$XBPS_MASTERDIR/host/binpkgs} : ${XBPS_PACKAGESDIR:=$XBPS_MASTERDIR/host/binpkgs}
: ${XBPS_BUILDDIR:=$XBPS_MASTERDIR/host/build} : ${XBPS_BUILDDIR:=$XBPS_MASTERDIR/builddir}
: ${XBPS_SRCDISTDIR:=$XBPS_MASTERDIR/host/sources} : ${XBPS_SRCDISTDIR:=$XBPS_MASTERDIR/host/sources}
: ${XBPS_TRIGGERSDIR:=$XBPS_SRCPKGDIR/xbps-triggers/files} : ${XBPS_TRIGGERSDIR:=$XBPS_SRCPKGDIR/xbps-triggers/files}

View File

@ -80,7 +80,7 @@ Targets:
extract [pkgname] extract [pkgname]
Extract package source distribution file(s) into the build directory. Extract package source distribution file(s) into the build directory.
By default set to <masterdir>/host/build. By default set to <masterdir>/builddir.
fetch [pkgname] fetch [pkgname]
Download package source distribution file(s). Download package source distribution file(s).
@ -131,7 +131,7 @@ Options:
-c Path to global configuration file: -c Path to global configuration file:
if not specified @@XBPS_INSTALL_ETCDIR@@/xbps-src.conf is used. if not specified @@XBPS_INSTALL_ETCDIR@@/xbps-src.conf is used.
-D Only install <pkgname> to package's destination directory set -D Only install <pkgname> to package's destination directory set
to <masterdir>/host/destdir/<pkgname>-<version>. to <masterdir>/destdir/<pkgname>-<version>.
-h Usage output. -h Usage output.
-K Do not remove automatic package dependencies while building -K Do not remove automatic package dependencies while building
or installing a package with XBPS_PREFER_BINPKG_DEPS enabled. or installing a package with XBPS_PREFER_BINPKG_DEPS enabled.