diff options
author | Andrew Manison <amanison@anselsystems.com> | 2010-06-01 23:41:03 +0000 |
---|---|---|
committer | Andrew Manison <amanison@anselsystems.com> | 2010-06-01 23:41:03 +0000 |
commit | 2c7f7f25f1476495e77fbf4528199e794aaff614 (patch) | |
tree | 6edc41e9e626e22cbd5b6cd5217f0eaa331a8926 | |
parent | 2ba547e9ab67ad5ab07df1c33973abf013936ae9 (diff) | |
download | alpine_aports-2c7f7f25f1476495e77fbf4528199e794aaff614.tar.bz2 alpine_aports-2c7f7f25f1476495e77fbf4528199e794aaff614.tar.xz alpine_aports-2c7f7f25f1476495e77fbf4528199e794aaff614.zip |
Removed patch files rolled into 2.3.
3 files changed, 0 insertions, 188 deletions
diff --git a/main/abuild/0001-Revert-abuild-minor-cleanup.patch b/main/abuild/0001-Revert-abuild-minor-cleanup.patch deleted file mode 100644 index 25569b5b6d..0000000000 --- a/main/abuild/0001-Revert-abuild-minor-cleanup.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 19b2598f8a52ba8af07eb4904788d0843130b094 Mon Sep 17 00:00:00 2001 | ||
2 | From: Natanael Copa <ncopa@alpinelinux.org> | ||
3 | Date: Tue, 27 Oct 2009 15:24:18 +0000 | ||
4 | Subject: [PATCH] Revert "abuild: minor cleanup" | ||
5 | |||
6 | This commit seems to kill the entire repository | ||
7 | |||
8 | This reverts commit 46aed95754ebeb17a3a367b3b41d0b6424fd18d9. | ||
9 | --- | ||
10 | buildrepo.in | 4 ++-- | ||
11 | 1 files changed, 2 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/buildrepo.in b/buildrepo.in | ||
14 | index d719c34..c211789 100755 | ||
15 | --- a/buildrepo.in | ||
16 | +++ b/buildrepo.in | ||
17 | @@ -22,9 +22,9 @@ usage() { | ||
18 | |||
19 | |||
20 | listpackages() { | ||
21 | + cd "$aportsdir/$1" | ||
22 | for i in */APKBUILD; do | ||
23 | - cd "$aportsdir"/$1/${i%/*} | ||
24 | - abuild listpkg | ||
25 | + APKBUILD=$i abuild listpkg | ||
26 | done | ||
27 | } | ||
28 | |||
29 | -- | ||
30 | 1.6.5 | ||
31 | |||
diff --git a/main/abuild/0002-add-fetch-from-source-mirror.patch b/main/abuild/0002-add-fetch-from-source-mirror.patch deleted file mode 100644 index 5cd9648526..0000000000 --- a/main/abuild/0002-add-fetch-from-source-mirror.patch +++ /dev/null | |||
@@ -1,107 +0,0 @@ | |||
1 | diff -rupN orig/abuild-2.1/abuild.in src/abuild-2.1/abuild.in | ||
2 | --- orig/abuild-2.1/abuild.in 2009-12-30 04:05:49.000000000 -0500 | ||
3 | +++ src/abuild-2.1/abuild.in 2010-04-29 09:21:43.000000000 -0400 | ||
4 | @@ -149,12 +149,11 @@ md5check() { | ||
5 | |||
6 | uri_fetch() { | ||
7 | local uri="$1" | ||
8 | - local d="${s##*/}" # $(basename $s) | ||
9 | + local d="${uri##*/}" # $(basename $uri) | ||
10 | local opts | ||
11 | [ -n "$quiet" ] && opts="-q" | ||
12 | [ -f "$SRCDEST/$d" ] && return 0 | ||
13 | |||
14 | - | ||
15 | # we need GNU wget for this | ||
16 | case "$uri" in | ||
17 | https://*) opts="--no-check-certificate";; | ||
18 | @@ -178,12 +177,26 @@ is_remote() { | ||
19 | return 1 | ||
20 | } | ||
21 | |||
22 | +# try download from file from mirror first | ||
23 | +uri_fetch_mirror() { | ||
24 | + local uri="$1" | ||
25 | + local d="${uri##*/}" # $(basename $uri) | ||
26 | + if [ -n "$DISTFILES_MIRROR" ]; then | ||
27 | + if [ -f "$DISTFILES_MIRROR"/$d ] ; then | ||
28 | + cp "$DISTFILES_MIRROR"/$d . | ||
29 | + else | ||
30 | + uri_fetch "$DISTFILES_MIRROR"/$d && return 0 | ||
31 | + fi | ||
32 | + fi | ||
33 | + uri_fetch "$uri" | ||
34 | +} | ||
35 | + | ||
36 | default_fetch() { | ||
37 | local s | ||
38 | mkdir -p "$srcdir" | ||
39 | for s in $source; do | ||
40 | if is_remote "$s"; then | ||
41 | - uri_fetch "$s" || return 1 | ||
42 | + uri_fetch_mirror "$s" || return 1 | ||
43 | ln -sf "$SRCDEST/${s##*/}" "$srcdir"/ | ||
44 | else | ||
45 | ln -sf "$startdir/$s" "$srcdir/" | ||
46 | @@ -308,6 +317,12 @@ build() { | ||
47 | : | ||
48 | } | ||
49 | |||
50 | +# generate a simple tar.gz package of pkgdir | ||
51 | +targz() { | ||
52 | + cd "$pkgdir" || return 1 | ||
53 | + tar -czf "$PKGDEST"/$pkgname-$pkgver-r$pkgrel.tar.gz * | ||
54 | +} | ||
55 | + | ||
56 | get_split_func() { | ||
57 | # get the 'func' from "sub-pkg:func" | ||
58 | local func=${1##*:} | ||
59 | @@ -712,8 +727,8 @@ up2date() { | ||
60 | depparse_aports() { | ||
61 | # lets run this in a subshell since we source all APKBUILD here | ||
62 | ( | ||
63 | - aportsdir=$(realpath ${APKBUILD%/APKBUILD}/../..) | ||
64 | - for i in $aportsdir/*/*/APKBUILD; do | ||
65 | + aportsdir=$(realpath ${APKBUILD%/APKBUILD}/..) | ||
66 | + for i in $aportsdir/*/APKBUILD; do | ||
67 | pkgname= | ||
68 | subpackages= | ||
69 | depends= | ||
70 | @@ -811,7 +826,13 @@ builddeps() { | ||
71 | |||
72 | uninstall_after=".makedepends-$pkgname $uninstall_after" | ||
73 | if [ -n "$install_deps" ] && [ -z "$recursive" ]; then | ||
74 | + # make a --simluate run first to detect missing deps | ||
75 | + # apk-tools --virtual is no goot at reporting those. | ||
76 | + $SUDO apk add --repository "$apkcache" \ | ||
77 | + --wait 30 \ | ||
78 | + --simulate --quiet $deps || return 1 | ||
79 | $SUDO apk add --repository "$apkcache" \ | ||
80 | + --wait 30 \ | ||
81 | --virtual .makedepends-$pkgname $deps \ | ||
82 | && return 0 | ||
83 | fi | ||
84 | @@ -834,6 +855,7 @@ builddeps() { | ||
85 | cd "$dir" && $0 -k -r apkcache || return 1 | ||
86 | done | ||
87 | $SUDO apk add -u --repository "$apkcache" \ | ||
88 | + --wait 30 \ | ||
89 | --virtual .makedepends-$pkgname $deps | ||
90 | } | ||
91 | |||
92 | @@ -945,12 +967,13 @@ post_add() { | ||
93 | post_add $i || return 1 | ||
94 | fi | ||
95 | done | ||
96 | - $SUDO apk add -u "$pkgf" || die "Failed to install $1" | ||
97 | + $SUDO apk add --wait 30 -u "$pkgf" || die "Failed to install $1" | ||
98 | } | ||
99 | |||
100 | installdeps() { | ||
101 | local deps i | ||
102 | - sudo apk add --repository "$apkcache" --virtual .makedepends-$pkgname \ | ||
103 | + sudo apk add --wait 30 --repository "$apkcache" \ | ||
104 | + --virtual .makedepends-$pkgname \ | ||
105 | $makedepends | ||
106 | } | ||
107 | |||
diff --git a/main/abuild/0003-add-color-control-command-line-option.patch b/main/abuild/0003-add-color-control-command-line-option.patch deleted file mode 100644 index 434f634b9d..0000000000 --- a/main/abuild/0003-add-color-control-command-line-option.patch +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | diff -rupN orig/abuild-2.1/abuild.in src/abuild-2.1/abuild.in | ||
2 | --- orig/abuild-2.1/abuild.in 2010-04-29 12:34:59.000000000 -0400 | ||
3 | +++ src/abuild-2.1/abuild.in 2010-04-29 12:35:56.000000000 -0400 | ||
4 | @@ -25,15 +25,27 @@ FAKEROOT=${FAKEROOT:-"fakeroot"} | ||
5 | ABUILD_CONF=${ABUILD_CONF:-"$sysconfdir/abuild.conf"} | ||
6 | [ -f "$ABUILD_CONF" ] && . "$ABUILD_CONF" | ||
7 | |||
8 | - | ||
9 | -#colors | ||
10 | -if [ -n "$USE_COLORS" ]; then | ||
11 | +default_colors() { | ||
12 | NORMAL="\033[1;0m" | ||
13 | STRONG="\033[1;1m" | ||
14 | RED="\033[1;31m" | ||
15 | GREEN="\033[1;32m" | ||
16 | YELLOW="\033[1;33m" | ||
17 | BLUE="\033[1;34m" | ||
18 | +} | ||
19 | + | ||
20 | +monochrome() { | ||
21 | + NORMAL="" | ||
22 | + STRONG="" | ||
23 | + RED="" | ||
24 | + GREEN="" | ||
25 | + YELLOW="" | ||
26 | + BLUE="" | ||
27 | +} | ||
28 | + | ||
29 | +#colors | ||
30 | +if [ -n "$USE_COLORS" ]; then | ||
31 | + default_colors | ||
32 | fi | ||
33 | |||
34 | |||
35 | @@ -1036,12 +1048,14 @@ unset force | ||
36 | unset recursive | ||
37 | -while getopts "dfFhi:kinp:P:qrRs:u" opt; do | ||
38 | +while getopts "cdfFhi:kimnp:P:qrRs:u" opt; do | ||
39 | case $opt in | ||
40 | + 'c') default_colors;; | ||
41 | 'd') nodeps=1;; | ||
42 | 'f') force=1;; | ||
43 | 'F') forceroot=1;; | ||
44 | 'h') usage;; | ||
45 | 'i') install_after="$install_after $OPTARG";; | ||
46 | 'k') keep=1;; | ||
47 | + 'm') monochrome;; | ||
48 | 'n') die "Use newapkbuild to create new aports";; | ||
49 | 'p') PKGDEST=$OPTARG;; | ||
50 | 'P') REPODEST=$OPTARG;; | ||