From 95cc60d666ee933759c3fef6f3b6b638611b77bc Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 21 May 2015 21:28:49 +0200 Subject: [PATCH] ltrace: fix for musl. --- srcpkgs/ltrace/template | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/srcpkgs/ltrace/template b/srcpkgs/ltrace/template index 75c719994e5..7ae7935f9fa 100644 --- a/srcpkgs/ltrace/template +++ b/srcpkgs/ltrace/template @@ -1,7 +1,7 @@ # Template file for 'ltrace' pkgname=ltrace version=0.7.3 -revision=3 +revision=4 build_style=gnu-configure hostmakedepends="automake libtool git" makedepends="elfutils-devel" @@ -11,10 +11,19 @@ maintainer="Juan RP " homepage="http://ltrace.alioth.debian.org/" license="GPL-2" -CFLAGS="-Wno-error" +CFLAGS="-Wno-error -D_GNU_SOURCE" do_fetch() { git clone -b${version} git://anonscm.debian.org/collab-maint/ltrace.git ${wrksrc} + cd ${wrksrc} + case "$XBPS_TARGET_MACHINE" in + *-musl) + sed -i '/HOST_OS/s/linux-uclibc/linux-musl/g' configure.ac + sed -i 's/REG_NOERROR/0/g' options.c glob.c + sed -i -e '/error.h/d' -e 's/error(1, errno/err(1/' \ + read_config_file.c expr.c zero.c + sed -i '1i#include ' proc.h + esac } pre_configure() { autoreconf -fi