summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-11-06 10:32:55 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-11-06 10:32:55 +0100
commit671643053d1751c7264bb5282a9ce170855b4c35 (patch)
tree6feb1efa2a5834ce383dec218bd1bfc305455629
parentbf96c9f949aea3ef66769a2aae78d5cf4c777458 (diff)
downloaddevtools-671643053d1751c7264bb5282a9ce170855b4c35.tar.xz
archbuild: Always use recent makepkg.conf and pacman.conf; Run namcap by default
-rw-r--r--archbuild.in23
-rw-r--r--pacman-extra.conf2
-rw-r--r--pacman-multilib.conf2
3 files changed, 18 insertions, 9 deletions
diff --git a/archbuild.in b/archbuild.in
index e3e5f13..502654c 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -53,25 +53,34 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
done
exec 9>&-
+ # FIXME: temporary workaround until pacman 4.0 moves to [core]
+ if pacman -V | grep -q 'v4.' && ( [[ "$repo" == 'extra' || "$repo" == 'multilib' ]] ); then
+ pacman_conf=$(mktemp)
+ cp "@pkgdatadir@/pacman-${repo}.conf" "${pacman_conf}"
+ sed -r 's/^#(SigLevel = Never)/\1/' -i "${pacman_conf}"
+ else
+ pacman_conf="@pkgdatadir@/pacman-${repo}.conf"
+ fi
+
rm -rf "${chroots}/${repo}-${arch}"
mkdir -p "${chroots}/${repo}-${arch}"
setarch "${arch}" mkarchroot \
- -C "@pkgdatadir@/pacman-${repo}.conf" \
+ -C "${pacman_conf}" \
-M "@pkgdatadir@/makepkg-${arch}.conf" \
"${chroots}/${repo}-${arch}/root" \
"${base_packages[@]}"
# FIXME: temporary workaround until pacman 4.0 moves to [core]
- case $repo in
- core|extra|community|multilib)
- sed -r '/^SigLevel.*/d' -i "${chroots}/${repo}-${arch}/root/etc/pacman.conf"
- ;;
- esac
+ if pacman -V | grep -q 'v4.' && ( [[ "$repo" == 'extra' || "$repo" == 'multilib' ]] ); then
+ cp "@pkgdatadir@/pacman-${repo}.conf" "${chroots}/${repo}-${arch}/root/etc/pacman.conf"
+ fi
else
setarch ${arch} mkarchroot \
-u \
+ -C "@pkgdatadir@/pacman-${repo}.conf" \
+ -M "@pkgdatadir@/makepkg-${arch}.conf" \
"${chroots}/${repo}-${arch}/root"
fi
msg "Building in chroot for [${repo}] (${arch})..."
-setarch "${arch}" makechrootpkg -c -r "${chroots}/${repo}-${arch}"
+setarch "${arch}" makechrootpkg -c -n -r "${chroots}/${repo}-${arch}"
diff --git a/pacman-extra.conf b/pacman-extra.conf
index 828e2bd..c0b7771 100644
--- a/pacman-extra.conf
+++ b/pacman-extra.conf
@@ -48,7 +48,7 @@ Architecture = auto
# trusted.
#SigLevel = Optional TrustAll
# Disable signature checks for now
-SigLevel = Never
+#SigLevel = Never
#
# REPOSITORIES
diff --git a/pacman-multilib.conf b/pacman-multilib.conf
index 709361e..5dada55 100644
--- a/pacman-multilib.conf
+++ b/pacman-multilib.conf
@@ -48,7 +48,7 @@ Architecture = auto
# trusted.
#SigLevel = Optional TrustAll
# Disable signature checks for now
-SigLevel = Never
+#SigLevel = Never
#
# REPOSITORIES