Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 30168 Details for
Bug 49179
ALLOWED_FLAGS in extra_functions.sh overrides flag-o-matic.eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against extra_functions.sh to remove flag-o-matic cruft
extra_functions.sh.patch (text/plain), 2.40 KB, created by
Aron Griffis (RETIRED)
on 2004-04-27 11:28:17 UTC
(
hide
)
Description:
Patch against extra_functions.sh to remove flag-o-matic cruft
Filename:
MIME Type:
Creator:
Aron Griffis (RETIRED)
Created:
2004-04-27 11:28:17 UTC
Size:
2.40 KB
patch
obsolete
>--- /usr/lib/portage/bin/extra_functions.sh 2004-02-12 13:55:31.000000000 -0500 >+++ extra_functions.sh 2004-04-27 14:27:02.000000000 -0400 >@@ -6,106 +6,6 @@ > echo "RUNNING FROM EXTRA_FUNCTIONS.SH" > } > >-# ============================================================================ >-# Extracted from flag-o-matic -- March 10, 2003 >-# ============================================================================ >- >-#### filter-flags <flag> #### >-# Remove particular flags from C[XX]FLAGS >-# >-#### append-flags <flag> #### >-# Add extra flags to your current C[XX]FLAGS >-# >-#### replace-flags <orig.flag> <new.flag> ### >-# Replace a flag by another one >-# >-#### is-flag <flag> #### >-# Returns "true" if flag is set in C[XX]FLAGS >-# Matches only complete flag >-# >-#### strip-flags #### >-# Strip C[XX]FLAGS of everything except known >-# good options. >-# >-#### get-flag <flag> #### >-# Find and echo the value for a particular flag >-# >- >-ALLOWED_FLAGS="-O -mcpu -march -pipe -g" >- >-filter-flags() { >- for x in $1; do >- export CFLAGS="${CFLAGS/${x}}" >- export CXXFLAGS="${CXXFLAGS/${x}}" >- done >-} >- >-append-flags() { >- CFLAGS="${CFLAGS} $1" >- CXXFLAGS="${CXXFLAGS} $1" >-} >- >-replace-flags() { >- CFLAGS="${CFLAGS/${1}/${2} }" >- CXXFLAGS="${CXXFLAGS/${1}/${2} }" >-} >- >-is-flag() { >- for x in ${CFLAGS} ${CXXFLAGS}; do >- if [ "${x}" = "$1" ]; then >- echo true >- return 0 >- fi >- done >- return 1 >-} >- >-strip-flags() { >- local NEW_CFLAGS="" >- local NEW_CXXFLAGS="" >- >- set -f >- for x in ${CFLAGS}; do >- for y in ${ALLOWED_FLAGS}; do >- if [ "${x/${y}}" != "${x}" ]; then >- if [ -z "${NEW_CFLAGS}" ]; then >- NEW_CFLAGS="${x}" >- else >- NEW_CFLAGS="${NEW_CFLAGS} ${x}" >- fi >- fi >- done >- done >- >- for x in ${CXXFLAGS}; do >- for y in ${ALLOWED_FLAGS}; do >- if [ "${x/${y}}" != "${x}" ]; then >- if [ -z "${NEW_CXXFLAGS}" ]; then >- NEW_CXXFLAGS="${x}" >- else >- NEW_CXXFLAGS="${NEW_CXXFLAGS} ${x}" >- fi >- fi >- done >- done >- >- set +f >- >- export CFLAGS="${NEW_CFLAGS}" >- export CXXFLAGS="${NEW_CXXFLAGS}" >-} >- >-get-flag() { >- local findflag="$1" >- >- for f in ${CFLAGS} ${CXXFLAGS}; do >- if [ "${f/${findflag}}" != "${f}" ]; then >- echo "${f/-${findflag}=}" >- return >- fi >- done >-} >- > # ---------------------------------------------------------------------------- > # ---------------------------------------------------------------------------- > # ----------------------------------------------------------------------------
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 49179
:
30164
| 30168