From 4f9a2d524c92f908632cd7239fe3ffd079c0dce9 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 23 May 2015 17:13:19 +0200 Subject: [PATCH] xfsdump: fix for musl. --- srcpkgs/xfsdump/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/xfsdump/template b/srcpkgs/xfsdump/template index 20555a88ef..7ac08cb5b4 100644 --- a/srcpkgs/xfsdump/template +++ b/srcpkgs/xfsdump/template @@ -1,7 +1,7 @@ # Template file for 'xfsdump' pkgname=xfsdump version=3.1.4 -revision=1 +revision=2 build_style=gnu-configure configure_args="--sbindir=/usr/bin" makedepends="libuuid-devel ncurses-devel xfsprogs-devel attr-devel" @@ -12,6 +12,14 @@ homepage="http://oss.sgi.com/projects/xfs/" distfiles="ftp://oss.sgi.com/projects/xfs/cmd_tars/${pkgname}-${version}.tar.gz" checksum=570eafd0721515bdd79cb0e295b701d49cdf81e71a0a0ff0df6d4c5cc1960943 +post_extract() { + case "$XBPS_TARGET_MACHINE" in + *-musl) + sed -i -e 's/SIGCLD/SIGCHLD/g' \ + -e 's/RLIM64_INFINITY/RLIM_INFINITY/g' \ + common/main.c + esac +} post_install() { mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin rm -rf ${DESTDIR}/usr/share/doc/