summaryrefslogtreecommitdiffstats
path: root/patches/01_ob-checkbuilddeps-set-substvars.patch
blob: 4eff20e27288497469c7e4c4c876b9919f0847ea (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
30
31
From: "P. J. McDermott" <pj@pehjota.net>
Origin: upstream, http://git.proteanos.com/opkbuild/opkbuild.git/commit/?id=512bdbe
Date: Tue, 13 May 2014 16:01:35 -0400
Subject: ob-checkbuilddeps: Set substvars.

ob_set_package_substvars() expects the name of a binary package as an
argument, even though its implementation for SPF 2.x doesn't use the
argument and SPF 2.0 doesn't specify any substitution variables that are
specific to a binary package.

I probably planned to add some binary-specific variables ("Binary"
maybe?) but never did.

For now we'll just call ob_set_package_substvars() with an empty
argument.
---
 src/ob-checkbuilddeps.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ob-checkbuilddeps.sh b/src/ob-checkbuilddeps.sh
index bb17560..6b41416 100644
--- a/src/ob-checkbuilddeps.sh
+++ b/src/ob-checkbuilddeps.sh
@@ -32,6 +32,7 @@ main()
 
 	ob_init_package '..' || exit 1
 	ob_parse_package_metadata -c '.opkbuild.cache' || exit 1
+	ob_set_package_substvars ''
 
 	check_build_deps
 	return ${?}