Commit cf27e69e authored by Daniel Santana's avatar Daniel Santana Committed by Leonardo Arena

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.
parent bc0f9441
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org> # Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=talloc pkgname=talloc
pkgver=2.1.14 pkgver=2.1.14
pkgrel=0 pkgrel=1
pkgdesc="Memory pool management library" pkgdesc="Memory pool management library"
url="https://talloc.samba.org" url="https://talloc.samba.org"
arch="all" arch="all"
...@@ -32,6 +32,9 @@ build() { ...@@ -32,6 +32,9 @@ build() {
--without-gettext \ --without-gettext \
--extra-python=/usr/bin/python3 --extra-python=/usr/bin/python3
make make
# talloc's Waf setup doesn't build static libraries, so we do it manually
ar qf libtalloc.a bin/default/talloc_*.o
} }
check() { check() {
...@@ -42,6 +45,7 @@ check() { ...@@ -42,6 +45,7 @@ check() {
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -Dm644 libtalloc.a "$pkgdir"/usr/lib/libtalloc.a
} }
_py2() { _py2() {
......
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