aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-aports/0001-db-clear-depends_-when-parse-APKBUILDs.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-05-03 09:34:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-03 09:36:00 +0000
commitcc23438a3da35112cd89014144760de73ce10ff3 (patch)
treed3e87e5211a768344db0dde88486761822924a11 /main/lua-aports/0001-db-clear-depends_-when-parse-APKBUILDs.patch
parent50c742e66bdcf3ce6b2ea64b7442401bf0e701d5 (diff)
downloadaports-cc23438a3da35112cd89014144760de73ce10ff3.tar.bz2
aports-cc23438a3da35112cd89014144760de73ce10ff3.tar.xz
main/lua-aports: backport bugfix
we need reset depends_{doc,dev,libs,openrc} when parsing APKBUILDs
Diffstat (limited to 'main/lua-aports/0001-db-clear-depends_-when-parse-APKBUILDs.patch')
-rw-r--r--main/lua-aports/0001-db-clear-depends_-when-parse-APKBUILDs.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/lua-aports/0001-db-clear-depends_-when-parse-APKBUILDs.patch b/main/lua-aports/0001-db-clear-depends_-when-parse-APKBUILDs.patch
new file mode 100644
index 0000000000..864eb00f6f
--- /dev/null
+++ b/main/lua-aports/0001-db-clear-depends_-when-parse-APKBUILDs.patch
@@ -0,0 +1,29 @@
+From e3405d25e66ec6970c38ca8e57dd873a25e2ff3b Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Fri, 3 May 2019 09:15:49 +0000
+Subject: [PATCH] db: clear depends_* when parse APKBUILDs
+
+Some APKBUILDs uses makedepends="$depends_dev ..." without first setting
+depends_dev. This may result in depends_dev leak when parsing APKBUILDs
+---
+ aports/db.lua | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/aports/db.lua b/aports/db.lua
+index bb7e136..2ed14bd 100644
+--- a/aports/db.lua
++++ b/aports/db.lua
+@@ -98,6 +98,10 @@ local function apkbuilds_open(aportsdir, repos)
+ license=
+ options=
+ depends=
++ depends_doc=
++ depends_dev=
++ depends_libs=
++ depends_openrc=
+ makedepends=
+ makedepends_build=
+ makedepends_host=
+--
+2.21.0
+