From 4bc743cc8170557531cacafbc330810e194f85a1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 11 Jan 2014 17:05:51 +0100 Subject: [PATCH] shadow: make this build with musl. --- srcpkgs/shadow/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/shadow/template b/srcpkgs/shadow/template index 3961aa8d94..6705bda313 100644 --- a/srcpkgs/shadow/template +++ b/srcpkgs/shadow/template @@ -38,6 +38,13 @@ if [ "$CROSS_BUILD" ]; then } fi +pre_configure() { + case "$XBPS_TARGET_MACHINE" in + # Completely disable unportable ruserok(). + *-musl) sed '/RUSEROK/d' -i configure;; + esac +} + do_build() { # Don't install groups(1), we use the one from coreutils. sed -i 's/groups$(EXEEXT) //' src/Makefile