cclive: unbreak on musl
This commit is contained in:
parent
f3c9b4f9c0
commit
dc73d8723f
2 changed files with 12 additions and 4 deletions
12
srcpkgs/cclive/patches/musl-strerror_r.patch
Normal file
12
srcpkgs/cclive/patches/musl-strerror_r.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- src/cc/error.h 2018-12-29 15:15:13.042776367 +0100
|
||||
+++ - 2018-12-29 15:24:13.933668360 +0100
|
||||
@@ -40,7 +40,8 @@
|
||||
static inline std::string strerror(const int ec)
|
||||
{
|
||||
char buf[256];
|
||||
- return strerror_r(ec, buf, sizeof(buf));
|
||||
+ strerror_r(ec, buf, sizeof(buf));
|
||||
+ return buf;
|
||||
}
|
||||
|
||||
static inline std::string strerror() { return strerror(errno); }
|
|
@ -13,10 +13,6 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|||
checksum=2edeaf5d76455723577e0b593f0322a97f1e0c8b0cffcc70eca8b5d17374a495
|
||||
CPPFLAGS="-P"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) broken="./cc/error.h:43:20: error: could not convert 'strerror_r(((int)ec), ((char*)(& buf)), sizeof (buf))' from 'int' to 'std::__cxx11::string' {aka 'std::__cxx11::basic_string<char>'} " ;;
|
||||
esac
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue