From 8c68f7d56ef1aca855f6d58cb758887b2154d584 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Sun, 17 Nov 2019 14:25:08 -0600 Subject: [PATCH] nwipe: unmark broken musl --- srcpkgs/nwipe/patches/musl.patch | 16 ++++++++++++++++ srcpkgs/nwipe/template | 6 ------ 2 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/nwipe/patches/musl.patch diff --git a/srcpkgs/nwipe/patches/musl.patch b/srcpkgs/nwipe/patches/musl.patch new file mode 100644 index 00000000000..1cdb928fe0a --- /dev/null +++ b/srcpkgs/nwipe/patches/musl.patch @@ -0,0 +1,16 @@ +diff --git src/nwipe.c src/nwipe.c +index c7586fd..ec2eb1d 100644 +--- src/nwipe.c ++++ src/nwipe.c +@@ -26,9 +26,10 @@ + #include + #include + #include ++#if defined(__GLIBC__) + #include + #include +- ++#endif + #include "nwipe.h" + #include "context.h" + #include "method.h" diff --git a/srcpkgs/nwipe/template b/srcpkgs/nwipe/template index 405d04fd5ec..fff4e21a6e3 100644 --- a/srcpkgs/nwipe/template +++ b/srcpkgs/nwipe/template @@ -2,7 +2,6 @@ pkgname=nwipe version=0.26 revision=1 - build_style=gnu-configure hostmakedepends="automake pkg-config" makedepends="libuuid-devel libparted-devel ncurses-devel" @@ -13,11 +12,6 @@ homepage="https://github.com/martijnvanbrummelen/nwipe" distfiles="${homepage}/archive/v${version}.tar.gz" checksum=b8f37b4f1529931bdd5635d33baa35b7c08755e7ef5f0556b629c0360c85c920 -# nwipe.c:29:10: fatal error: bits/pthreadtypes.h: No such file or directory -case "$XBPS_TARGET_MACHINE" in - *-musl) broken="nwipe broken on musl" -esac - CFLAGS="-D_FILE_OFFSET_BITS=64" pre_configure() {