Commit cc23438a authored by Natanael Copa's avatar Natanael Copa

main/lua-aports: backport bugfix

we need reset depends_{doc,dev,libs,openrc} when parsing APKBUILDs
parent 50c742e6
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-aports
pkgver=1.0.0
pkgrel=0
pkgrel=1
pkgdesc="Lua modules for parsing aports tree"
url="https://dev.alpinelinux.org/archive/lua-aports/"
arch="noarch"
......@@ -9,6 +9,7 @@ license="MIT"
depends="lua5.2-cjson lua5.2-filesystem lua5.2-optarg lua5.2"
replaces="abuild"
source="https://dev.alpinelinux.org/archive/lua-aports/lua-aports-$pkgver.tar.xz
0001-db-clear-depends_-when-parse-APKBUILDs.patch
"
builddir="$srcdir/$pkgname-$pkgver"
......@@ -17,4 +18,5 @@ package() {
make DESTDIR="$pkgdir" install
}
sha512sums="67ea0bd93c7cf8fcfe175a6e90da6e1976e0ca6257b036ef43959a5a839cecc94ceb90a509ec270cb6cdaf4ef234c41adc7269d733ae6ad1c377ef9c4b261f0b lua-aports-1.0.0.tar.xz"
sha512sums="67ea0bd93c7cf8fcfe175a6e90da6e1976e0ca6257b036ef43959a5a839cecc94ceb90a509ec270cb6cdaf4ef234c41adc7269d733ae6ad1c377ef9c4b261f0b lua-aports-1.0.0.tar.xz
d95a989bed076a047c8d2dcd0c40cd44acd5eb9fbda94922d42e8e6f2c0db0094c931684fa2ae1f9f56416de9e77853589fae7815477b99c01a54bfa4bda9c45 0001-db-clear-depends_-when-parse-APKBUILDs.patch"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment