summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatoro Mahri <matoro_gentoo@matoro.tk>2023-12-18 20:25:15 -0500
committerSam James <sam@gentoo.org>2023-12-19 05:22:17 +0000
commitdf5ac2edd5156386f46f4335bc6e5003e9e3eb42 (patch)
tree38c5785cb64c2cbf42e3c71cab17e164a969b1d9 /media-libs/kvazaar/files
parentsci-libs/pastix: destabilize 5.2.3 for ~ppc64 (diff)
downloadgentoo-df5ac2edd5156386f46f4335bc6e5003e9e3eb42.tar.gz
gentoo-df5ac2edd5156386f46f4335bc6e5003e9e3eb42.tar.bz2
gentoo-df5ac2edd5156386f46f4335bc6e5003e9e3eb42.zip
media-libs/kvazaar: add patch to fix tests on big-endian
Trivial fix and only affects BE so no revbump. See: https://github.com/ultravideo/kvazaar/pull/377 Bug: https://bugs.gentoo.org/902217 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Closes: https://github.com/gentoo/gentoo/pull/34364 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/kvazaar/files')
-rw-r--r--media-libs/kvazaar/files/kvazaar-2.2.0-backport-pr377.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/media-libs/kvazaar/files/kvazaar-2.2.0-backport-pr377.patch b/media-libs/kvazaar/files/kvazaar-2.2.0-backport-pr377.patch
new file mode 100644
index 000000000000..ef1711cf5cb2
--- /dev/null
+++ b/media-libs/kvazaar/files/kvazaar-2.2.0-backport-pr377.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/902217
+https://github.com/ultravideo/kvazaar/pull/377
+
+From e19b7925d910e4b77fc5a46d92de0f2563a7e506 Mon Sep 17 00:00:00 2001
+From: matoro <matoro@users.noreply.github.com>
+Date: Wed, 29 Nov 2023 10:58:08 -0500
+Subject: [PATCH] Don't export MD5 byteReverse symbol on big-endian
+
+Otherwise this fails the test which checks that all exported symbols
+begin with kvz_ prefix.
+---
+ src/extras/libmd5.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/extras/libmd5.c b/src/extras/libmd5.c
+index b06b291eb..8a437da68 100644
+--- a/src/extras/libmd5.c
++++ b/src/extras/libmd5.c
+@@ -27,11 +27,11 @@ static void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
+ #ifndef __BIG_ENDIAN__
+ # define byteReverse(buf, len) /* Nothing */
+ #else
+-void byteReverse(uint32_t *buf, unsigned len);
++static void byteReverse(uint32_t *buf, unsigned len);
+ /*
+ * Note: this code is harmless on little-endian machines.
+ */
+-void byteReverse(uint32_t *buf, unsigned len)
++static void byteReverse(uint32_t *buf, unsigned len)
+ {
+ uint32_t t;
+ do {