aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0001-abuild-strip-versions-from-dependencies-when-buildin.patch
blob: 4ca284d00a5c0dcddf076b7820ea0e2396b02039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From f24e997104849f4a7cf9e2f73a3cc66a83624fcb Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Mon, 31 Aug 2009 09:12:04 +0000
Subject: [PATCH] abuild: strip versions from dependencies when building recursively

---
 abuild.in |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/abuild.in b/abuild.in
index b718a67..23c9f96 100755
--- a/abuild.in
+++ b/abuild.in
@@ -712,7 +712,11 @@ depparse_aports() {
 }
 
 deptrace() {
-	local deps="$@"
+	local deps= i=
+	# strip versions from deps
+	for i in "$@"; do
+		deps="$deps ${i%[<>=]*}"
+	done
 	[ -z "$deps" ] && return 0
 	( 	depparse_aports 
 		if [ -z "$upgrade" ]; then
-- 
1.6.4