public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: media-libs/libbpg/files/, media-libs/libbpg/
Date: Mon, 18 Sep 2023 12:37:15 +0000 (UTC)	[thread overview]
Message-ID: <1694990358.1c99f90388ef5e47055c6a3bf400b4a0c96065b1.flow@gentoo> (raw)

commit:     1c99f90388ef5e47055c6a3bf400b4a0c96065b1
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun Sep 17 21:09:44 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun Sep 17 22:39:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c99f903

media-libs/libbpg: add noexec .note.GNU-stack sections for elf32 and elf64

Closes: https://bugs.gentoo.org/787686
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 .../libbpg-0.9.8-backport-GNU-stack-note-fix.patch | 24 ++++++++++++++++++++++
 media-libs/libbpg/libbpg-0.9.8-r1.ebuild           |  1 +
 2 files changed, 25 insertions(+)

diff --git a/media-libs/libbpg/files/libbpg-0.9.8-backport-GNU-stack-note-fix.patch b/media-libs/libbpg/files/libbpg-0.9.8-backport-GNU-stack-note-fix.patch
new file mode 100644
index 0000000000..a09aada159
--- /dev/null
+++ b/media-libs/libbpg/files/libbpg-0.9.8-backport-GNU-stack-note-fix.patch
@@ -0,0 +1,24 @@
+Excerpt of a commit in media-libs/x265. If the GNU stack note is not added the
+GNU linker assumes the stack is executable by default.
+commit 3b49d65f07ce07c68c88fa2ddfbaab295a28ca0b
+Author: Vignesh Vijayakumar <vignesh@multicorewareinc.com>
+Date:   Thu Nov 2 09:40:41 2017 +0530
+
+    x86: Change assembler from YASM to NASM
+
+    Supports NASM versions 2.13 and greater
+--- a/x265/source/common/x86/x86inc.asm
++++ b/x265/source/common/x86/x86inc.asm
+@@ -724,6 +724,12 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae,
+ %ifidn __OUTPUT_FORMAT__,elf
+ SECTION .note.GNU-stack noalloc noexec nowrite progbits
+ %endif
++%ifidn __OUTPUT_FORMAT__,elf32
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
++%ifidn __OUTPUT_FORMAT__,elf64
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
+ 
+ ; cpuflags
+ 

diff --git a/media-libs/libbpg/libbpg-0.9.8-r1.ebuild b/media-libs/libbpg/libbpg-0.9.8-r1.ebuild
index f26e4d095b..bba7f2fb63 100644
--- a/media-libs/libbpg/libbpg-0.9.8-r1.ebuild
+++ b/media-libs/libbpg/libbpg-0.9.8-r1.ebuild
@@ -36,6 +36,7 @@ IUSE="bpgview jctvc"
 PATCHES=(
 	"${FILESDIR}"/${P}-add-chost.patch
 	"${FILESDIR}"/${P}-add-fpic.patch
+	"${FILESDIR}"/${P}-backport-GNU-stack-note-fix.patch
 	"${FILESDIR}"/${P}-dont-strip-bins.patch
 	"${FILESDIR}"/${P}-remove-forced-options.patch
 	"${FILESDIR}"/${P}-remove-unused-cmake-var.patch


             reply	other threads:[~2023-09-18 12:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-18 12:37 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-03 19:42 [gentoo-commits] repo/proj/guru:master commit in: media-libs/libbpg/files/, media-libs/libbpg/ Julien Roy
2023-09-18 12:37 Florian Schmaus
2023-09-18 12:37 Florian Schmaus
2021-03-16 10:49 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1694990358.1c99f90388ef5e47055c6a3bf400b4a0c96065b1.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox