aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/abuild/0001-buildrepo-avoid-using-i-as-loop-variable.patch52
-rw-r--r--main/abuild/APKBUILD12
2 files changed, 60 insertions, 4 deletions
diff --git a/main/abuild/0001-buildrepo-avoid-using-i-as-loop-variable.patch b/main/abuild/0001-buildrepo-avoid-using-i-as-loop-variable.patch
new file mode 100644
index 0000000000..0fe58e6110
--- /dev/null
+++ b/main/abuild/0001-buildrepo-avoid-using-i-as-loop-variable.patch
@@ -0,0 +1,52 @@
+From 67e769e605a09338b1234b2a9503305ebd632832 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Fri, 26 Apr 2013 21:05:40 +0200
+Subject: [PATCH] buildrepo: avoid using 'i' as loop variable
+
+some apkbuilds use it in global context
+---
+ buildrepo.in | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/buildrepo.in b/buildrepo.in
+index 7707049..a37ab8d 100755
+--- a/buildrepo.in
++++ b/buildrepo.in
+@@ -20,7 +20,7 @@ fi
+ usage() {
+ echo "usage: $program [-a APORTSDIR] [-d REPODIR] [-hp] [-l LOGPREFIX ]"
+ echo " [-r DEPREPO] REPOSITORY..."
+-
++
+ echo "options:"
+ echo " -a Set the aports base dir to APORTSDIR instead of $aportsdir"
+ echo " -d Set destination repository base dir to REPODIR instead of $repodir"
+@@ -87,10 +87,10 @@ list_needbuild() {
+ # first we try copy everything possible and find out which we need
+ # to rebuild. By doing this we might save us for rebuilding
+ # needed when running 'abuild -R'
+- for i in */APKBUILD; do
+- [ -f "$aportsdir/$repo/$i" ] || continue
++ for apkbuild in */APKBUILD; do
++ [ -f "$aportsdir/$repo/$apkbuild" ] || continue
+ export REPODEST="$repodir"
+- cd "$aportsdir/$repo"/${i%/*} || return 1
++ cd "$aportsdir/$repo"/${apkbuild%/*} || return 1
+ pkgname=
+ pkgver=
+ pkgrel=
+@@ -118,9 +118,9 @@ list_needbuild() {
+ echo ">>> Copying " $pkgs >&2
+ cp -p -l $pkgs "$repodir/$repo/$CARCH"/ 2>/dev/null \
+ || cp -p $pkgs "$repodir/$repo/$CARCH"/ \
+- || echo "$i"
++ || echo "$apkbuild"
+ else
+- echo "$i"
++ echo "$apkbuild"
+ fi
+ done
+ }
+--
+1.8.2.1
+
diff --git a/main/abuild/APKBUILD b/main/abuild/APKBUILD
index cb4809150f..b66acea749 100644
--- a/main/abuild/APKBUILD
+++ b/main/abuild/APKBUILD
@@ -3,7 +3,7 @@ pkgdesc="Script to build Alpine Packages"
pkgname=abuild
pkgver=2.14.2
_ver=${pkgver%_git*}
-pkgrel=0
+pkgrel=1
url=http://git.alpinelinux.org/cgit/abuild/
depends="fakeroot file sudo pax-utils openssl apk-tools>=2.0.7-r1
abuildhelper curl libc-utils"
@@ -14,6 +14,7 @@ pkggroups="abuild"
arch="all"
license=GPL-2
source="http://git.alpinelinux.org/cgit/abuild/snapshot/abuild-$_ver.tar.bz2
+ 0001-buildrepo-avoid-using-i-as-loop-variable.patch
"
_builddir="$srcdir/$pkgname-$_ver"
@@ -51,6 +52,9 @@ cpan() {
mv "$pkgdir"/usr/bin/apkbuild-cpan "$subpkgdir"/usr/bin/
}
-md5sums="28b88233f7cece810ed9008647f1b0a2 abuild-2.14.2.tar.bz2"
-sha256sums="37192e3dbe148620341925059f57188b0f3635a60c74e5614fb7914741cb7d89 abuild-2.14.2.tar.bz2"
-sha512sums="8f9cea29f8d1c8472ef7c4771789b995ce5422ee87f8262aa60c118b7a198b7c7b17c9120e3de98e410f14427fbac020920076a9b387943e638af10859db1648 abuild-2.14.2.tar.bz2"
+md5sums="28b88233f7cece810ed9008647f1b0a2 abuild-2.14.2.tar.bz2
+b159d73dfddf2994e7469d749a94ff2a 0001-buildrepo-avoid-using-i-as-loop-variable.patch"
+sha256sums="37192e3dbe148620341925059f57188b0f3635a60c74e5614fb7914741cb7d89 abuild-2.14.2.tar.bz2
+276746a44b52cd46cef295dbd993716ddabc9da46e4e2db5e813ee0e900577c8 0001-buildrepo-avoid-using-i-as-loop-variable.patch"
+sha512sums="8f9cea29f8d1c8472ef7c4771789b995ce5422ee87f8262aa60c118b7a198b7c7b17c9120e3de98e410f14427fbac020920076a9b387943e638af10859db1648 abuild-2.14.2.tar.bz2
+9b2894e2d5050c532bfb1e4c2ff22f0edd8cf4d4a27c4dd7d60e1269c4ec130d70bd9a04a4f84c697a44d140d98c2ed543e0d99899a26e673a3fd4b642de572b 0001-buildrepo-avoid-using-i-as-loop-variable.patch"