[arch-commits] Commit in debootstrap/repos/community-any (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Oct 3 22:06:23 UTC 2019
Date: Thursday, October 3, 2019 @ 22:06:22
Author: felixonmars
Revision: 512587
archrelease: copy trunk to community-any
Added:
debootstrap/repos/community-any/PKGBUILD
(from rev 512586, debootstrap/trunk/PKGBUILD)
debootstrap/repos/community-any/arch-detect.patch
(from rev 512586, debootstrap/trunk/arch-detect.patch)
Deleted:
debootstrap/repos/community-any/PKGBUILD
debootstrap/repos/community-any/arch-detect.patch
-------------------+
PKGBUILD | 72 ++++++++++++++++++++++++++--------------------------
arch-detect.patch | 53 +++++++++++++++++++++++---------------
2 files changed, 68 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-03 22:06:19 UTC (rev 512586)
+++ PKGBUILD 2019-10-03 22:06:22 UTC (rev 512587)
@@ -1,36 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=debootstrap
-pkgver=1.0.115
-pkgrel=1
-pkgdesc="Bootstrap a basic Debian system"
-arch=('any')
-license=('GPL')
-url="https://tracker.debian.org/pkg/debootstrap"
-depends=('wget' 'binutils')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/felixonmars/debootstrap/archive/$pkgver.tar.gz"
- arch-detect.patch)
-optdepends=('gnupg: check release signatures'
- 'debian-archive-keyring: check release signatures for Debian'
- 'ubuntu-keyring: check release signatures for Ubuntu')
-sha512sums=('36310ae320abce915fa39204a92a90bcbf8ebee864a550097fef2266df64c510304cc220d56bd4a092fa3b3f43864931170f8b25ca7ae585e0018d7a44f3c1df'
- '56e25f48027f99f7e720859a9e14fe769b1cbd6227c7a7e27e14c2fea88520109342d6e5b127dc34ce8cc40f46941a0c5157ad35cf8ef9b3e4323877a4b32d97')
-
-prepare() {
- cd debootstrap-$pkgver
-
- sed -i 's/sbin/bin/g' Makefile
-
- # Debian defaults
- sed -i 's|export PATH|export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"|' debootstrap
-
- # Detect Architecture
- patch -p1 -i ../arch-detect.patch
-}
-
-package() {
- cd debootstrap-$pkgver
- make DESTDIR="$pkgdir" install
-
- install -Dm644 debootstrap.8 "$pkgdir"/usr/share/man/man8/debootstrap.8
-}
Copied: debootstrap/repos/community-any/PKGBUILD (from rev 512586, debootstrap/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-03 22:06:22 UTC (rev 512587)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=debootstrap
+pkgver=1.0.116
+pkgrel=1
+pkgdesc="Bootstrap a basic Debian system"
+arch=('any')
+license=('GPL')
+url="https://tracker.debian.org/pkg/debootstrap"
+depends=('wget' 'binutils')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/felixonmars/debootstrap/archive/$pkgver.tar.gz"
+ arch-detect.patch)
+optdepends=('gnupg: check release signatures'
+ 'debian-archive-keyring: check release signatures for Debian'
+ 'ubuntu-keyring: check release signatures for Ubuntu')
+sha512sums=('4b81bc56c6ac6e210aaceb06013882ba3cfe777d4173fd89d38a279fe57425302b86b2fb00ea2e19df2abfb7058909e1eb628f74f241612d865044b32e3481a4'
+ 'd70a9d096d1692f71970cc818515bd783a6031bfe2d2857134eabf6fd36e4137152ebafa8e2d4ae7c8cb442c8532cd4192715b286e38b4d947b0b467e9ed54a5')
+
+prepare() {
+ cd debootstrap-$pkgver
+
+ sed -i 's/sbin/bin/g' Makefile
+
+ # Debian defaults
+ sed -i 's|export PATH|export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"|' debootstrap
+
+ # Detect Architecture
+ patch -p1 -i ../arch-detect.patch
+}
+
+package() {
+ cd debootstrap-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 debootstrap.8 "$pkgdir"/usr/share/man/man8/debootstrap.8
+}
Deleted: arch-detect.patch
===================================================================
--- arch-detect.patch 2019-10-03 22:06:19 UTC (rev 512586)
+++ arch-detect.patch 2019-10-03 22:06:22 UTC (rev 512587)
@@ -1,21 +0,0 @@
-diff --git a/debootstrap b/debootstrap
-index fcdb20f..184900d 100755
---- a/debootstrap
-+++ b/debootstrap
-@@ -427,6 +427,16 @@ elif in_path udpkg && \
- HOST_ARCH=$(/usr/bin/udpkg --print-architecture)
- elif [ -e "$DEBOOTSTRAP_DIR/arch" ]; then
- HOST_ARCH=$(cat "$DEBOOTSTRAP_DIR/arch")
-+elif in_path pacman; then
-+ # pacman 5.1 will have `pacman-conf Architecture`
-+ CARCH="$(bash -c '. /etc/makepkg.conf && echo $CARCH')"
-+ case "$CARCH" in
-+ "i686") HOST_ARCH="i386" ;;
-+ "x86_64") HOST_ARCH="amd64" ;;
-+ "armv7h") HOST_ARCH="armhf" ;;
-+ "aarch64") HOST_ARCH="arm64" ;;
-+ *) echo "Unknown architecture: $CARCH" && exit 1
-+ esac
- fi
- HOST_OS="$HOST_ARCH"
- # basic host OS guessing for non-Debian systems
Copied: debootstrap/repos/community-any/arch-detect.patch (from rev 512586, debootstrap/trunk/arch-detect.patch)
===================================================================
--- arch-detect.patch (rev 0)
+++ arch-detect.patch 2019-10-03 22:06:22 UTC (rev 512587)
@@ -0,0 +1,32 @@
+From b15594e90a8de4a9cd844bc80388e7b64fc4a51a Mon Sep 17 00:00:00 2001
+From: Eli Schwartz <eschwartz at archlinux.org>
+Date: Fri, 16 Aug 2019 14:20:19 -0400
+Subject: [PATCH] add pacman capability to debootstrap architecture detection
+
+---
+ debootstrap | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/debootstrap b/debootstrap
+index 29c0443..f9d49a9 100755
+--- a/debootstrap
++++ b/debootstrap
+@@ -506,6 +506,15 @@ elif in_path udpkg && \
+ HOST_ARCH=$(/usr/bin/udpkg --print-architecture)
+ elif [ -e "$DEBOOTSTRAP_DIR/arch" ]; then
+ HOST_ARCH=$(cat "$DEBOOTSTRAP_DIR/arch")
++elif in_path pacman-conf; then
++ CARCH=$(pacman-conf Architecture)
++ case $CARCH in
++ i686) HOST_ARCH=i386 ;;
++ x86_64) HOST_ARCH=amd64 ;;
++ armv7h) HOST_ARCH=armhf ;;
++ aarch64) HOST_ARCH=arm64 ;;
++ *) echo "Unknown architecture: $CARCH" && exit 1
++ esac
+ fi
+ HOST_OS="$HOST_ARCH"
+ # basic host OS guessing for non-Debian systems
+--
+2.22.1
+
More information about the arch-commits
mailing list