diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-03-27 19:41:05 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-03-27 19:41:05 +0000 |
commit | 89ed34fefa8428f715be4755b504447a53cca407 (patch) | |
tree | 8adca1eebe478c39240e4b33854bd86ca27cfc3a /main/abuild/0001-abuild-wrap-check-with-fakeroot.patch | |
parent | b21bb58347d9e4be3ff30e7850212309878cb6dc (diff) | |
download | aports-89ed34fefa8428f715be4755b504447a53cca407.tar.bz2 aports-89ed34fefa8428f715be4755b504447a53cca407.tar.xz |
main/abuild: add the actual patch
Diffstat (limited to 'main/abuild/0001-abuild-wrap-check-with-fakeroot.patch')
-rw-r--r-- | main/abuild/0001-abuild-wrap-check-with-fakeroot.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/main/abuild/0001-abuild-wrap-check-with-fakeroot.patch b/main/abuild/0001-abuild-wrap-check-with-fakeroot.patch new file mode 100644 index 0000000000..50cfec21f1 --- /dev/null +++ b/main/abuild/0001-abuild-wrap-check-with-fakeroot.patch @@ -0,0 +1,39 @@ +From 1ddc910eb328b4534234bd2f97e631a075241abd Mon Sep 17 00:00:00 2001 +From: William Pitcock <nenolod@dereferenced.org> +Date: Mon, 27 Mar 2017 19:38:38 +0000 +Subject: [PATCH] abuild: wrap check() with fakeroot + +--- + abuild.in | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/abuild.in b/abuild.in +index c6ee5f3..f435ffc 100644 +--- a/abuild.in ++++ b/abuild.in +@@ -1401,7 +1401,7 @@ create_apks() { + } + + build_abuildrepo() { +- local d apk _build=build _check=check ++ local d apk _build=build _check=check_fakeroot + if ! is_function package; then + # if package() is missing then build is called from rootpkg + _build=true +@@ -1626,6 +1626,13 @@ do_fakeroot() { + fi + } + ++# wrap check() with fakeroot ++check_fakeroot() { ++ cd "$startdir" ++ [ -n "$FAKEROOT" ] && msg "Entering fakeroot..." ++ do_fakeroot "$abuild_path" $color_opt $keep_build check ++} ++ + # build and package in fakeroot + rootpkg() { + local _package=package +-- +2.12.1 + |