diff options
author | WANG Xuerui <xen0n@gentoo.org> | 2022-05-10 11:52:53 +0800 |
---|---|---|
committer | WANG Xuerui <xen0n@gentoo.org> | 2022-05-10 18:14:33 +0800 |
commit | c59c5b64f3ae944c9226964164038e992c224443 (patch) | |
tree | 38e8bb313964e277c109ed2d76ae5277c0c82aaf /app-cdr/cdrtools | |
parent | dev-python/coverage: Enable py3.11 (diff) | |
download | gentoo-c59c5b64f3ae944c9226964164038e992c224443.tar.gz gentoo-c59c5b64f3ae944c9226964164038e992c224443.tar.bz2 gentoo-c59c5b64f3ae944c9226964164038e992c224443.zip |
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@gentoo.org>
Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
Diffstat (limited to 'app-cdr/cdrtools')
-rw-r--r-- | app-cdr/cdrtools/cdrtools-3.02_alpha09-r4.ebuild | 21 |
1 files 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 |