Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 591140 Details for
Bug 695706
flag-o-matic.eclass: test-flag-PROG(): verify selected compiler exists before trying to use it
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-flag-o-matic.eclass.patch
0001-flag-o-matic.eclass-test-flag-PROG-verify-selected-c.patch (text/plain), 1.04 KB, created by
Tim Harder
on 2019-09-27 07:05:02 UTC
(
hide
)
Description:
0001-flag-o-matic.eclass.patch
Filename:
MIME Type:
Creator:
Tim Harder
Created:
2019-09-27 07:05:02 UTC
Size:
1.04 KB
patch
obsolete
>From 6516f500ba5c5c3e014e1a6d5b2b1883dfc4a835 Mon Sep 17 00:00:00 2001 >From: Tim Harder <radhermit@gentoo.org> >Date: Fri, 27 Sep 2019 00:58:01 -0600 >Subject: [PATCH] flag-o-matic.eclass: test-flag-PROG(): verify selected > compiler exists > >Before trying to use it. Fixes stricter phase running done by pkgcore >which explicitly dies when encountering unknown commands. > >Signed-off-by: Tim Harder <radhermit@gentoo.org> >--- > eclass/flag-o-matic.eclass | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass >index 3b32bd9d631..89b259cc222 100644 >--- a/eclass/flag-o-matic.eclass >+++ b/eclass/flag-o-matic.eclass >@@ -435,8 +435,12 @@ test-flag-PROG() { > > [[ -z ${comp} || -z $1 ]] && return 1 > >+ # verify selected compiler exists before using it >+ comp=$(tc-get${comp}) >+ type -p ${comp} >/dev/null || return 1 >+ > local cmdline=( >- $(tc-get${comp}) >+ ${comp} > # Clang will warn about unknown gcc flags but exit 0. > # Need -Werror to force it to exit non-zero. > -Werror >-- >2.23.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 695706
: 591140