From 2def0a7d24ecb42ce992cf1aace3c27167752b91 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sat, 3 Sep 2016 09:02:16 +0200 Subject: [PATCH] libcxx: fix musl build --- srcpkgs/libcxx/files/libcxx-0001-musl-hacks.patch | 9 --------- srcpkgs/libcxx/template | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/srcpkgs/libcxx/files/libcxx-0001-musl-hacks.patch b/srcpkgs/libcxx/files/libcxx-0001-musl-hacks.patch index 137eb938d8d..99795c3cc97 100644 --- a/srcpkgs/libcxx/files/libcxx-0001-musl-hacks.patch +++ b/srcpkgs/libcxx/files/libcxx-0001-musl-hacks.patch @@ -26,15 +26,6 @@ typename remove_reference::type __current_errno = errno; if (__current_errno == 0) errno = __save_errno; -@@ -941,7 +940,7 @@ __num_get_float(const char* __a, const char* __a_end, ios_base::iostate& __err) - typename remove_reference::type __save_errno = errno; - errno = 0; - char *__p2; -- long double __ld = strtold_l(__a, &__p2, _LIBCPP_GET_C_LOCALE); -+ long double __ld = strtold(__a, &__p2); - typename remove_reference::type __current_errno = errno; - if (__current_errno == 0) - errno = __save_errno; --- a/src/locale.cpp +++ b/src/locale.cpp @@ -1010,7 +1010,7 @@ ctype::do_narrow(const char_type* low, const char_type* high, char dfault, diff --git a/srcpkgs/libcxx/template b/srcpkgs/libcxx/template index 2126ed2e6d6..da17b0bc0bd 100644 --- a/srcpkgs/libcxx/template +++ b/srcpkgs/libcxx/template @@ -1,7 +1,7 @@ # Template file for 'libcxx' pkgname=libcxx version=3.9.0 -revision=1 +revision=2 build_style=cmake hostmakedepends="cmake" case "$XBPS_TARGET_MACHINE" in