xbps-src: update for xbps-0.42 and bump required version.
This commit is contained in:
parent
4636c7ed65
commit
b77c7a6836
3 changed files with 18 additions and 18 deletions
|
@ -14,7 +14,7 @@ are isolated (among others).
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
- GNU bash
|
- GNU bash
|
||||||
- xbps >= 0.41
|
- xbps >= 0.42
|
||||||
|
|
||||||
A privileged group is required to be able to execute `xbps-uchroot(8)`, by default in void
|
A privileged group is required to be able to execute `xbps-uchroot(8)`, by default in void
|
||||||
it's the `xbuilder` group.
|
it's the `xbuilder` group.
|
||||||
|
|
|
@ -44,14 +44,14 @@ _EOF
|
||||||
cp -f /etc/resolv.conf $XBPS_MASTERDIR/etc
|
cp -f /etc/resolv.conf $XBPS_MASTERDIR/etc
|
||||||
|
|
||||||
# Update xbps alternative repository if set.
|
# Update xbps alternative repository if set.
|
||||||
mkdir -p $XBPS_MASTERDIR/etc/xbps/repo.d
|
mkdir -p $XBPS_MASTERDIR/etc/xbps.d
|
||||||
if [ -n "$XBPS_ALT_REPOSITORY" ]; then
|
if [ -n "$XBPS_ALT_REPOSITORY" ]; then
|
||||||
( \
|
( \
|
||||||
echo "repository=/host/binpkgs/${XBPS_ALT_REPOSITORY}"; \
|
echo "repository=/host/binpkgs/${XBPS_ALT_REPOSITORY}"; \
|
||||||
echo "repository=/host/binpkgs/${XBPS_ALT_REPOSITORY}/nonfree"; \
|
echo "repository=/host/binpkgs/${XBPS_ALT_REPOSITORY}/nonfree"; \
|
||||||
) > $XBPS_MASTERDIR/etc/xbps/repo.d/00-alternative.conf
|
) > $XBPS_MASTERDIR/etc/xbps.d/00-repository-alternative.conf
|
||||||
else
|
else
|
||||||
rm -f $XBPS_MASTERDIR/etc/xbps/repo.d/00-alternative.conf
|
rm -f $XBPS_MASTERDIR/etc/xbps.d/00-repository-alternative.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d $XBPS_MASTERDIR/tmp ]; then
|
if [ -d $XBPS_MASTERDIR/tmp ]; then
|
||||||
|
@ -88,8 +88,8 @@ chroot_prepare() {
|
||||||
|
|
||||||
echo "syslog=false" >> $XBPS_MASTERDIR/etc/xbps/xbps.conf
|
echo "syslog=false" >> $XBPS_MASTERDIR/etc/xbps/xbps.conf
|
||||||
echo "cachedir=/host/repocache" >> $XBPS_MASTERDIR/etc/xbps/xbps.conf
|
echo "cachedir=/host/repocache" >> $XBPS_MASTERDIR/etc/xbps/xbps.conf
|
||||||
mkdir -p $XBPS_MASTERDIR/etc/xbps/repo.d
|
mkdir -p $XBPS_MASTERDIR/etc/xbps.d
|
||||||
ln -s /dev/null $XBPS_MASTERDIR/etc/xbps/repo.d/00-main.conf
|
ln -s /dev/null $XBPS_MASTERDIR/etc/xbps.d/00-repository-main.conf
|
||||||
|
|
||||||
# Prepare default locale: en_US.UTF-8.
|
# Prepare default locale: en_US.UTF-8.
|
||||||
if [ -s ${XBPS_MASTERDIR}/etc/default/libc-locales ]; then
|
if [ -s ${XBPS_MASTERDIR}/etc/default/libc-locales ]; then
|
||||||
|
@ -108,30 +108,30 @@ chroot_sync_repos() {
|
||||||
|
|
||||||
# Copy xbps configuration files to the masterdir.
|
# Copy xbps configuration files to the masterdir.
|
||||||
install -Dm644 ${XBPS_COMMONDIR}/xbps-src/chroot/repos-local.conf \
|
install -Dm644 ${XBPS_COMMONDIR}/xbps-src/chroot/repos-local.conf \
|
||||||
${XBPS_MASTERDIR}/etc/xbps/repo.d/10-local.conf
|
${XBPS_MASTERDIR}/etc/xbps.d/10-repository-local.conf
|
||||||
install -Dm644 ${XBPS_COMMONDIR}/xbps-src/chroot/repos-remote.conf \
|
install -Dm644 ${XBPS_COMMONDIR}/xbps-src/chroot/repos-remote.conf \
|
||||||
${XBPS_MASTERDIR}/etc/xbps/repo.d/20-remote.conf
|
${XBPS_MASTERDIR}/etc/xbps.d/20-repository-remote.conf
|
||||||
|
|
||||||
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||||
install -Dm644 ${XBPS_COMMONDIR}/xbps-src/chroot/repos-local-x86_64.conf \
|
install -Dm644 ${XBPS_COMMONDIR}/xbps-src/chroot/repos-local-x86_64.conf \
|
||||||
${XBPS_MASTERDIR}/etc/xbps/repo.d/12-local-x86_64.conf
|
${XBPS_MASTERDIR}/etc/xbps.d/12-repository-local-x86_64.conf
|
||||||
install -Dm644 ${XBPS_COMMONDIR}/xbps-src/chroot/repos-remote-x86_64.conf \
|
install -Dm644 ${XBPS_COMMONDIR}/xbps-src/chroot/repos-remote-x86_64.conf \
|
||||||
${XBPS_MASTERDIR}/etc/xbps/repo.d/22-remote-x86_64.conf
|
${XBPS_MASTERDIR}/etc/xbps.d/22-repository-remote-x86_64.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if -N is set, comment out remote repositories from xbps.conf.
|
# if -N is set, comment out remote repositories from xbps.conf.
|
||||||
if [ -n "$XBPS_SKIP_REMOTEREPOS" ]; then
|
if [ -n "$XBPS_SKIP_REMOTEREPOS" ]; then
|
||||||
rm -f ${XBPS_MASTERDIR}/etc/xbps/repo.d/20-remote.conf
|
rm -f ${XBPS_MASTERDIR}/etc/xbps.d/20-repository-remote.conf
|
||||||
rm -f ${XBPS_MASTERDIR}/etc/xbps/repo.d/22-remote-x86_64.conf
|
rm -f ${XBPS_MASTERDIR}/etc/xbps.d/22-repository-remote-x86_64.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy host repos to the cross root.
|
# Copy host repos to the cross root.
|
||||||
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
||||||
rm -rf $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps/repo.d
|
rm -rf $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps.d
|
||||||
mkdir -p $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps/repo.d
|
mkdir -p $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps.d
|
||||||
cp ${XBPS_MASTERDIR}/etc/xbps/repo.d/*.conf \
|
cp ${XBPS_MASTERDIR}/etc/xbps.d/*.conf \
|
||||||
$XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps/repo.d
|
$XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps.d
|
||||||
rm -f $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps/repo.d/*-x86_64.conf
|
rm -f $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps.d/*-x86_64.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure to sync index for remote repositories.
|
# Make sure to sync index for remote repositories.
|
||||||
|
|
2
xbps-src
2
xbps-src
|
@ -304,7 +304,7 @@ read_pkg() {
|
||||||
setup_pkg $XBPS_TARGET_PKG $XBPS_CROSS_BUILD
|
setup_pkg $XBPS_TARGET_PKG $XBPS_CROSS_BUILD
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly XBPS_VERSION_REQ="0.41"
|
readonly XBPS_VERSION_REQ="0.42"
|
||||||
readonly XBPS_VERSION=$(xbps-uhelper -V|awk '{print $2}')
|
readonly XBPS_VERSION=$(xbps-uhelper -V|awk '{print $2}')
|
||||||
readonly XBPS_SRC_VERSION="113"
|
readonly XBPS_SRC_VERSION="113"
|
||||||
export XBPS_MACHINE=$(uname -m)
|
export XBPS_MACHINE=$(uname -m)
|
||||||
|
|
Loading…
Add table
Reference in a new issue