diff --git a/dev-libs/libtasn1/libtasn1-4.17.0.recipe b/dev-libs/libtasn1/libtasn1-4.18.0.recipe similarity index 95% rename from dev-libs/libtasn1/libtasn1-4.17.0.recipe rename to dev-libs/libtasn1/libtasn1-4.18.0.recipe index bba01485d..a310ce834 100644 --- a/dev-libs/libtasn1/libtasn1-4.17.0.recipe +++ b/dev-libs/libtasn1/libtasn1-4.18.0.recipe @@ -9,13 +9,13 @@ LICENSE="GNU LGPL v2.1 GNU GPL v3" REVISION="1" SOURCE_URI="https://ftp.gnu.org/gnu/libtasn1/libtasn1-$portVersion.tar.gz" -CHECKSUM_SHA256="ece7551cea7922b8e10d7ebc70bc2248d1fdd73351646a2d6a8d68a9421c45a5" +CHECKSUM_SHA256="4365c154953563d64c67a024b607d1ee75c6db76e0d0f65709ea80a334cd1898" PATCHES="libtasn1-$portVersion.patchset" ARCHITECTURES="all" SECONDARY_ARCHITECTURES="x86_gcc2 x86" -libVersion="6.6.1" +libVersion="6.6.2" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" portVersionCompat="$portVersion compat >= 4" diff --git a/dev-libs/libtasn1/patches/libtasn1-4.17.0.patchset b/dev-libs/libtasn1/patches/libtasn1-4.17.0.patchset deleted file mode 100644 index 55ea3d9f7..000000000 --- a/dev-libs/libtasn1/patches/libtasn1-4.17.0.patchset +++ /dev/null @@ -1,85 +0,0 @@ -From 86ae11a6cbc6b4f9b6d087fc4ecec755524c2521 Mon Sep 17 00:00:00 2001 -From: fbrosson -Date: Wed, 17 Jan 2018 22:03:45 +0000 -Subject: Do not use __GNUC_PATCHLEVEL__ if it's not defined. - - -diff --git a/lib/includes/libtasn1.h b/lib/includes/libtasn1.h -index d6f02fa..fbddf53 100644 ---- a/lib/includes/libtasn1.h -+++ b/lib/includes/libtasn1.h -@@ -104,7 +104,11 @@ extern "C" - - - #if defined __GNUC__ && !defined ASN1_INTERNAL_BUILD -+# if defined(__GNUC_PATCHLEVEL) - # define _ASN1_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -+# else -+# define _ASN1_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) -+# endif - # if _ASN1_GCC_VERSION >= 30100 - # define _ASN1_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__)) - # endif --- -2.23.0 - - -From 8b3f55d9053e7bee89f8242a0e17bf76277ab48a Mon Sep 17 00:00:00 2001 -From: Jerome Duval -Date: Tue, 10 Sep 2019 21:17:44 +0200 -Subject: gcc2 build fix - - -diff --git a/fuzz/corpus2array.c b/fuzz/corpus2array.c -index fc30524..572ab67 100644 ---- a/fuzz/corpus2array.c -+++ b/fuzz/corpus2array.c -@@ -119,14 +119,15 @@ int main(void) - printf(", ASN1_ETYPE_TIME"); - add = 1; - } -- -- for (int i = 8; i < 32 ; i++) { -+{ -+ int i; -+ for (i = 8; i < 32 ; i++) { - if ((e.type & (1U << i)) && typename[i - 8]) { - printf(add ? "|%s" : ", %s", typename[i - 8]); - add = 1; - } - } -- -+} - if (!add) - printf(", %u", e.type); - } else -diff --git a/lib/gl/strverscmp.c b/lib/gl/strverscmp.c -index 83922ea..2b25729 100644 ---- a/lib/gl/strverscmp.c -+++ b/lib/gl/strverscmp.c -@@ -69,16 +69,18 @@ __strverscmp (const char *s1, const char *s2) - /* S_F */ CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, - /* S_Z */ CMP, +1, +1, -1, CMP, CMP, -1, CMP, CMP - }; -+ unsigned char c1, c2; -+ int state; -+ int diff; - - if (p1 == p2) - return 0; - -- unsigned char c1 = *p1++; -- unsigned char c2 = *p2++; -+ c1 = *p1++; -+ c2 = *p2++; - /* Hint: '0' is a digit too. */ -- int state = S_N + ((c1 == '0') + (isdigit (c1) != 0)); -+ state = S_N + ((c1 == '0') + (isdigit (c1) != 0)); - -- int diff; - while ((diff = c1 - c2) == 0) - { - if (c1 == '\0') --- -2.23.0 - diff --git a/dev-libs/libtasn1/patches/libtasn1-4.18.0.patchset b/dev-libs/libtasn1/patches/libtasn1-4.18.0.patchset new file mode 100644 index 000000000..55a652f84 --- /dev/null +++ b/dev-libs/libtasn1/patches/libtasn1-4.18.0.patchset @@ -0,0 +1,115 @@ +From 3ddabd9afeb2658252ca5e89981c32de7145791c Mon Sep 17 00:00:00 2001 +From: fbrosson +Date: Wed, 17 Jan 2018 22:03:45 +0000 +Subject: Do not use __GNUC_PATCHLEVEL__ if it's not defined. + + +diff --git a/lib/includes/libtasn1.h b/lib/includes/libtasn1.h +index fc695a2..be25989 100644 +--- a/lib/includes/libtasn1.h ++++ b/lib/includes/libtasn1.h +@@ -100,7 +100,11 @@ extern "C" + + + # if defined __GNUC__ && !defined ASN1_INTERNAL_BUILD ++# if defined(__GNUC_PATCHLEVEL) + # define _ASN1_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) ++# else ++# define _ASN1_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) ++# endif + # if _ASN1_GCC_VERSION >= 30100 + # define _ASN1_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__)) + # endif +-- +2.30.2 + + +From dbb27a921fb012e728b4ba946752e69d511434f8 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Tue, 10 Sep 2019 21:17:44 +0200 +Subject: gcc2 build fix + + +diff --git a/fuzz/corpus2array.c b/fuzz/corpus2array.c +index f2a503b..8e7b89b 100644 +--- a/fuzz/corpus2array.c ++++ b/fuzz/corpus2array.c +@@ -136,7 +136,9 @@ main (void) + add = 1; + } + +- for (int i = 8; i < 32; i++) ++{ ++ int i; ++ for (i = 8; i < 32; i++) + { + if ((e.type & (1U << i)) && typename[i - 8]) + { +@@ -144,7 +146,7 @@ main (void) + add = 1; + } + } +- ++} + if (!add) + printf (", %u", e.type); + } +diff --git a/lib/gl/strverscmp.c b/lib/gl/strverscmp.c +index 2dcf359..fe0e5f2 100644 +--- a/lib/gl/strverscmp.c ++++ b/lib/gl/strverscmp.c +@@ -73,6 +73,7 @@ __strverscmp (const char *s1, const char *s2) + if (p1 == p2) + return 0; + ++{ + unsigned char c1 = *p1++; + unsigned char c2 = *p2++; + /* Hint: '0' is a digit too. */ +@@ -108,5 +109,6 @@ __strverscmp (const char *s1, const char *s2) + return state; + } + } ++} + libc_hidden_def (__strverscmp) + weak_alias (__strverscmp, strverscmp) +diff --git a/src/gl/malloc.c b/src/gl/malloc.c +index 0d8b359..09a9f88 100644 +--- a/src/gl/malloc.c ++++ b/src/gl/malloc.c +@@ -40,6 +40,7 @@ rpl_malloc (size_t n) + return NULL; + } + ++{ + void *result = malloc (n); + + #if !HAVE_MALLOC_POSIX +@@ -49,3 +50,4 @@ rpl_malloc (size_t n) + + return result; + } ++} +diff --git a/src/gl/malloca.c b/src/gl/malloca.c +index b488423..c3d2337 100644 +--- a/src/gl/malloca.c ++++ b/src/gl/malloca.c +@@ -61,6 +61,7 @@ mmalloca (size_t n) + theoretical platforms where UINTPTR_MAX <= INT_MAX. */ + INT_ADD_WRAPV (umem, sizeof (small_t) + sa_alignment_max - 1, + &umemplus); ++{ + idx_t offset = ((umemplus & ~alignment2_mask) + + sa_alignment_max - umem); + void *vp = mem + offset; +@@ -73,6 +74,7 @@ mmalloca (size_t n) + p[-1] = offset; + /* p ≡ sa_alignment_max mod 2*sa_alignment_max. */ + return p; ++} + } + } + /* Out of memory. */ +-- +2.30.2 +