From dd4f46db6eeb639daca87c5e9367ff8782365a5a Mon Sep 17 00:00:00 2001 From: jbu Date: Mon, 20 Jul 2015 20:41:44 +0200 Subject: [PATCH] transmission: unbreak musl - Add missing includes which happen as side-effects with glibc - Move usr/lib/locale to usr/share/locale for musl libc (better fix?) --- srcpkgs/transmission/template | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/srcpkgs/transmission/template b/srcpkgs/transmission/template index 79301c00d26..9abcb4914fd 100644 --- a/srcpkgs/transmission/template +++ b/srcpkgs/transmission/template @@ -1,7 +1,7 @@ # Template file for 'transmission' pkgname=transmission version=2.84 -revision=10 +revision=11 build_style=gnu-configure configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp --without-systemd-daemon" hostmakedepends="pkg-config intltool" @@ -24,6 +24,12 @@ if [ -z "$CROSS_BUILD" ]; then subpackages+=" transmission-qt" fi +post_configure() { + # Add missing includes which happen as side-effects with glibc + sed -i libtransmission/transmission.h \ + -e "/#include .*/i #include /* ssize_t */" \ + -e "/#include .*/i #include /* off_t */" +} do_build() { make CXXFLAGS="${CXXFLAGS} -std=c++11" LDFLAGS="${LDFLAGS}" ${makejobs} if [ -z "$CROSS_BUILD" ]; then @@ -77,6 +83,10 @@ transmission-gtk_package() { vmove usr/share/icons/hicolor vmove usr/share/applications vmove usr/share/pixmaps + # This install path seems to be used with musl libc + if [ -d ${DESTDIR}/usr/lib/locale ]; then + mv ${DESTDIR}/usr/lib/locale ${DESTDIR}/usr/share + fi vmove usr/share/locale } }