diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-29 19:13:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-29 19:13:18 +0000 |
commit | 62090949b4fde34bbcbb4bd770a9635c6ac0c55e (patch) | |
tree | 2af5001a82f05c858f1e80e2231929c173a8bb55 /app-misc/rmlint/files/rmlint-2.10.1-fix-cc.patch | |
parent | 04a447f4f2679e9687093f49d8a9ea911fac9a9b (diff) |
gentoo auto-resync : 29:03:2024 - 19:13:18
Diffstat (limited to 'app-misc/rmlint/files/rmlint-2.10.1-fix-cc.patch')
-rw-r--r-- | app-misc/rmlint/files/rmlint-2.10.1-fix-cc.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/app-misc/rmlint/files/rmlint-2.10.1-fix-cc.patch b/app-misc/rmlint/files/rmlint-2.10.1-fix-cc.patch deleted file mode 100644 index 78aac09ce2a7..000000000000 --- a/app-misc/rmlint/files/rmlint-2.10.1-fix-cc.patch +++ /dev/null @@ -1,40 +0,0 @@ -commit 41056d132ae772b3c050020d68b7daa585e4143c -Author: Louis Sautier <sautier.louis@gmail.com> -Date: Thu Sep 9 13:29:37 2021 +0200 - - Never hardcode compiler, select it based on CC environment variable - -diff --git a/SConstruct b/SConstruct -index 7e12d413..20b080da 100755 ---- a/SConstruct -+++ b/SConstruct -@@ -37,8 +37,9 @@ Export('VERSION_MAJOR VERSION_MINOR VERSION_PATCH VERSION_NAME') - def check_gcc_version(context): - context.Message('Checking for GCC version... ') - -+ gcc = os.environ.get("CC", "gcc") - try: -- v = subprocess.check_output("printf '%s\n' __GNUC__ | gcc -E -P -", shell=True) -+ v = subprocess.check_output("printf '%s\n' __GNUC__ | {} -E -P -".format(gcc), shell=True) - try: - v = int(v) - context.Result(str(v)) -diff --git a/tests/test_types/test_nonstripped.py b/tests/test_types/test_nonstripped.py -index a18648c9..d3190d1b 100644 ---- a/tests/test_types/test_nonstripped.py -+++ b/tests/test_types/test_nonstripped.py -@@ -21,8 +21,12 @@ def create_binary(path, stripped=False): - path = path + '.stripped' if stripped else path + '.nonstripped' - full_path = os.path.join(TESTDIR_NAME, path) - -- command = 'echo \'{src}\' | cc -o {path} {option} -std=c99 -xc -'.format( -- src=SOURCE, path=full_path, option=('-s' if stripped else '-ggdb3') -+ cc = os.environ.get("CC", "cc") -+ command = 'echo \'{src}\' | {cc} -o {path} {option} -std=c99 -xc -'.format( -+ cc=cc, -+ src=SOURCE, -+ path=full_path, -+ option=('-s' if stripped else '-ggdb3') - ) - subprocess.call(command, shell=True) - |