From 631690782b0f30f5f70cdf329305e99f6eb0f454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 7 Jan 2018 16:35:34 +0100 Subject: [PATCH] zzuf: fix musl --- srcpkgs/zzuf/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/zzuf/template b/srcpkgs/zzuf/template index 3f3df27e6ed..24ca937ee26 100644 --- a/srcpkgs/zzuf/template +++ b/srcpkgs/zzuf/template @@ -11,6 +11,14 @@ license="GPL-3" distfiles="http://caca.zoy.org/files/zzuf/${pkgname}-${version}.tar.gz" checksum=0842c548522028c3e0d9c9cf7d09f6320b661f33824bb6df19ca209851bdf627 +post_configure() { + case "$XBPS_TARGET_MACHINE" in + *-musl) # Disable the *64 variants of libc functions because + # they are just macros calling the regular functions + sed -i config.h -e "/#define HAVE_.*64/s;#define \(HAVE_.*\);/* #undef \1 */;" ;; + esac +} + post_install() { # Rename conflicting files mv ${DESTDIR}/usr/share/man/man1/{zzcat,zzuf-cat}.1