aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0001-add-checkroot-option.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-22 12:58:54 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-22 12:59:26 +0200
commit276fda8e46d3c690947a46fb92ec0940b7b449a4 (patch)
tree1aa558f2491bd20c787178c55de8f43645c5ae90 /main/abuild/0001-add-checkroot-option.patch
parentd84e1cefe9382a476a6f7e141a7a7ff7f9406150 (diff)
downloadaports-276fda8e46d3c690947a46fb92ec0940b7b449a4.tar.bz2
aports-276fda8e46d3c690947a46fb92ec0940b7b449a4.tar.xz
main/abuild: add !checkroot option
Diffstat (limited to 'main/abuild/0001-add-checkroot-option.patch')
-rw-r--r--main/abuild/0001-add-checkroot-option.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/abuild/0001-add-checkroot-option.patch b/main/abuild/0001-add-checkroot-option.patch
new file mode 100644
index 0000000000..ad9503ed3b
--- /dev/null
+++ b/main/abuild/0001-add-checkroot-option.patch
@@ -0,0 +1,29 @@
+From 79525de509ccb107e388c5f4d5bb700b2d1e8831 Mon Sep 17 00:00:00 2001
+From: Shiz <hi@shiz.me>
+Date: Sat, 20 May 2017 18:32:45 +0200
+Subject: [PATCH] abuild: add !checkroot option to run tests without fakeroot
+
+Due to fakeroot being very permissive with regards to file permissions,
+some package testsuites that explicitly check for failing permission checks
+will fail.
+
+For those testsuites, give the APKBUILD the option to run the tests outside
+of a fakeroot environment.
+---
+ abuild.in | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/abuild.in b/abuild.in
+index c003282..0f54c87 100644
+--- a/abuild.in
++++ b/abuild.in
+@@ -1401,6 +1401,9 @@ build_abuildrepo() {
+ # 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