summaryrefslogtreecommitdiff
path: root/user/mbedtls/APKBUILD
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2023-04-13 11:53:43 -0500
committerZach van Rijn <me@zv.io>2023-04-13 11:53:43 -0500
commitaf9f21646f500857ce88f94045a673247aae4417 (patch)
treedf33fc17b19665c7ed81d7b3d5391a48d16e764b /user/mbedtls/APKBUILD
parent1f4732be083815ae27e1694cc7f4784d35d08d6d (diff)
downloadpackages-af9f21646f500857ce88f94045a673247aae4417.tar.gz
packages-af9f21646f500857ce88f94045a673247aae4417.tar.bz2
packages-af9f21646f500857ce88f94045a673247aae4417.tar.xz
packages-af9f21646f500857ce88f94045a673247aae4417.zip
user/mbedtls: add patch for big-endian alignment test. fixes #1002.
Diffstat (limited to 'user/mbedtls/APKBUILD')
-rw-r--r--user/mbedtls/APKBUILD17
1 files changed, 5 insertions, 12 deletions
diff --git a/user/mbedtls/APKBUILD b/user/mbedtls/APKBUILD
index 2b2751e6f..362e112e9 100644
--- a/user/mbedtls/APKBUILD
+++ b/user/mbedtls/APKBUILD
@@ -11,7 +11,9 @@ depends=""
checkdepends="python3"
makedepends="cmake"
subpackages="$pkgname-dev"
-source="mbedtls-$pkgver.tar.gz::https://github.com/ARMmbed/mbedtls/archive/refs/tags/v$pkgver.tar.gz"
+source="mbedtls-$pkgver.tar.gz::https://github.com/ARMmbed/mbedtls/archive/refs/tags/v$pkgver.tar.gz
+ fix-big-endian-alignment-tests.patch
+ "
# secfixes:
# 3.3.0-r0:
@@ -20,16 +22,6 @@ source="mbedtls-$pkgver.tar.gz::https://github.com/ARMmbed/mbedtls/archive/refs/
# - CVE-2022-46392
# - CVE-2022-46393
-prepare() {
- default_prepare
-
- #1002 -- fails on BE platforms (ppc64, sparc64, ...)
- rm -v \
- tests/suites/test_suite_alignment.data \
- tests/suites/test_suite_alignment.function \
- ;
-}
-
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
@@ -59,4 +51,5 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="be24d2c926f94a7958c4340574e2c74a745120ccf20bcaeeda18b9c0e732fd1913f37c1f883b74ff772c24fbe8763c25c34e99a20a69e023c3d0d49aedd5f6b5 mbedtls-3.4.0.tar.gz"
+sha512sums="be24d2c926f94a7958c4340574e2c74a745120ccf20bcaeeda18b9c0e732fd1913f37c1f883b74ff772c24fbe8763c25c34e99a20a69e023c3d0d49aedd5f6b5 mbedtls-3.4.0.tar.gz
+40a4aefd39b63babf1f54bb2ab655278aaca1482da6e0b8943751a55c067307f8a591217b0c3b546a8ae02f7eca72c22da9d74378a5c28e00f8ca97dbcf1b7f8 fix-big-endian-alignment-tests.patch"