From ab0ce45aadc327954a6bb1163e17822aa5a2cee6 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 25 Apr 2018 20:53:31 -0500 Subject: user/psmisc: support cross better --- user/psmisc/APKBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'user') diff --git a/user/psmisc/APKBUILD b/user/psmisc/APKBUILD index 42ef3e51d..5a1351817 100644 --- a/user/psmisc/APKBUILD +++ b/user/psmisc/APKBUILD @@ -8,9 +8,11 @@ pkgdesc="Miscellaneous utilities that use the proc filesystem" url="https://gitlab.com/psmisc/psmisc" arch="all" license="GPLv2+" -makedepends="ncurses-dev gettext-dev autoconf>=2.69 automake" +makedepends_build="autoconf>=2.69 automake" +makedepends_host="ncurses-dev gettext-dev" checkdepends="dejagnu" -subpackages="$pkgname-doc $pkgname-lang" +subpackages="$pkgname-doc" +[ "$CBUILD" != "$CHOST" ] || subpackages="$subpackages $pkgname-lang" source="$pkgname-$pkgver.tar.bz2::https://gitlab.com/$pkgname/$pkgname/repository/archive.tar.bz2?ref=v$pkgver dont-underlink-peekfd.patch fix-peekfd-on-ppc.patch @@ -39,7 +41,9 @@ build() { --localstatedir=/var \ --enable-harden-flags \ --enable-ipv6 \ - --disable-selinux # is SELinux on Alpine a thing? + --disable-selinux \ + ac_cv_func_malloc_0_nonnull=yes \ + ac_cv_func_realloc_0_nonnull=yes make } -- cgit v1.2.3-70-g09d2