aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Santana <daniel@santana.tech>2019-02-11 00:00:07 -0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-03-04 07:44:13 +0000
commitcf27e69eb06356a92f223c9e41e3ca6d0f9408f5 (patch)
tree8b943ef246c60007d1036d46906f3b77e4e172e0
parentbc0f9441b069ef3756cc65e96c9896a4be8cb0ae (diff)
downloadaports-cf27e69eb06356a92f223c9e41e3ca6d0f9408f5.tar.bz2
aports-cf27e69eb06356a92f223c9e41e3ca6d0f9408f5.tar.xz
main/talloc: include libtalloc.a on talloc-dev
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.
-rw-r--r--main/talloc/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/talloc/APKBUILD b/main/talloc/APKBUILD
index 9c90711880..fd0c3ad2d9 100644
--- a/main/talloc/APKBUILD
+++ b/main/talloc/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=talloc
pkgver=2.1.14
-pkgrel=0
+pkgrel=1
pkgdesc="Memory pool management library"
url="https://talloc.samba.org"
arch="all"
@@ -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() {
@@ -42,6 +45,7 @@ check() {
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
+ install -Dm644 libtalloc.a "$pkgdir"/usr/lib/libtalloc.a
}
_py2() {