summaryrefslogtreecommitdiff
path: root/user/psmisc/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-25 20:53:31 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-25 20:53:31 -0500
commitab0ce45aadc327954a6bb1163e17822aa5a2cee6 (patch)
tree60eccca5a14725130d28678a888bfac99b2f29c3 /user/psmisc/APKBUILD
parent32be8e4615a306d3be3ffcac8a629def7e976538 (diff)
downloadpackages-ab0ce45aadc327954a6bb1163e17822aa5a2cee6.tar.gz
packages-ab0ce45aadc327954a6bb1163e17822aa5a2cee6.tar.bz2
packages-ab0ce45aadc327954a6bb1163e17822aa5a2cee6.tar.xz
packages-ab0ce45aadc327954a6bb1163e17822aa5a2cee6.zip
user/psmisc: support cross better
Diffstat (limited to 'user/psmisc/APKBUILD')
-rw-r--r--user/psmisc/APKBUILD10
1 files changed, 7 insertions, 3 deletions
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
}