diff --git a/groups/251.native_packages_lib.group b/groups/251.native_packages_lib.group index 22808ea..c3a99bf 100644 --- a/groups/251.native_packages_lib.group +++ b/groups/251.native_packages_lib.group @@ -5,10 +5,10 @@ GROUP_TARGET="native_packages"; NATIVE_PACKAGES_PACKAGES="$(rtl_lconcat "${NATIVE_PACKAGES_PACKAGES}" " glib jansson lame libarchive libassuan libatomic_ops libdmtx libedit libeditline libelf libestr libevent libfastjson libfetch libffi libfirm libflac libgcrypt libgpg_error libidn2 libite -libjpeg_turbo libksba libmad libmspack libmp3splt libnettle libogg libpcap libpipeline libpng libpsl +libjpeg_turbo libksba libmad libmspack libmp3splt libogg libpcap libpipeline libpng libpsl libreadline libredwg libressl libsasl2 libshine libsndfile libsolv libssh libstrophe libtasn1 libtelnet libtheora libtirpc libudns libunistring libuv libvorbis libxml2 -libxslt libz libzip lzo sdl1 sdl1_net sdl1_image sdl1_ttf sdl2 sdl2_image sdl2_ttf wolfssl")"; +libxslt libz libzip lzo nettle sdl1 sdl1_net sdl1_image sdl1_ttf sdl2 sdl2_image sdl2_ttf wolfssl")"; : ${PKG_GLIB_DEPENDS:="libffi libz pcre"}; : ${PKG_GLIB_SHA256SUM:=d64abd16813501c956c4e123ae79f47f1b58de573df9fdd3b0795f1e2c1aa789}; : ${PKG_GLIB_VERSION:=2.56.2}; @@ -125,12 +125,6 @@ libxslt libz libzip lzo sdl1 sdl1_net sdl1_image sdl1_ttf sdl2 sdl2_image sdl2_t : ${PKG_LIBMP3SPLT_URL:=https://sources.voidlinux.org/libmp3splt-${PKG_LIBMP3SPLT_VERSION}/libmp3splt-${PKG_LIBMP3SPLT_VERSION}.tar.gz}; : ${PKG_LIBMP3SPLT_CONFIGURE_ARGS_EXTRA:="--disable-cutter --disable-id3tag --disable-optimise --with-ogg=${PREFIX_NATIVE} --with-vorbis=${PREFIX_NATIVE} --with-mad=${PREFIX_NATIVE}"}; : ${PKG_LIBMP3SPLT_FORCE_AUTORECONF:=1}; -: ${PKG_LIBNETTLE_SHA256SUM:=d24c0d0f2abffbc8f4f34dcf114b0f131ec3774895f3555922fe2f40f3d5e3f1}; -: ${PKG_LIBNETTLE_VERSION:=3.6}; -: ${PKG_LIBNETTLE_URL:=https://ftp.gnu.org/gnu/nettle/nettle-${PKG_LIBNETTLE_VERSION}.tar.gz}; -: ${PKG_LIBNETTLE_CFLAGS_CONFIGURE_EXTRA:=-std=gnu99}; -: ${PKG_LIBNETTLE_CONFIGURE_ARGS_EXTRA:="nettle_cv_asm_underscore=no --disable-static"}; -: ${PKG_LIBNETTLE_MAKEFLAGS_BUILD:=-j1}; : ${PKG_LIBOGG_SHA256SUM:=c163bc12bc300c401b6aa35907ac682671ea376f13ae0969a220f7ddf71893fe}; : ${PKG_LIBOGG_VERSION:=1.3.4}; : ${PKG_LIBOGG_URL:=https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-${PKG_LIBOGG_VERSION}.tar.xz}; @@ -252,6 +246,12 @@ libxslt libz libzip lzo sdl1 sdl1_net sdl1_image sdl1_ttf sdl2 sdl2_image sdl2_t : ${PKG_LZO_SHA256SUM:=c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072}; : ${PKG_LZO_VERSION:=2.10}; : ${PKG_LZO_URL:=https://www.oberhumer.com/opensource/lzo/download/lzo-${PKG_LZO_VERSION}.tar.gz}; +: ${PKG_NETTLE_SHA256SUM:=8d2a604ef1cde4cd5fb77e422531ea25ad064679ff0adf956e78b3352e0ef162}; +: ${PKG_NETTLE_VERSION:=3.7.2}; +: ${PKG_NETTLE_URL:=https://ftp.gnu.org/gnu/nettle/nettle-${PKG_NETTLE_VERSION}.tar.gz}; +: ${PKG_NETTLE_CONFIGURE_ARGS_EXTRA:=--disable-fat}; +: ${PKG_NETTLE_CFLAGS_CONFIGURE_EXTRA:=-std=gnu99}; +: ${PKG_NETTLE_MAKEFLAGS_BUILD:=-j1}; : ${PKG_SDL1_DEPENDS:="w32api w32lib"}; : ${PKG_SDL1_SHA256SUM:=d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00}; : ${PKG_SDL1_VERSION:=1.2.15}; diff --git a/patches/libnettle-3.6.local.patch b/patches/libnettle-3.6.local.patch deleted file mode 100644 index b527661..0000000 --- a/patches/libnettle-3.6.local.patch +++ /dev/null @@ -1,401 +0,0 @@ -diff -ru nettle-3.6.orig/x86_64/aes-decrypt-internal.asm nettle-3.6/x86_64/aes-decrypt-internal.asm ---- nettle-3.6.orig/x86_64/aes-decrypt-internal.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/aes-decrypt-internal.asm 2020-09-07 13:38:12.793134936 +0200 -@@ -150,3 +150,11 @@ - W64_EXIT(6, 0) - ret - EPILOGUE(_nettle_aes_decrypt) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_aes_decrypt,"r" -+ .global __imp__nettle_aes_decrypt -+__imp__nettle_aes_decrypt: -+ .quad _nettle_aes_decrypt -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/aes-encrypt-internal.asm nettle-3.6/x86_64/aes-encrypt-internal.asm ---- nettle-3.6.orig/x86_64/aes-encrypt-internal.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/aes-encrypt-internal.asm 2020-09-07 13:39:17.917132897 +0200 -@@ -151,3 +151,11 @@ - W64_EXIT(6, 0) - ret - EPILOGUE(_nettle_aes_encrypt) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_aes_encrypt,"r" -+ .global __imp__nettle_aes_encrypt -+__imp__nettle_aes_encrypt: -+ .quad _nettle_aes_encrypt -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/camellia-crypt-internal.asm nettle-3.6/x86_64/camellia-crypt-internal.asm ---- nettle-3.6.orig/x86_64/camellia-crypt-internal.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/camellia-crypt-internal.asm 2020-09-07 13:40:27.389130722 +0200 -@@ -200,3 +200,11 @@ - W64_EXIT(6, 0) - ret - EPILOGUE(_nettle_camellia_crypt) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_camellia_crypt,"r" -+ .global __imp__nettle_camellia_crypt -+__imp__nettle_camellia_crypt: -+ .quad _nettle_camellia_crypt -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/chacha-core-internal.asm nettle-3.6/x86_64/chacha-core-internal.asm ---- nettle-3.6.orig/x86_64/chacha-core-internal.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/chacha-core-internal.asm 2020-09-07 13:41:25.405128905 +0200 -@@ -126,3 +126,11 @@ - W64_EXIT(3, 6) - ret - EPILOGUE(_nettle_chacha_core) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_chacha_core,"r" -+ .global __imp__nettle_chacha_core -+__imp__nettle_chacha_core: -+ .quad _nettle_chacha_core -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/ecc-curve25519-modp.asm nettle-3.6/x86_64/ecc-curve25519-modp.asm ---- nettle-3.6.orig/x86_64/ecc-curve25519-modp.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/ecc-curve25519-modp.asm 2020-09-07 14:01:46.533804910 +0200 -@@ -92,3 +92,11 @@ - W64_EXIT(2, 0) - ret - EPILOGUE(_nettle_ecc_curve25519_modp) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_ecc_curve25519_modp,"r" -+ .global __imp__nettle_ecc_curve25519_modp -+__imp__nettle_ecc_curve25519_modp: -+ .quad _nettle_ecc_curve25519_modp -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/ecc-curve448-modp.asm nettle-3.6/x86_64/ecc-curve448-modp.asm ---- nettle-3.6.orig/x86_64/ecc-curve448-modp.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/ecc-curve448-modp.asm 2020-09-07 14:02:55.749802742 +0200 -@@ -142,3 +142,11 @@ - W64_EXIT(2, 0) - ret - EPILOGUE(_nettle_ecc_curve448_modp) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_ecc_curve448_modp,"r" -+ .global __imp__nettle_ecc_curve448_modp -+__imp__nettle_ecc_curve448_modp: -+ .quad _nettle_ecc_curve448_modp -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/ecc-secp192r1-modp.asm nettle-3.6/x86_64/ecc-secp192r1-modp.asm ---- nettle-3.6.orig/x86_64/ecc-secp192r1-modp.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/ecc-secp192r1-modp.asm 2020-09-07 14:04:12.289800346 +0200 -@@ -86,3 +86,11 @@ - W64_EXIT(2, 0) - ret - EPILOGUE(_nettle_ecc_secp192r1_modp) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_ecc_secp192r1_modp,"r" -+ .global __imp__nettle_ecc_secp192r1_modp -+__imp__nettle_ecc_secp192r1_modp: -+ .quad _nettle_ecc_secp192r1_modp -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/ecc-secp224r1-modp.asm nettle-3.6/x86_64/ecc-secp224r1-modp.asm ---- nettle-3.6.orig/x86_64/ecc-secp224r1-modp.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/ecc-secp224r1-modp.asm 2020-09-07 14:05:23.821798106 +0200 -@@ -129,3 +129,11 @@ - W64_EXIT(2, 0) - ret - EPILOGUE(_nettle_ecc_secp224r1_modp) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_ecc_secp224r1_modp,"r" -+ .global __imp__nettle_ecc_secp224r1_modp -+__imp__nettle_ecc_secp224r1_modp: -+ .quad _nettle_ecc_secp224r1_modp -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/ecc-secp256r1-redc.asm nettle-3.6/x86_64/ecc-secp256r1-redc.asm ---- nettle-3.6.orig/x86_64/ecc-secp256r1-redc.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/ecc-secp256r1-redc.asm 2020-09-07 14:06:51.854540772 +0200 -@@ -127,3 +127,11 @@ - W64_EXIT(2, 0) - ret - EPILOGUE(_nettle_ecc_secp256r1_redc) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_ecc_secp256r1_redc,"r" -+ .global __imp__nettle_ecc_secp256r1_redc -+__imp__nettle_ecc_secp256r1_redc: -+ .quad _nettle_ecc_secp256r1_redc -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/ecc-secp384r1-modp.asm nettle-3.6/x86_64/ecc-secp384r1-modp.asm ---- nettle-3.6.orig/x86_64/ecc-secp384r1-modp.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/ecc-secp384r1-modp.asm 2020-09-07 14:08:10.706538303 +0200 -@@ -232,3 +232,11 @@ - W64_EXIT(2, 0) - ret - EPILOGUE(_nettle_ecc_secp384r1_modp) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_ecc_secp384r1_modp,"r" -+ .global __imp__nettle_ecc_secp384r1_modp -+__imp__nettle_ecc_secp384r1_modp: -+ .quad _nettle_ecc_secp384r1_modp -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/ecc-secp521r1-modp.asm nettle-3.6/x86_64/ecc-secp521r1-modp.asm ---- nettle-3.6.orig/x86_64/ecc-secp521r1-modp.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/ecc-secp521r1-modp.asm 2020-09-07 14:09:27.370535902 +0200 -@@ -156,3 +156,11 @@ - W64_EXIT(2, 0) - ret - EPILOGUE(_nettle_ecc_secp521r1_modp) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_ecc_secp521r1_modp,"r" -+ .global __imp__nettle_ecc_secp521r1_modp -+__imp__nettle_ecc_secp521r1_modp: -+ .quad _nettle_ecc_secp521r1_modp -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/gcm-hash8.asm nettle-3.6/x86_64/gcm-hash8.asm ---- nettle-3.6.orig/x86_64/gcm-hash8.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/gcm-hash8.asm 2020-09-07 13:42:31.107641232 +0200 -@@ -238,3 +238,11 @@ - .value W(a7,d0),W(a6,12),W(a4,54),W(a5,96),W(a0,d8),W(a1,1a),W(a3,5c),W(a2,9e) - .value W(b5,e0),W(b4,22),W(b6,64),W(b7,a6),W(b2,e8),W(b3,2a),W(b1,6c),W(b0,ae) - .value W(bb,f0),W(ba,32),W(b8,74),W(b9,b6),W(bc,f8),W(bd,3a),W(bf,7c),W(be,be) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_gcm_hash8,"r" -+ .global __imp__nettle_gcm_hash8 -+__imp__nettle_gcm_hash8: -+ .quad _nettle_gcm_hash8 -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/md5-compress.asm nettle-3.6/x86_64/md5-compress.asm ---- nettle-3.6.orig/x86_64/md5-compress.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/md5-compress.asm 2020-09-07 13:44:12.135638069 +0200 -@@ -174,3 +174,11 @@ - - ret - EPILOGUE(nettle_md5_compress) -+ -+#ifdef __midipix__ -+ .section .got$nettle_md5_compress,"r" -+ .global __imp_nettle_md5_compress -+__imp_nettle_md5_compress: -+ .quad nettle_md5_compress -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/memxor3.asm nettle-3.6/x86_64/memxor3.asm ---- nettle-3.6.orig/x86_64/memxor3.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/memxor3.asm 2020-09-07 13:45:42.443635242 +0200 -@@ -261,3 +261,11 @@ - - - EPILOGUE(nettle_memxor3) -+ -+#ifdef __midipix__ -+ .section .got$nettle_memxor3,"r" -+ .global __imp_nettle_memxor3 -+__imp_nettle_memxor3: -+ .quad nettle_memxor3 -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/memxor.asm nettle-3.6/x86_64/memxor.asm ---- nettle-3.6.orig/x86_64/memxor.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/memxor.asm 2020-09-07 13:46:40.999633408 +0200 -@@ -171,3 +171,11 @@ - >) - - EPILOGUE(nettle_memxor) -+ -+#ifdef __midipix__ -+ .section .got$nettle_memxor,"r" -+ .global __imp_nettle_memxor -+__imp_nettle_memxor: -+ .quad nettle_memxor -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/poly1305-internal.asm nettle-3.6/x86_64/poly1305-internal.asm ---- nettle-3.6.orig/x86_64/poly1305-internal.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/poly1305-internal.asm 2020-09-07 13:51:14.239748557 +0200 -@@ -184,3 +184,22 @@ - ret - EPILOGUE(_nettle_poly1305_digest) - -+#ifdef __midipix__ -+ .section .got$_nettle_poly1305_set_key,"r" -+ .global __imp__nettle_poly1305_set_key -+__imp__nettle_poly1305_set_key: -+ .quad _nettle_poly1305_set_key -+ .linkonce discard -+ -+ .section .got$_nettle_poly1305_block,"r" -+ .global __imp__nettle_poly1305_block -+__imp__nettle_poly1305_block: -+ .quad _nettle_poly1305_block -+ .linkonce discard -+ -+ .section .got$_nettle_poly1305_digest,"r" -+ .global __imp__nettle_poly1305_digest -+__imp__nettle_poly1305_digest: -+ .quad _nettle_poly1305_digest -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/salsa20-core-internal.asm nettle-3.6/x86_64/salsa20-core-internal.asm ---- nettle-3.6.orig/x86_64/salsa20-core-internal.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/salsa20-core-internal.asm 2020-09-07 13:53:21.847744562 +0200 -@@ -109,3 +109,11 @@ - W64_EXIT(3, 9) - ret - EPILOGUE(_nettle_salsa20_core) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_salsa20_core,"r" -+ .global __imp__nettle_salsa20_core -+__imp__nettle_salsa20_core: -+ .quad _nettle_salsa20_core -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/salsa20-crypt.asm nettle-3.6/x86_64/salsa20-crypt.asm ---- nettle-3.6.orig/x86_64/salsa20-crypt.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/salsa20-crypt.asm 2020-09-07 13:54:39.815792126 +0200 -@@ -245,3 +245,11 @@ - ret - - EPILOGUE(nettle_salsa20_crypt) -+ -+#ifdef __midipix__ -+ .section .got$nettle_salsa20_crypt,"r" -+ .global __imp_nettle_salsa20_crypt -+__imp_nettle_salsa20_crypt: -+ .quad nettle_salsa20_crypt -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/serpent-decrypt.asm nettle-3.6/x86_64/serpent-decrypt.asm ---- nettle-3.6.orig/x86_64/serpent-decrypt.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/serpent-decrypt.asm 2020-09-07 13:55:28.667790597 +0200 -@@ -714,3 +714,11 @@ - W64_EXIT(4, 13) - ret - EPILOGUE(nettle_serpent_decrypt) -+ -+#ifdef __midipix__ -+ .section .got$nettle_serpent_decrypt,"r" -+ .global __imp_nettle_serpent_decrypt -+__imp_nettle_serpent_decrypt: -+ .quad nettle_serpent_decrypt -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/serpent-encrypt.asm nettle-3.6/x86_64/serpent-encrypt.asm ---- nettle-3.6.orig/x86_64/serpent-encrypt.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/serpent-encrypt.asm 2020-09-07 13:56:00.179789610 +0200 -@@ -749,3 +749,11 @@ - W64_EXIT(4, 13) - ret - EPILOGUE(nettle_serpent_encrypt) -+ -+#ifdef __midipix__ -+ .section .got$nettle_serpent_encrypt,"r" -+ .global __imp_nettle_serpent_encrypt -+__imp_nettle_serpent_encrypt: -+ .quad nettle_serpent_encrypt -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/sha1-compress.asm nettle-3.6/x86_64/sha1-compress.asm ---- nettle-3.6.orig/x86_64/sha1-compress.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/sha1-compress.asm 2020-09-07 13:56:37.603788439 +0200 -@@ -305,3 +305,11 @@ - W64_EXIT(2, 0) - ret - EPILOGUE(nettle_sha1_compress) -+ -+#ifdef __midipix__ -+ .section .got$nettle_sha1_compress,"r" -+ .global __imp_nettle_sha1_compress -+__imp_nettle_sha1_compress: -+ .quad nettle_sha1_compress -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/sha256-compress.asm nettle-3.6/x86_64/sha256-compress.asm ---- nettle-3.6.orig/x86_64/sha256-compress.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/sha256-compress.asm 2020-09-07 13:56:57.671787810 +0200 -@@ -208,3 +208,11 @@ - W64_EXIT(3, 0) - ret - EPILOGUE(_nettle_sha256_compress) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_sha256_compress,"r" -+ .global __imp__nettle_sha256_compress -+__imp__nettle_sha256_compress: -+ .quad _nettle_sha256_compress -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/sha3-permute.asm nettle-3.6/x86_64/sha3-permute.asm ---- nettle-3.6.orig/x86_64/sha3-permute.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/sha3-permute.asm 2020-09-07 13:57:35.427786628 +0200 -@@ -522,3 +522,11 @@ - .quad 0x800000000000808A - .quad 0x0000000000008082 - .quad 0x0000000000000001 -+ -+#ifdef __midipix__ -+ .section .got$nettle_sha3_permute,"r" -+ .global __imp_nettle_sha3_permute -+__imp_nettle_sha3_permute: -+ .quad nettle_sha3_permute -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/sha512-compress.asm nettle-3.6/x86_64/sha512-compress.asm ---- nettle-3.6.orig/x86_64/sha512-compress.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/sha512-compress.asm 2020-09-07 13:58:36.391784719 +0200 -@@ -208,3 +208,11 @@ - W64_EXIT(3, 0) - ret - EPILOGUE(_nettle_sha512_compress) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_sha512_compress,"r" -+ .global __imp__nettle_sha512_compress -+__imp__nettle_sha512_compress: -+ .quad _nettle_sha512_compress -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/umac-nh.asm nettle-3.6/x86_64/umac-nh.asm ---- nettle-3.6.orig/x86_64/umac-nh.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/umac-nh.asm 2020-09-07 13:58:59.259784003 +0200 -@@ -79,3 +79,11 @@ - W64_EXIT(3, 7) - ret - EPILOGUE(_nettle_umac_nh) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_umac_nh,"r" -+ .global __imp__nettle_umac_nh -+__imp__nettle_umac_nh: -+ .quad _nettle_umac_nh -+ .linkonce discard -+#endif -diff -ru nettle-3.6.orig/x86_64/umac-nh-n.asm nettle-3.6/x86_64/umac-nh-n.asm ---- nettle-3.6.orig/x86_64/umac-nh-n.asm 2020-04-29 20:11:44.000000000 +0200 -+++ nettle-3.6/x86_64/umac-nh-n.asm 2020-09-07 13:59:24.655783208 +0200 -@@ -273,3 +273,11 @@ - W64_EXIT(5, 14) - ret - EPILOGUE(_nettle_umac_nh_n) -+ -+#ifdef __midipix__ -+ .section .got$_nettle_umac_nh_n,"r" -+ .global __imp__nettle_umac_nh_n -+__imp__nettle_umac_nh_n: -+ .quad _nettle_umac_nh_n -+ .linkonce discard -+#endif diff --git a/patches/libnettle/nettle-conf-fix.patch b/patches/libnettle/nettle-conf-fix.patch deleted file mode 100644 index 1e03166..0000000 --- a/patches/libnettle/nettle-conf-fix.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -ru nettle-3.4.1.orig/configure nettle-3.4.1/configure ---- nettle-3.4.1.orig/configure 2018-12-04 21:56:06.000000000 +0100 -+++ nettle-3.4.1/configure 2019-01-31 11:41:23.385784666 +0100 -@@ -7188,6 +7188,22 @@ - LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a' - IF_DLL='' - ;; -+ midipix*) -+ if test "x$ABI" = x64 ; then -+ W64_ABI=yes -+ fi -+ LIBNETTLE_FORLINK=libnettle.so -+ LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)' -+ LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)' -+ LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-dsolib=libnettle.lib.a -Wl,-soname=$(LIBNETTLE_SONAME)' -+ LIBNETTLE_LIBS='' -+ -+ LIBHOGWEED_FORLINK=libhogweed.so -+ LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)' -+ LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)' -+ LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-dsolib=libhogweed.lib.a -Wl,-soname=$(LIBHOGWEED_SONAME)' -+ LIBHOGWEED_LIBS='$(LIBS) libnettle.lib.a' -+ ;; - darwin*) - LIBNETTLE_FORLINK=libnettle.dylib - LIBNETTLE_SONAME='libnettle.$(LIBNETTLE_MAJOR).dylib' diff --git a/patches/nettle-3.7.2.local.patch b/patches/nettle-3.7.2.local.patch new file mode 100644 index 0000000..8759683 --- /dev/null +++ b/patches/nettle-3.7.2.local.patch @@ -0,0 +1,401 @@ +diff -ru nettle-3.7.2.orig/x86_64/salsa20-2core.asm nettle-3.7.2/x86_64/salsa20-2core.asm +--- nettle-3.7.2.orig/x86_64/salsa20-2core.asm 2021-03-21 09:32:25.000000000 +0100 ++++ nettle-3.7.2/x86_64/salsa20-2core.asm 2021-04-10 14:56:55.970009499 +0200 +@@ -316,3 +316,11 @@ + W64_EXIT(3, 13) + ret + EPILOGUE(_nettle_salsa20_2core) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_salsa20_2core,"r" ++ .global __imp__nettle_salsa20_2core ++__imp__nettle_salsa20_2core: ++ .quad _nettle_salsa20_2core ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/aes-decrypt-internal.asm nettle-3.6/x86_64/aes-decrypt-internal.asm +--- nettle-3.6.orig/x86_64/aes-decrypt-internal.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/aes-decrypt-internal.asm 2020-09-07 13:38:12.793134936 +0200 +@@ -150,3 +150,11 @@ + W64_EXIT(6, 0) + ret + EPILOGUE(_nettle_aes_decrypt) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_aes_decrypt,"r" ++ .global __imp__nettle_aes_decrypt ++__imp__nettle_aes_decrypt: ++ .quad _nettle_aes_decrypt ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/aes-encrypt-internal.asm nettle-3.6/x86_64/aes-encrypt-internal.asm +--- nettle-3.6.orig/x86_64/aes-encrypt-internal.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/aes-encrypt-internal.asm 2020-09-07 13:39:17.917132897 +0200 +@@ -151,3 +151,11 @@ + W64_EXIT(6, 0) + ret + EPILOGUE(_nettle_aes_encrypt) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_aes_encrypt,"r" ++ .global __imp__nettle_aes_encrypt ++__imp__nettle_aes_encrypt: ++ .quad _nettle_aes_encrypt ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/camellia-crypt-internal.asm nettle-3.6/x86_64/camellia-crypt-internal.asm +--- nettle-3.6.orig/x86_64/camellia-crypt-internal.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/camellia-crypt-internal.asm 2020-09-07 13:40:27.389130722 +0200 +@@ -200,3 +200,11 @@ + W64_EXIT(6, 0) + ret + EPILOGUE(_nettle_camellia_crypt) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_camellia_crypt,"r" ++ .global __imp__nettle_camellia_crypt ++__imp__nettle_camellia_crypt: ++ .quad _nettle_camellia_crypt ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/chacha-core-internal.asm nettle-3.6/x86_64/chacha-core-internal.asm +--- nettle-3.6.orig/x86_64/chacha-core-internal.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/chacha-core-internal.asm 2020-09-07 13:41:25.405128905 +0200 +@@ -126,3 +126,11 @@ + W64_EXIT(3, 6) + ret + EPILOGUE(_nettle_chacha_core) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_chacha_core,"r" ++ .global __imp__nettle_chacha_core ++__imp__nettle_chacha_core: ++ .quad _nettle_chacha_core ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/ecc-curve25519-modp.asm nettle-3.6/x86_64/ecc-curve25519-modp.asm +--- nettle-3.6.orig/x86_64/ecc-curve25519-modp.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/ecc-curve25519-modp.asm 2020-09-07 14:01:46.533804910 +0200 +@@ -92,3 +92,11 @@ + W64_EXIT(2, 0) + ret + EPILOGUE(_nettle_ecc_curve25519_modp) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_ecc_curve25519_modp,"r" ++ .global __imp__nettle_ecc_curve25519_modp ++__imp__nettle_ecc_curve25519_modp: ++ .quad _nettle_ecc_curve25519_modp ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/ecc-curve448-modp.asm nettle-3.6/x86_64/ecc-curve448-modp.asm +--- nettle-3.6.orig/x86_64/ecc-curve448-modp.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/ecc-curve448-modp.asm 2020-09-07 14:02:55.749802742 +0200 +@@ -142,3 +142,11 @@ + W64_EXIT(2, 0) + ret + EPILOGUE(_nettle_ecc_curve448_modp) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_ecc_curve448_modp,"r" ++ .global __imp__nettle_ecc_curve448_modp ++__imp__nettle_ecc_curve448_modp: ++ .quad _nettle_ecc_curve448_modp ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/ecc-secp192r1-modp.asm nettle-3.6/x86_64/ecc-secp192r1-modp.asm +--- nettle-3.6.orig/x86_64/ecc-secp192r1-modp.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/ecc-secp192r1-modp.asm 2020-09-07 14:04:12.289800346 +0200 +@@ -86,3 +86,11 @@ + W64_EXIT(2, 0) + ret + EPILOGUE(_nettle_ecc_secp192r1_modp) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_ecc_secp192r1_modp,"r" ++ .global __imp__nettle_ecc_secp192r1_modp ++__imp__nettle_ecc_secp192r1_modp: ++ .quad _nettle_ecc_secp192r1_modp ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/ecc-secp224r1-modp.asm nettle-3.6/x86_64/ecc-secp224r1-modp.asm +--- nettle-3.6.orig/x86_64/ecc-secp224r1-modp.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/ecc-secp224r1-modp.asm 2020-09-07 14:05:23.821798106 +0200 +@@ -129,3 +129,11 @@ + W64_EXIT(2, 0) + ret + EPILOGUE(_nettle_ecc_secp224r1_modp) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_ecc_secp224r1_modp,"r" ++ .global __imp__nettle_ecc_secp224r1_modp ++__imp__nettle_ecc_secp224r1_modp: ++ .quad _nettle_ecc_secp224r1_modp ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/ecc-secp256r1-redc.asm nettle-3.6/x86_64/ecc-secp256r1-redc.asm +--- nettle-3.6.orig/x86_64/ecc-secp256r1-redc.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/ecc-secp256r1-redc.asm 2020-09-07 14:06:51.854540772 +0200 +@@ -127,3 +127,11 @@ + W64_EXIT(2, 0) + ret + EPILOGUE(_nettle_ecc_secp256r1_redc) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_ecc_secp256r1_redc,"r" ++ .global __imp__nettle_ecc_secp256r1_redc ++__imp__nettle_ecc_secp256r1_redc: ++ .quad _nettle_ecc_secp256r1_redc ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/ecc-secp384r1-modp.asm nettle-3.6/x86_64/ecc-secp384r1-modp.asm +--- nettle-3.6.orig/x86_64/ecc-secp384r1-modp.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/ecc-secp384r1-modp.asm 2020-09-07 14:08:10.706538303 +0200 +@@ -232,3 +232,11 @@ + W64_EXIT(2, 0) + ret + EPILOGUE(_nettle_ecc_secp384r1_modp) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_ecc_secp384r1_modp,"r" ++ .global __imp__nettle_ecc_secp384r1_modp ++__imp__nettle_ecc_secp384r1_modp: ++ .quad _nettle_ecc_secp384r1_modp ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/ecc-secp521r1-modp.asm nettle-3.6/x86_64/ecc-secp521r1-modp.asm +--- nettle-3.6.orig/x86_64/ecc-secp521r1-modp.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/ecc-secp521r1-modp.asm 2020-09-07 14:09:27.370535902 +0200 +@@ -156,3 +156,11 @@ + W64_EXIT(2, 0) + ret + EPILOGUE(_nettle_ecc_secp521r1_modp) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_ecc_secp521r1_modp,"r" ++ .global __imp__nettle_ecc_secp521r1_modp ++__imp__nettle_ecc_secp521r1_modp: ++ .quad _nettle_ecc_secp521r1_modp ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/gcm-hash8.asm nettle-3.6/x86_64/gcm-hash8.asm +--- nettle-3.6.orig/x86_64/gcm-hash8.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/gcm-hash8.asm 2020-09-07 13:42:31.107641232 +0200 +@@ -238,3 +238,11 @@ + .value W(a7,d0),W(a6,12),W(a4,54),W(a5,96),W(a0,d8),W(a1,1a),W(a3,5c),W(a2,9e) + .value W(b5,e0),W(b4,22),W(b6,64),W(b7,a6),W(b2,e8),W(b3,2a),W(b1,6c),W(b0,ae) + .value W(bb,f0),W(ba,32),W(b8,74),W(b9,b6),W(bc,f8),W(bd,3a),W(bf,7c),W(be,be) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_gcm_hash8,"r" ++ .global __imp__nettle_gcm_hash8 ++__imp__nettle_gcm_hash8: ++ .quad _nettle_gcm_hash8 ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/md5-compress.asm nettle-3.6/x86_64/md5-compress.asm +--- nettle-3.6.orig/x86_64/md5-compress.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/md5-compress.asm 2020-09-07 13:44:12.135638069 +0200 +@@ -174,3 +174,11 @@ + + ret + EPILOGUE(nettle_md5_compress) ++ ++#ifdef __midipix__ ++ .section .got$nettle_md5_compress,"r" ++ .global __imp_nettle_md5_compress ++__imp_nettle_md5_compress: ++ .quad nettle_md5_compress ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/memxor3.asm nettle-3.6/x86_64/memxor3.asm +--- nettle-3.6.orig/x86_64/memxor3.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/memxor3.asm 2020-09-07 13:45:42.443635242 +0200 +@@ -261,3 +261,11 @@ + + + EPILOGUE(nettle_memxor3) ++ ++#ifdef __midipix__ ++ .section .got$nettle_memxor3,"r" ++ .global __imp_nettle_memxor3 ++__imp_nettle_memxor3: ++ .quad nettle_memxor3 ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/memxor.asm nettle-3.6/x86_64/memxor.asm +--- nettle-3.6.orig/x86_64/memxor.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/memxor.asm 2020-09-07 13:46:40.999633408 +0200 +@@ -171,3 +171,11 @@ + >) + + EPILOGUE(nettle_memxor) ++ ++#ifdef __midipix__ ++ .section .got$nettle_memxor,"r" ++ .global __imp_nettle_memxor ++__imp_nettle_memxor: ++ .quad nettle_memxor ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/poly1305-internal.asm nettle-3.6/x86_64/poly1305-internal.asm +--- nettle-3.6.orig/x86_64/poly1305-internal.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/poly1305-internal.asm 2020-09-07 13:51:14.239748557 +0200 +@@ -184,3 +184,22 @@ + ret + EPILOGUE(_nettle_poly1305_digest) + ++#ifdef __midipix__ ++ .section .got$_nettle_poly1305_set_key,"r" ++ .global __imp__nettle_poly1305_set_key ++__imp__nettle_poly1305_set_key: ++ .quad _nettle_poly1305_set_key ++ .linkonce discard ++ ++ .section .got$_nettle_poly1305_block,"r" ++ .global __imp__nettle_poly1305_block ++__imp__nettle_poly1305_block: ++ .quad _nettle_poly1305_block ++ .linkonce discard ++ ++ .section .got$_nettle_poly1305_digest,"r" ++ .global __imp__nettle_poly1305_digest ++__imp__nettle_poly1305_digest: ++ .quad _nettle_poly1305_digest ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/salsa20-core-internal.asm nettle-3.6/x86_64/salsa20-core-internal.asm +--- nettle-3.6.orig/x86_64/salsa20-core-internal.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/salsa20-core-internal.asm 2020-09-07 13:53:21.847744562 +0200 +@@ -109,3 +109,11 @@ + W64_EXIT(3, 9) + ret + EPILOGUE(_nettle_salsa20_core) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_salsa20_core,"r" ++ .global __imp__nettle_salsa20_core ++__imp__nettle_salsa20_core: ++ .quad _nettle_salsa20_core ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/serpent-decrypt.asm nettle-3.6/x86_64/serpent-decrypt.asm +--- nettle-3.6.orig/x86_64/serpent-decrypt.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/serpent-decrypt.asm 2020-09-07 13:55:28.667790597 +0200 +@@ -714,3 +714,11 @@ + W64_EXIT(4, 13) + ret + EPILOGUE(nettle_serpent_decrypt) ++ ++#ifdef __midipix__ ++ .section .got$nettle_serpent_decrypt,"r" ++ .global __imp_nettle_serpent_decrypt ++__imp_nettle_serpent_decrypt: ++ .quad nettle_serpent_decrypt ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/serpent-encrypt.asm nettle-3.6/x86_64/serpent-encrypt.asm +--- nettle-3.6.orig/x86_64/serpent-encrypt.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/serpent-encrypt.asm 2020-09-07 13:56:00.179789610 +0200 +@@ -749,3 +749,11 @@ + W64_EXIT(4, 13) + ret + EPILOGUE(nettle_serpent_encrypt) ++ ++#ifdef __midipix__ ++ .section .got$nettle_serpent_encrypt,"r" ++ .global __imp_nettle_serpent_encrypt ++__imp_nettle_serpent_encrypt: ++ .quad nettle_serpent_encrypt ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/sha1-compress.asm nettle-3.6/x86_64/sha1-compress.asm +--- nettle-3.6.orig/x86_64/sha1-compress.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/sha1-compress.asm 2020-09-07 13:56:37.603788439 +0200 +@@ -305,3 +305,11 @@ + W64_EXIT(2, 0) + ret + EPILOGUE(nettle_sha1_compress) ++ ++#ifdef __midipix__ ++ .section .got$nettle_sha1_compress,"r" ++ .global __imp_nettle_sha1_compress ++__imp_nettle_sha1_compress: ++ .quad nettle_sha1_compress ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/sha256-compress.asm nettle-3.6/x86_64/sha256-compress.asm +--- nettle-3.6.orig/x86_64/sha256-compress.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/sha256-compress.asm 2020-09-07 13:56:57.671787810 +0200 +@@ -208,3 +208,11 @@ + W64_EXIT(3, 0) + ret + EPILOGUE(_nettle_sha256_compress) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_sha256_compress,"r" ++ .global __imp__nettle_sha256_compress ++__imp__nettle_sha256_compress: ++ .quad _nettle_sha256_compress ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/sha3-permute.asm nettle-3.6/x86_64/sha3-permute.asm +--- nettle-3.6.orig/x86_64/sha3-permute.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/sha3-permute.asm 2020-09-07 13:57:35.427786628 +0200 +@@ -522,3 +522,11 @@ + .quad 0x800000000000808A + .quad 0x0000000000008082 + .quad 0x0000000000000001 ++ ++#ifdef __midipix__ ++ .section .got$nettle_sha3_permute,"r" ++ .global __imp_nettle_sha3_permute ++__imp_nettle_sha3_permute: ++ .quad nettle_sha3_permute ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/sha512-compress.asm nettle-3.6/x86_64/sha512-compress.asm +--- nettle-3.6.orig/x86_64/sha512-compress.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/sha512-compress.asm 2020-09-07 13:58:36.391784719 +0200 +@@ -208,3 +208,11 @@ + W64_EXIT(3, 0) + ret + EPILOGUE(_nettle_sha512_compress) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_sha512_compress,"r" ++ .global __imp__nettle_sha512_compress ++__imp__nettle_sha512_compress: ++ .quad _nettle_sha512_compress ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/umac-nh.asm nettle-3.6/x86_64/umac-nh.asm +--- nettle-3.6.orig/x86_64/umac-nh.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/umac-nh.asm 2020-09-07 13:58:59.259784003 +0200 +@@ -79,3 +79,11 @@ + W64_EXIT(3, 7) + ret + EPILOGUE(_nettle_umac_nh) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_umac_nh,"r" ++ .global __imp__nettle_umac_nh ++__imp__nettle_umac_nh: ++ .quad _nettle_umac_nh ++ .linkonce discard ++#endif +diff -ru nettle-3.6.orig/x86_64/umac-nh-n.asm nettle-3.6/x86_64/umac-nh-n.asm +--- nettle-3.6.orig/x86_64/umac-nh-n.asm 2020-04-29 20:11:44.000000000 +0200 ++++ nettle-3.6/x86_64/umac-nh-n.asm 2020-09-07 13:59:24.655783208 +0200 +@@ -273,3 +273,11 @@ + W64_EXIT(5, 14) + ret + EPILOGUE(_nettle_umac_nh_n) ++ ++#ifdef __midipix__ ++ .section .got$_nettle_umac_nh_n,"r" ++ .global __imp__nettle_umac_nh_n ++__imp__nettle_umac_nh_n: ++ .quad _nettle_umac_nh_n ++ .linkonce discard ++#endif diff --git a/patches/nettle/midipix-configure-support.patch b/patches/nettle/midipix-configure-support.patch new file mode 100644 index 0000000..1e03166 --- /dev/null +++ b/patches/nettle/midipix-configure-support.patch @@ -0,0 +1,26 @@ +diff -ru nettle-3.4.1.orig/configure nettle-3.4.1/configure +--- nettle-3.4.1.orig/configure 2018-12-04 21:56:06.000000000 +0100 ++++ nettle-3.4.1/configure 2019-01-31 11:41:23.385784666 +0100 +@@ -7188,6 +7188,22 @@ + LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a' + IF_DLL='' + ;; ++ midipix*) ++ if test "x$ABI" = x64 ; then ++ W64_ABI=yes ++ fi ++ LIBNETTLE_FORLINK=libnettle.so ++ LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)' ++ LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)' ++ LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-dsolib=libnettle.lib.a -Wl,-soname=$(LIBNETTLE_SONAME)' ++ LIBNETTLE_LIBS='' ++ ++ LIBHOGWEED_FORLINK=libhogweed.so ++ LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)' ++ LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)' ++ LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-dsolib=libhogweed.lib.a -Wl,-soname=$(LIBHOGWEED_SONAME)' ++ LIBHOGWEED_LIBS='$(LIBS) libnettle.lib.a' ++ ;; + darwin*) + LIBNETTLE_FORLINK=libnettle.dylib + LIBNETTLE_SONAME='libnettle.$(LIBNETTLE_MAJOR).dylib' diff --git a/vars/libnettle.vars b/vars/libnettle.vars deleted file mode 100644 index 86e8281..0000000 --- a/vars/libnettle.vars +++ /dev/null @@ -1,13 +0,0 @@ -# -# set +o errexit -o noglob -o nounset is assumed. -# - -pkg_libnettle_install_make_post() { - set +o noglob; - if ! rtl_fileop chmod +x "${PKG_DESTDIR}/lib/"lib*.so*; then - set -o noglob; return 1; - fi; - set -o noglob; -}; - -# vim:filetype=sh textwidth=0 diff --git a/vars/nettle.vars b/vars/nettle.vars new file mode 100644 index 0000000..faf43d6 --- /dev/null +++ b/vars/nettle.vars @@ -0,0 +1,16 @@ +# +# set +o errexit -o noglob -o nounset is assumed. +# + +: ${PKG_NETTLE_CONFIG_CACHE_EXTRA:=" +nettle_cv_asm_underscore=no"}; + +pkg_nettle_install_make_post() { + set +o noglob; + if ! rtl_fileop chmod +x "${PKG_DESTDIR}/lib/"lib*.so*; then + set -o noglob; return 1; + fi; + set -o noglob; +}; + +# vim:filetype=sh textwidth=0