From edc7a52de08e275fa789cb9ed937416db0d2f349 Mon Sep 17 00:00:00 2001 From: Arda Demir Date: Sun, 1 Aug 2021 11:52:23 +0300 Subject: [PATCH] vc: update to 1.4.2. --- ...9a67bd5b7523da7678eb5b37f42c0e2759b7.patch | 31 +++++++++++++++++++ srcpkgs/vc/template | 4 +-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/vc/patches/dea29a67bd5b7523da7678eb5b37f42c0e2759b7.patch diff --git a/srcpkgs/vc/patches/dea29a67bd5b7523da7678eb5b37f42c0e2759b7.patch b/srcpkgs/vc/patches/dea29a67bd5b7523da7678eb5b37f42c0e2759b7.patch new file mode 100644 index 000000000000..4fc361225049 --- /dev/null +++ b/srcpkgs/vc/patches/dea29a67bd5b7523da7678eb5b37f42c0e2759b7.patch @@ -0,0 +1,31 @@ +From dea29a67bd5b7523da7678eb5b37f42c0e2759b7 Mon Sep 17 00:00:00 2001 +From: Bernhard Manfred Gruber +Date: Fri, 25 Jun 2021 14:24:23 +0200 +Subject: [PATCH] support GCC standard libraries which do not define + __GLIBC_PREREQ + +--- + Vc/global.h | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/Vc/global.h b/Vc/global.h +index 6f85b3ce2..d19dc45c2 100644 +--- a/Vc/global.h ++++ b/Vc/global.h +@@ -132,10 +132,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #endif + + #ifdef Vc_GCC +-# if Vc_GCC >= 0x70000 && defined __i386__ && (!defined __GLIBC_PREREQ || !__GLIBC_PREREQ(2,26)) ++# if Vc_GCC >= 0x70000 && defined __i386__ + // GCC 7 changed alignof(max_align_t) to 16. glibc 2.26 followed with malloc in 2.26. + // 1. If GCC >= 7 and libc is not glibc max_align_t and malloc mismatch + // 2. If GCC >= 7 and libc is glibc < 2.26 max_align_t and malloc mismatch ++# ifdef __GLIBC_PREREQ ++# if __GLIBC_PREREQ(2,26) ++# define Vc_HAVE_STD_MAX_ALIGN_T 1 ++# endif ++# endif + # elif Vc_GCC >= 0x40900 + # define Vc_HAVE_STD_MAX_ALIGN_T 1 + # else diff --git a/srcpkgs/vc/template b/srcpkgs/vc/template index 9b2a89373446..63a77967b37c 100644 --- a/srcpkgs/vc/template +++ b/srcpkgs/vc/template @@ -1,6 +1,6 @@ # Template file for 'vc' pkgname=vc -version=1.4.1 +version=1.4.2 revision=1 wrksrc="Vc-${version}" build_style=cmake @@ -10,7 +10,7 @@ maintainer="Orphaned " license="BSD-3-Clause" homepage="https://github.com/VcDevel/Vc" distfiles="${homepage}/releases/download/${version}/Vc-${version}.tar.gz" -checksum=68e609a735326dc3625e98bd85258e1329fb2a26ce17f32c432723b750a4119f +checksum=50d3f151e40b0718666935aa71d299d6370fafa67411f0a9e249fbce3e6e3952 post_install() { vlicense LICENSE