diff options
-rw-r--r-- | media-libs/libjpeg-turbo/files/libjpeg-turbo-2.1.1-arm64-relro.patch | 20 | ||||
-rw-r--r-- | media-libs/libjpeg-turbo/libjpeg-turbo-2.1.1-r2.ebuild (renamed from media-libs/libjpeg-turbo/libjpeg-turbo-2.1.1-r1.ebuild) | 5 |
2 files changed, 25 insertions, 0 deletions
diff --git a/media-libs/libjpeg-turbo/files/libjpeg-turbo-2.1.1-arm64-relro.patch b/media-libs/libjpeg-turbo/files/libjpeg-turbo-2.1.1-arm64-relro.patch new file mode 100644 index 000000000000..7784ae513d16 --- /dev/null +++ b/media-libs/libjpeg-turbo/files/libjpeg-turbo-2.1.1-arm64-relro.patch @@ -0,0 +1,20 @@ +https://github.com/libjpeg-turbo/libjpeg-turbo/commit/129f0cb76346ceede8f4d8d87dea8acb0809056c + +From: DRC <information@libjpeg-turbo.org> +Date: Wed, 25 Aug 2021 12:07:58 -0500 +Subject: [PATCH] Neon/AArch64: Don't put GAS functions in .rodata + +Regression introduced by 240ba417aa4b3174850d05ea0d22dbe5f80553c1 + +Closes #546 +--- a/simd/arm/aarch64/jsimd_neon.S ++++ b/simd/arm/aarch64/jsimd_neon.S +@@ -182,6 +182,8 @@ Ljsimd_huff_encode_one_block_neon_consts: + .byte 4, 5, 6, 7, 255, 255, 255, 255, \ + 255, 255, 255, 255, 255, 255, 255, 255 /* L7 : 1 line OK */ + ++.text ++ + + /*****************************************************************************/ + diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.1-r1.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.1-r2.ebuild index 9fa044960821..f8495413e2e0 100644 --- a/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.1-r1.ebuild +++ b/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.1-r2.ebuild @@ -41,6 +41,11 @@ RDEPEND="${COMMON_DEPEND} MULTILIB_WRAPPED_HEADERS=( /usr/include/jconfig.h ) +PATCHES=( + # Upstream patch + "${FILESDIR}"/${P}-arm64-relro.patch +) + src_prepare() { local FILE ln -snf ../debian/extra/*.c . || die |