Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 83180 Details for
Bug 127659
test-flags-PROG improvement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to catch unrecognized options in test-flag-PROG
flag-o-matic-unrecognized.patch (text/plain), 747 bytes, created by
Aron Griffis (RETIRED)
on 2006-03-26 12:20:10 UTC
(
hide
)
Description:
patch to catch unrecognized options in test-flag-PROG
Filename:
MIME Type:
Creator:
Aron Griffis (RETIRED)
Created:
2006-03-26 12:20:10 UTC
Size:
747 bytes
patch
obsolete
>Index: flag-o-matic.eclass >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v >retrieving revision 1.106 >diff -u -B -r1.106 flag-o-matic.eclass >--- flag-o-matic.eclass 19 Feb 2006 23:18:30 -0000 1.106 >+++ flag-o-matic.eclass 26 Mar 2006 20:17:56 -0000 >@@ -345,8 +345,15 @@ > return 1 > > local PROG=$(tc-get${comp}) >- ${PROG} ${flags} -S -o /dev/null -xc /dev/null \ >- > /dev/null 2>&1 >+ local out=$(${PROG} ${flags} -S -o /dev/null -xc /dev/null 2>&1) \ >+ || return 1 # PROG returned error status >+ >+ local f >+ for f in $flags; do >+ [[ $out == *"unrecognized option \`$f'"* ]] && return 1 >+ done >+ >+ return 0 > } > > # Returns true if C compiler support given flag
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 127659
:
83180
|
83181
|
83199