From 04f215cf074a30b7b09722ae5e88fbb7aa2e7fa9 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Mon, 18 Nov 2019 18:04:49 -0600 Subject: [PATCH] posixovl: unmark broken on musl --- srcpkgs/posixovl/patches/musl.patch | 17 +++++++++++++++++ srcpkgs/posixovl/template | 4 ---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/posixovl/patches/musl.patch diff --git a/srcpkgs/posixovl/patches/musl.patch b/srcpkgs/posixovl/patches/musl.patch new file mode 100644 index 00000000000..654c2de4255 --- /dev/null +++ b/srcpkgs/posixovl/patches/musl.patch @@ -0,0 +1,17 @@ +From: Nathan Owens +On musl-based systems, causes redefintions +--- +diff --git posixovl.c posixovl.c +index ae64f21..04e41fb 100644 +--- posixovl.c ++++ posixovl.c +@@ -30,7 +30,9 @@ + #include + #include + #include ++#if defined(__GLIBC__) + #include ++#endif + #include + #ifdef HAVE_XATTR_XATTR_H + # include diff --git a/srcpkgs/posixovl/template b/srcpkgs/posixovl/template index d23c45efee3..1146191fcf8 100644 --- a/srcpkgs/posixovl/template +++ b/srcpkgs/posixovl/template @@ -11,7 +11,3 @@ license="GPL-2.0-or-later" homepage="https://sourceforge.net/projects/posixovl/" distfiles="${SOURCEFORGE_SITE}/posixovl/files/${pkgname}-${version}.tar.xz" checksum=a827798b02c0f27b37d8a10502e76c21adac43b887a49e7234e8d27668f62e72 - -case "$XBPS_TARGET_MACHINE" in - *-musl) broken="posixovl.c:196:14: error: conflicting types for ‘strlcpy’" ;; -esac