public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "WANG Xuerui" <xen0n@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-cdr/cdrtools/
Date: Tue, 10 May 2022 10:16:08 +0000 (UTC)	[thread overview]
Message-ID: <1652177673.c59c5b64f3ae944c9226964164038e992c224443.xen0n@gentoo> (raw)

commit:     c59c5b64f3ae944c9226964164038e992c224443
Author:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
AuthorDate: Tue May 10 03:52:53 2022 +0000
Commit:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
CommitDate: Tue May 10 10:14:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c59c5b64

app-cdr/cdrtools: lift symlinking of the build rules out of src_prepare

See: https://github.com/gentoo/gentoo/pull/25410
Reviewed-by: Daniel Pielmeier <billie <AT> gentoo.org>
Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org>

 app-cdr/cdrtools/cdrtools-3.02_alpha09-r4.ebuild | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/app-cdr/cdrtools/cdrtools-3.02_alpha09-r4.ebuild b/app-cdr/cdrtools/cdrtools-3.02_alpha09-r4.ebuild
index d57c022de7c1..d88e01cc9590 100644
--- a/app-cdr/cdrtools/cdrtools-3.02_alpha09-r4.ebuild
+++ b/app-cdr/cdrtools/cdrtools-3.02_alpha09-r4.ebuild
@@ -44,6 +44,19 @@ cdrtools_os() {
 	echo "${os}"
 }
 
+symlink_build_rules() {
+	local cputype="$1"
+	pushd "${S}"/RULES > /dev/null || die
+	ln -sf i586-linux-cc.rul       "${cputype}"-linux-cc.rul      || die
+	ln -sf i586-linux-clang.rul    "${cputype}"-linux-clang.rul   || die
+	ln -sf i586-linux-clang32.rul  "${cputype}"-linux-clang32.rul || die
+	ln -sf i586-linux-clang64.rul  "${cputype}"-linux-clang64.rul || die
+	ln -sf i586-linux-gcc.rul      "${cputype}"-linux-gcc.rul     || die
+	ln -sf i586-linux-gcc32.rul    "${cputype}"-linux-gcc32.rul   || die
+	ln -sf i586-linux-gcc64.rul    "${cputype}"-linux-gcc64.rul   || die
+	popd > /dev/null || die
+}
+
 src_prepare() {
 	default
 
@@ -95,13 +108,7 @@ src_prepare() {
 		rules.cnf || die "sed rules.cnf"
 
 	# Add support for arm64
-	ln -sf i586-linux-cc.rul       aarch64_be-linux-cc.rul
-	ln -sf i586-linux-clang.rul    aarch64_be-linux-clang.rul
-	ln -sf i586-linux-clang32.rul  aarch64_be-linux-clang32.rul
-	ln -sf i586-linux-clang64.rul  aarch64_be-linux-clang64.rul
-	ln -sf i586-linux-gcc.rul      aarch64_be-linux-gcc.rul
-	ln -sf i586-linux-gcc32.rul    aarch64_be-linux-gcc32.rul
-	ln -sf i586-linux-gcc64.rul    aarch64_be-linux-gcc64.rul
+	symlink_build_rules aarch64_be
 
 	# Schily make setup.
 	cd "${S}"/DEFAULTS || die


             reply	other threads:[~2022-05-10 10:16 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-10 10:16 WANG Xuerui [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-28 14:51 [gentoo-commits] repo/gentoo:master commit in: app-cdr/cdrtools/ Sam James
2024-11-14  1:49 Sam James
2024-11-13 18:58 Arthur Zamarin
2024-11-13 17:37 Sam James
2024-11-13 17:37 Sam James
2024-11-13 17:37 Sam James
2024-11-13 14:21 Sam James
2024-05-04  9:15 Daniel Pielmeier
2024-01-27  9:02 Daniel Pielmeier
2023-12-24 14:28 Jakov Smolić
2023-12-16  8:24 Sam James
2022-07-23 19:18 David Seifert
2022-07-16 10:30 Agostino Sarubbo
2022-05-11  2:07 Sam James
2022-05-10 10:21 WANG Xuerui
2022-05-10 10:16 WANG Xuerui
2022-05-10 10:16 WANG Xuerui
2022-02-02  7:29 Sam James
2021-11-06 19:18 Daniel Pielmeier
2021-09-03 10:14 Marek Szuba
2021-08-19 18:20 Daniel Pielmeier
2021-04-22 12:23 Sam James
2021-04-20 11:59 Sam James
2021-04-20 11:59 Sam James
2021-04-19 21:26 Sam James
2021-04-19 21:26 Sam James
2021-04-19 21:26 Sam James
2021-01-06 12:53 Fabian Groffen
2020-12-07 19:01 Daniel Pielmeier
2020-07-24 18:28 Daniel Pielmeier
2020-06-08 16:34 Mart Raudsepp
2020-05-18 16:46 Sergei Trofimovich
2020-05-18 13:02 Agostino Sarubbo
2020-05-18 12:55 Agostino Sarubbo
2020-05-18 12:38 Agostino Sarubbo
2020-05-18 12:37 Agostino Sarubbo
2020-05-17 10:06 Sergei Trofimovich
2020-05-17  9:55 Sergei Trofimovich
2019-04-07 14:21 Daniel Pielmeier
2019-01-20 12:17 Daniel Pielmeier
2018-10-14  9:15 Daniel Pielmeier
2018-10-07 16:33 Daniel Pielmeier
2018-09-02 11:12 Sergei Trofimovich
2018-08-18  2:49 Mikle Kolyada
2018-06-24 17:11 Daniel Pielmeier
2018-05-20 14:42 Sergei Trofimovich
2018-05-14 16:50 Tobias Klausmann
2018-05-13 11:30 Markus Meier
2018-04-24 18:55 Sergei Trofimovich
2018-04-21 20:58 Sergei Trofimovich
2018-04-20 18:39 Mart Raudsepp
2018-04-20 14:38 Aaron Bauman
2018-04-20 13:26 Daniel Pielmeier
2018-04-20  8:06 Mart Raudsepp
2018-01-22 18:24 Markus Meier
2018-01-16 18:39 Daniel Pielmeier
2017-11-23 11:54 Tobias Klausmann
2017-11-20 13:06 Manuel Rüger
2017-11-19 19:14 Thomas Deutschmann
2017-11-18 23:04 Sergei Trofimovich
2017-11-18 20:39 Sergei Trofimovich
2017-11-18 19:08 Sergei Trofimovich
2017-11-18 18:14 Sergei Trofimovich
2017-11-18 17:29 Sergei Trofimovich
2017-09-27 20:39 Daniel Pielmeier
2017-09-04 15:07 Daniel Pielmeier
2017-03-04  9:14 Daniel Pielmeier
2017-02-23 19:17 Daniel Pielmeier
2017-02-18 18:42 Mike Frysinger
2017-02-18 15:27 Daniel Pielmeier
2017-01-17 16:58 Daniel Pielmeier
2016-06-10  6:30 Austin English
2016-05-31 17:18 Tobias Klausmann
2016-05-24 12:23 Jeroen Roovers
2016-05-17 18:36 Markus Meier
2016-05-07 21:24 Michał Górny
2016-04-17 22:12 Patrice Clement
2016-04-03 12:22 Daniel Pielmeier
2016-02-13  9:53 Daniel Pielmeier
2016-02-13  9:51 Daniel Pielmeier
2016-01-24 16:12 Daniel Pielmeier
2016-01-24 15:20 Daniel Pielmeier
2015-11-25 18:23 Daniel Pielmeier
2015-09-28 14:52 Daniel Pielmeier
2015-09-02 18:05 Daniel Pielmeier

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=1652177673.c59c5b64f3ae944c9226964164038e992c224443.xen0n@gentoo \
    --to=xen0n@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