public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/
Date: Sat,  1 Jun 2024 01:28:15 +0000 (UTC)	[thread overview]
Message-ID: <1717205275.4ddd3cf09facddf495121af16b2f1151ed882568.sam@gentoo> (raw)

commit:     4ddd3cf09facddf495121af16b2f1151ed882568
Author:     Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Fri May 31 23:17:31 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun  1 01:27:55 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ddd3cf0

app-arch/zstd: enforce non-executable stack

Including on platforms which have it disabled by default, namely hppa.

Closes: https://bugs.gentoo.org/903923
Bug: https://bugs.gentoo.org/930880
Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Closes: https://github.com/gentoo/gentoo/pull/36936
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/zstd/zstd-1.5.6.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.6.ebuild b/app-arch/zstd/zstd-1.5.6.ebuild
index 1bf79388c9dc..db0ca37c4e39 100644
--- a/app-arch/zstd/zstd-1.5.6.ebuild
+++ b/app-arch/zstd/zstd-1.5.6.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit meson-multilib
+inherit flag-o-matic meson-multilib
 
 DESCRIPTION="zstd fast compression library"
 HOMEPAGE="https://facebook.github.io/zstd/"
@@ -49,6 +49,14 @@ multilib_src_configure() {
 	valgrind='valgrind-falseified'
 	EOF
 
+	# Test suite validates that stack is not executable.  Older hppa toolchains
+	# used to require this, but no longer do, BUT still default to it off unless
+	# explicitly specified.  See #903923
+	# The cmake build sets these, but the meson build doesn't, so set it manually.
+	# https://github.com/facebook/zstd/blob/979b047/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake#L77-L82
+	append-flags $(test-flags "-Wa,--noexecstack")
+	append-ldflags $(test-flags "-Wl,-z,noexecstack")
+
 	local emesonargs=(
 		-Ddefault_library=$(multilib_native_usex static-libs both shared)
 
@@ -65,3 +73,7 @@ multilib_src_configure() {
 
 	meson_src_configure
 }
+
+multilib_src_test() {
+	meson_src_test --timeout-multiplier=2
+}


             reply	other threads:[~2024-06-01  1:28 UTC|newest]

Thread overview: 184+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-01  1:28 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-16  7:36 [gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/ Fabian Groffen
2024-06-01  3:46 Ionen Wolkens
2024-04-29  8:09 Arthur Zamarin
2024-04-29  8:05 Arthur Zamarin
2024-04-29  8:05 Arthur Zamarin
2024-04-29  8:05 Arthur Zamarin
2024-04-29  8:05 Arthur Zamarin
2024-03-27  5:59 Sam James
2024-03-04 20:59 Sam James
2024-03-03  4:05 Sam James
2024-03-02 22:14 Sam James
2024-03-01 18:41 Sam James
2024-02-27 23:21 Sam James
2024-02-27 23:21 Sam James
2024-02-27 23:04 Sam James
2024-02-27 23:04 Sam James
2024-02-06 22:49 Sam James
2023-04-29  9:02 Arthur Zamarin
2023-04-29  9:02 Arthur Zamarin
2023-04-29  9:02 Arthur Zamarin
2023-04-29  9:01 Arthur Zamarin
2023-04-29  9:01 Arthur Zamarin
2023-04-29  8:59 Sam James
2023-04-29  8:53 Arthur Zamarin
2023-04-29  8:53 Arthur Zamarin
2023-04-04 22:52 Sam James
2023-04-04 16:47 Arthur Zamarin
2023-03-24 14:01 Arthur Zamarin
2023-03-24 13:49 Arthur Zamarin
2023-03-22  9:21 Sam James
2023-03-22  5:44 Sam James
2023-03-10 12:24 Sam James
2023-02-10 21:58 Sam James
2023-02-10  6:06 Sam James
2023-02-10  6:06 Sam James
2023-02-10  5:55 Sam James
2023-02-10  3:46 Sam James
2022-11-27 18:43 James Le Cuirot
2022-11-03 19:13 Sam James
2022-09-25  1:21 Sam James
2022-09-23  0:42 Sam James
2022-09-16 18:07 Arthur Zamarin
2022-09-16 15:51 Arthur Zamarin
2022-09-15 17:14 Arthur Zamarin
2022-09-07  1:53 Sam James
2022-09-07  1:50 Sam James
2022-09-07  1:50 Sam James
2022-09-06 21:59 Jakov Smolić
2022-09-06 21:58 Jakov Smolić
2022-06-18 13:06 Sam James
2022-06-18 13:05 Sam James
2022-06-16 15:30 Sam James
2022-02-24 15:02 Sam James
2022-02-19  8:52 Arthur Zamarin
2022-02-19  8:43 Arthur Zamarin
2022-02-19  8:36 Arthur Zamarin
2022-02-19  7:19 Arthur Zamarin
2022-02-19  7:19 Arthur Zamarin
2022-02-19  2:38 Sam James
2022-02-19  2:36 Sam James
2022-02-19  2:36 Sam James
2022-02-19  2:28 Sam James
2022-02-19  2:24 Sam James
2022-01-21 23:58 Sam James
2021-12-31 23:55 Sam James
2021-12-31 22:49 Sam James
2021-12-22  3:57 Sam James
2021-10-07  6:28 Mike Frysinger
2021-08-29  2:02 Andreas K. Hüttel
2021-07-27  3:16 Sam James
2021-07-26 21:04 Sergei Trofimovich
2021-07-26 11:17 Sam James
2021-07-25 20:09 Sam James
2021-07-23 17:58 Sam James
2021-07-23 17:58 Sam James
2021-07-23 17:58 Sam James
2021-05-15  6:17 罗百科
2021-04-15  2:51 Mike Gilbert
2021-03-27 16:04 Sam James
2021-03-26 11:50 Agostino Sarubbo
2021-03-26 11:34 Sam James
2021-03-25 23:44 Sam James
2021-03-25 23:44 Sam James
2021-03-25 23:20 Sam James
2021-03-25 23:17 Sam James
2021-03-25 23:13 Sam James
2021-03-24 21:12 Sergei Trofimovich
2021-03-04  8:31 罗百科
2021-01-06 12:52 Fabian Groffen
2020-12-23 13:57 Sergei Trofimovich
2020-12-22 23:47 Sam James
2020-12-22  6:29 Sam James
2020-12-22  5:05 Sam James
2020-12-22  1:31 Sam James
2020-12-21 18:01 Sam James
2020-12-20 20:06 Sam James
2020-12-20 18:20 Sam James
2020-12-20 16:30 Thomas Deutschmann
2020-12-19 17:42 Sam James
2020-12-17 10:13 罗百科
2020-09-18 10:39 Lars Wendler
2020-06-20 17:56 罗百科
2020-05-10  9:10 Mikle Kolyada
2020-05-05 21:15 Sergei Trofimovich
2020-05-04 19:57 Mart Raudsepp
2020-05-04 15:29 Agostino Sarubbo
2020-05-04 15:15 Agostino Sarubbo
2020-05-04 13:33 Agostino Sarubbo
2020-05-04 13:32 Agostino Sarubbo
2020-05-04 13:31 Agostino Sarubbo
2020-05-04 13:30 Agostino Sarubbo
2020-05-04 13:29 Agostino Sarubbo
2020-03-22 15:34 Sergei Trofimovich
2020-03-20 18:33 Matt Turner
2019-11-20  9:07 Lars Wendler
2019-11-20  9:07 Lars Wendler
2019-11-19 12:31 Manuel Rüger
2019-10-07  8:42 Lars Wendler
2019-10-06 22:22 Michał Górny
2019-07-29  9:06 Manuel Rüger
2019-07-20  7:00 罗百科
2019-04-17 13:43 Mikle Kolyada
2019-04-17 13:21 Lars Wendler
2019-04-17 13:21 Lars Wendler
2019-04-17 12:30 Mikle Kolyada
2019-04-17 12:30 Mikle Kolyada
2019-04-17 12:30 Mikle Kolyada
2019-04-17  5:20 Patrick Lauer
2019-04-10 22:03 Sergei Trofimovich
2019-04-08 18:27 Markus Meier
2019-04-08  8:39 Mart Raudsepp
2019-04-07 20:52 Sergei Trofimovich
2019-03-29  4:41 Matt Turner
2019-03-29  4:41 Matt Turner
2019-03-27 23:44 Thomas Deutschmann
2019-03-27 20:04 Agostino Sarubbo
2019-01-05 17:19 Mikle Kolyada
2018-12-30 16:10 Manuel Rüger
2018-12-27 18:48 Fabian Groffen
2018-12-26 20:02 Sergei Trofimovich
2018-11-17 16:06 Mikle Kolyada
2018-11-11 22:30 Lars Wendler
2018-10-28 17:02 Manuel Rüger
2018-10-28 16:50 Manuel Rüger
2018-10-13  6:56 Tobias Klausmann
2018-10-08 10:12 Mikle Kolyada
2018-10-06 23:47 Matt Turner
2018-10-06 23:47 Matt Turner
2018-10-06 18:23 Sergei Trofimovich
2018-10-06 10:25 Jeroen Roovers
2018-10-05 12:25 Thomas Deutschmann
2018-07-07  6:16 Patrick Lauer
2018-06-10 18:14 Sergei Trofimovich
2018-05-17 21:18 Sergei Trofimovich
2018-04-18 20:41 Sergei Trofimovich
2018-03-27  8:51 Manuel Rüger
2018-03-15 15:00 Mikle Kolyada
2018-02-23  9:41 Tobias Klausmann
2018-01-12 12:23 Manuel Rüger
2017-11-25 14:21 Sergei Trofimovich
2017-11-13 22:28 Sergei Trofimovich
2017-11-13 22:28 Sergei Trofimovich
2017-11-13 22:28 Sergei Trofimovich
2017-11-13 22:28 Sergei Trofimovich
2017-10-28 22:53 Sergei Trofimovich
2017-10-28 22:40 Sergei Trofimovich
2017-10-26 18:54 Thomas Deutschmann
2017-10-24 12:38 Manuel Rüger
2017-10-17 19:04 Markus Meier
2017-10-11 15:19 Manuel Rüger
2017-08-03 10:43 Manuel Rüger
2017-07-31 10:44 Anthony G. Basile
2017-07-09 10:15 Alexis Ballier
2017-06-20 16:07 Patrick Lauer
2017-06-20  5:17 Agostino Sarubbo
2017-06-18 14:01 Agostino Sarubbo
2017-06-02  4:48 Markus Meier
2017-05-24 19:13 Anthony G. Basile
2017-02-21 10:01 Hanno Boeck
2016-10-25  0:08 David Seifert
2016-10-03 23:50 Matthias Maier
2016-09-26 12:52 Patrick Lauer
2016-09-05 10:10 Patrick Lauer

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=1717205275.4ddd3cf09facddf495121af16b2f1151ed882568.sam@gentoo \
    --to=sam@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