aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-11-10 21:38:50 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-11-10 21:38:50 +0000
commit4f908b89344809c140eb8b8492c3ad284611d4e4 (patch)
tree0755fe2f335c0f3478442c52c5616cc88c208455 /main/abuild
parenta53bb9b7dfd75311b361c103fb8812d7dfc7355a (diff)
downloadaports-4f908b89344809c140eb8b8492c3ad284611d4e4.tar.bz2
aports-4f908b89344809c140eb8b8492c3ad284611d4e4.tar.xz
main/abuild: helps to actually add the patch, i suppose
Diffstat (limited to 'main/abuild')
-rw-r--r--main/abuild/0001-abuild-rootbld-run-testsuites-if-requested-also-hand.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/abuild/0001-abuild-rootbld-run-testsuites-if-requested-also-hand.patch b/main/abuild/0001-abuild-rootbld-run-testsuites-if-requested-also-hand.patch
new file mode 100644
index 0000000000..04fd0eef55
--- /dev/null
+++ b/main/abuild/0001-abuild-rootbld-run-testsuites-if-requested-also-hand.patch
@@ -0,0 +1,38 @@
+From f7b19c3454c56c25bc13a8ffbbcc544a9337cca7 Mon Sep 17 00:00:00 2001
+From: William Pitcock <nenolod@dereferenced.org>
+Date: Fri, 10 Nov 2017 21:34:27 +0000
+Subject: [PATCH] abuild: rootbld: run testsuites if requested, also handle
+ package() only builds
+
+---
+ abuild.in | 14 ++++++++++++--
+ 1 file changed, 12 insertions(+), 2 deletions(-)
+
+diff --git a/abuild.in b/abuild.in
+index 521d530..bcf3994 100644
+--- a/abuild.in
++++ b/abuild.in
+@@ -2074,8 +2074,18 @@ checksum() {
+ }
+
+ rootbld_actions() {
+- local part
+- for part in symlinksrc unpack prepare build rootpkg; do
++ local part _build=build _check=check_fakeroot
++ if ! is_function package; then
++ # if package() is missing then build is called from rootpkg
++ _build=true
++ fi
++ if options_has "!checkroot"; then
++ _check=check
++ fi
++ if ! want_check; then
++ _check=true
++ fi
++ for part in symlinksrc unpack prepare $_build $_check rootpkg; do
+ runpart $part
+ done
+ }
+--
+2.14.2
+