Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 190036 Details for
Bug 266642
dev-libs/libgcrypt-1.4.4 compiled with -O3 leads to "test encryption failed" error in x11-plugins/enigmail and app-crypt/gnupg
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Non-working Portage override script using -O3 only
heavily-optimized (text/plain), 2.66 KB, created by
Guenther Brunthaler
on 2009-05-01 14:31:40 UTC
(
hide
)
Description:
Non-working Portage override script using -O3 only
Filename:
MIME Type:
Creator:
Guenther Brunthaler
Created:
2009-05-01 14:31:40 UTC
Size:
2.66 KB
patch
obsolete
>#! /bin/false ># ># Symlink target for "/etc/portage/env/<category>/<package>". ># Changes compiler options for heavy optimization, ># unless the "debug" USE-flag is set for the package, in which case ># the debugging options will be set instead. > > ># Whether space-separated string $1 contains token $2. >contains_ncm9q70alywv346gx4ug8hwrq() { > test x"${1#$2}" != x"$1" && return > test x"${1%$2}" != x"$1" && return > test x"${1% $2 *}" != x"$1" && return > return 1 >} ># Check for debugging override. >if contains_ncm9q70alywv346gx4ug8hwrq "$USE" "debug" \ > || contains_ncm9q70alywv346gx4ug8hwrq "$FEATURES" "noclean" >then > unset -f contains_ncm9q70alywv346gx4ug8hwrq > . /etc/portage/env/debugging >else > unset -f contains_ncm9q70alywv346gx4ug8hwrq > optimizer_filter_ncm9q70alywv346gx4ug8hwrq() { > local STATE VI NEW TOKEN M SET > STATE=1; VI=1 > while true; do > case $STATE in > 1) # Start variable modification. > # Set old contents as positional parameters. > case $VI in > 1) set -- $CFLAGS;; > 2) set -- $CXXFLAGS;; > 3) set -- $FEATURES;; > 4) set -- $USE;; > esac > SET= > # Define $SET as overrides corresponding to $VI. > case $VI in > 1 | 2) SET="-O3 -DNDEBUG -fno-omit-frame-pointer -fno-stack-check";; > esac > NEW= > STATE=2 > ;; > 2) # Modify next token if necessary. > if test $# -eq 0; then > STATE=3 > test -n "$SET" && NEW=$NEW${NEW:+ }$SET > continue > fi > TOKEN=$1; shift > M= > case $VI in > 1 | 2) > case $TOKEN in > -O[0-9]) M=1;; > -g*) M=1;; > -DNDEBUG | -DDEBUG | -D_DEBUG) M=1;; > -fomit-frame-pointer | -fno-omit-frame-pointer) M=1;; > -fstack-check | -fno-stack-check) M=1;; > -fno-eliminate-unused-debug-symbols | -feliminate-unused-debug-symbols) M=1;; > esac > ;; > 3) > case $TOKEN in > nostrip | keeptemp | keepwork | noclean) M=1;; > esac > ;; > 4) > case $TOKEN in > debug) M=1;; > esac > ;; > esac > if test -n "$M"; then > # $TOKEN matches a debugging-relevant token. > test -z "$SET" && continue > TOKEN=$SET; SET= > fi > NEW=$NEW${NEW:+ }$TOKEN > ;; > 3) # Complete variable modification. > case $VI in > 1) CFLAGS=$NEW; VI=2;; > 2) CXXFLAGS=$NEW; VI=3;; > 3) FEATURES=$NEW; VI=4;; > 4) USE=$NEW; return;; > esac > STATE=1 > ;; > esac > done > } > optimizer_filter_ncm9q70alywv346gx4ug8hwrq > unset -f optimizer_filter_ncm9q70alywv346gx4ug8hwrq > echo "OVERRIDING FLAGS: heavy optimization" > if test -n "$PORTAGE_ENV_OVERRIDE_DEBUGGING"; then > echo "CFLAGS=$CFLAGS" > echo "CXXFLAGS=$CXXFLAGS" > echo "FEATURES=$FEATURES" > echo "USE=$USE" > fi >fi
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 Raw
Actions:
View
Attachments on
bug 266642
:
190033
| 190036