Mail archive
alpine-aports

[alpine-aports] [PATCH v2] main/talloc: include libtalloc.a on talloc-dev

From: Daniel Santana <daniel_at_santana.tech>
Date: Mon, 11 Feb 2019 00:00:07 -0200

Current talloc's Waf build setup doesn't include stlib feature, so we
need to build the static library manually. This library is required to
properly build the statically-linked PRoot binary on Alpine Linux.
---
 main/talloc/APKBUILD | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/main/talloc/APKBUILD b/main/talloc/APKBUILD
index 9c90711880..fd0c3ad2d9 100644
--- a/main/talloc/APKBUILD
+++ b/main/talloc/APKBUILD
_at_@ -2,7 +2,7 @@
 # Maintainer: William Pitcock <nenolod_at_dereferenced.org>
 pkgname=talloc
 pkgver=2.1.14
-pkgrel=0
+pkgrel=1
 pkgdesc="Memory pool management library"
 url="https://talloc.samba.org"
 arch="all"
_at_@ -32,6 +32,9 @@ build() {
 		--without-gettext \
 		--extra-python=/usr/bin/python3
 	make
+
+	# talloc's Waf setup doesn't build static libraries, so we do it manually
+	ar qf libtalloc.a bin/default/talloc_*.o
 }
 
 check() {
_at_@ -42,6 +45,7 @@ check() {
 package() {
 	cd "$builddir"
 	make DESTDIR="$pkgdir" install
+	install -Dm644 libtalloc.a "$pkgdir"/usr/lib/libtalloc.a
 }
 
 _py2() {
-- 
2.20.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Feb 11 2019 - 00:00:07 UTC