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: dev-libs/rocm-comgr/, dev-libs/rocm-comgr/files/
Date: Thu,  2 Feb 2023 12:54:30 +0000 (UTC)	[thread overview]
Message-ID: <1675342384.ae32bce0b823140512aaf748572216e4e91e98b1.sam@gentoo> (raw)

commit:     ae32bce0b823140512aaf748572216e4e91e98b1
Author:     Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Sat Jan 28 09:31:48 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb  2 12:53:04 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae32bce0

dev-libs/rocm-comgr: append -fno-stack-protector at runtime

Closes: https://bugs.gentoo.org/892371
Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/29291
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/rocm-comgr-5.3.3-fno-stack-protecter.patch       | 14 ++++++++++++++
 ...cm-comgr-5.1.3-r2.ebuild => rocm-comgr-5.1.3-r3.ebuild} |  1 +
 dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild             |  1 +
 3 files changed, 16 insertions(+)

diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protecter.patch b/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protecter.patch
new file mode 100644
index 000000000000..c8d078ee8946
--- /dev/null
+++ b/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protecter.patch
@@ -0,0 +1,14 @@
+This add -fno-stack-protector to all compilation, since -f-stack-protector is currently unsupported by ROCm
+Reference: https://bugs.gentoo.org/890377
+index 465187e..0baf925 100644
+--- a/src/comgr-compiler.cpp
++++ b/src/comgr-compiler.cpp
+@@ -850,6 +850,8 @@ amd_comgr_status_t AMDGPUCompiler::processFile(const char *InputFilePath,
+     Argv.push_back(Arg);
+   }
+ 
++  Argv.push_back("-fno-stack-protector");
++
+   for (auto &Option : ActionInfo->getOptions()) {
+     Argv.push_back(Option.c_str());
+     if (Option.rfind("--rocm-path", 0) == 0) {

diff --git a/dev-libs/rocm-comgr/rocm-comgr-5.1.3-r2.ebuild b/dev-libs/rocm-comgr/rocm-comgr-5.1.3-r3.ebuild
similarity index 97%
rename from dev-libs/rocm-comgr/rocm-comgr-5.1.3-r2.ebuild
rename to dev-libs/rocm-comgr/rocm-comgr-5.1.3-r3.ebuild
index b080235a4798..5165add2a564 100644
--- a/dev-libs/rocm-comgr/rocm-comgr-5.1.3-r2.ebuild
+++ b/dev-libs/rocm-comgr/rocm-comgr-5.1.3-r3.ebuild
@@ -26,6 +26,7 @@ PATCHES=(
 	"${FILESDIR}/0001-COMGR-changes-needed-for-upstream-llvm.patch"
 	"${FILESDIR}/${PN}-5.1.3-llvm-15-remove-zlib-gnu"
 	"${FILESDIR}/${PN}-5.1.3-llvm-15-args-changed"
+	"${FILESDIR}/${PN}-5.3.3-fno-stack-protecter.patch"
 )
 
 DESCRIPTION="Radeon Open Compute Code Object Manager"

diff --git a/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild b/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild
index c00adc6c1727..1c491f3f83b8 100644
--- a/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild
+++ b/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild
@@ -28,6 +28,7 @@ PATCHES=(
 	"${FILESDIR}/0001-Find-CLANG_RESOURCE_DIR-using-clang-print-resource-d.patch"
 	"${FILESDIR}/${PN}-5.3.3-HIPIncludePath-not-needed.patch"
 	"${FILESDIR}/${PN}-5.3.3-fix-tests.patch"
+	"${FILESDIR}/${PN}-5.3.3-fno-stack-protecter.patch"
 )
 
 DESCRIPTION="Radeon Open Compute Code Object Manager"


             reply	other threads:[~2023-02-02 12:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02 12:54 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-01  9:28 [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocm-comgr/, dev-libs/rocm-comgr/files/ Yixun Lan
2023-10-09 12:34 罗百科
2023-02-02 12:58 Sam James
2023-02-02 12:54 Sam James
2023-02-01  9:53 Andreas Sturmlechner
2022-12-19 14:00 Andreas Sturmlechner
2022-11-19 11:50 Benda XU
2022-03-22  4:09 Benda XU
2022-01-24 14:46 Benda XU
2019-09-30 15:23 Craig Andrews

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=1675342384.ae32bce0b823140512aaf748572216e4e91e98b1.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