nettle: update to 3.8.

This commit is contained in:
mhmdanas 2022-07-04 03:29:17 +03:00 committed by classabbyamp
parent 8da33c252e
commit b75991a392
3 changed files with 3 additions and 45 deletions

View File

@ -1,21 +0,0 @@
This ensures that efficient capability checks are used on musl.
--- a/fat-ppc.c
+++ b/fat-ppc.c
@@ -42,12 +42,10 @@
#if defined(_AIX)
# include <sys/systemcfg.h>
-#elif defined(__linux__) && defined(__GLIBC__) && defined(__GLIBC_PREREQ)
-# if __GLIBC_PREREQ(2, 16)
-# define USE_GETAUXVAL 1
-# include <asm/cputable.h>
-# include <sys/auxv.h>
-# endif
+#elif defined(__linux__)
+# define USE_GETAUXVAL 1
+# include <asm/cputable.h>
+# include <sys/auxv.h>
#elif defined(__FreeBSD__)
# include <machine/cpu.h>
# ifdef PPC_FEATURE2_HAS_VEC_CRYPTO

View File

@ -1,22 +0,0 @@
Ensure that ELFv2 ABI is used on all ppc64, including big endian.
--- a/powerpc64/machine.m4
+++ b/powerpc64/machine.m4
@@ -1,7 +1,7 @@
define(`PROLOGUE',
`.globl C_NAME($1)
DECLARE_FUNC(C_NAME($1))
-ifelse(WORDS_BIGENDIAN,no,
+ifelse(`no',`no',
`ifdef(`FUNC_ALIGN',`.align FUNC_ALIGN')
C_NAME($1):
addis 2,12,(.TOC.-C_NAME($1))@ha
@@ -17,7 +17,7 @@ ifdef(`FUNC_ALIGN',`.align FUNC_ALIGN')
undefine(`FUNC_ALIGN')')
define(`EPILOGUE',
-`ifelse(WORDS_BIGENDIAN,no,
+`ifelse(`no',`no',
`.size C_NAME($1), . - C_NAME($1)',
`.size .C_NAME($1), . - .C_NAME($1)
.size C_NAME($1), . - .C_NAME($1)')')

View File

@ -1,6 +1,6 @@
# Template file for 'nettle'
pkgname=nettle
version=3.7.3
version=3.8
revision=1
build_style=gnu-configure
configure_args="--enable-shared"
@ -10,8 +10,9 @@ short_desc="Low-level cryptographic library"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later"
homepage="https://www.lysator.liu.se/~nisse/nettle/"
changelog="https://git.lysator.liu.se/nettle/nettle/-/raw/master/NEWS"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=661f5eb03f048a3b924c3a8ad2515d4068e40f67e774e8a26827658007e3bcf0
checksum=7576c68481c198f644b08c160d1a4850ba9449e308069455b5213319f234e8e6
nettle-devel_package() {
depends="gmp-devel ${sourcepkg}>=${version}_${revision}"