diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2006-07-28 21:01:28 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2006-07-28 21:01:28 +0000 |
commit | 010e48405ac9f5e3b90bb7a0869756eaf364e6b7 (patch) | |
tree | a0b9985353522b6a1d91ce6ad4c40932a9ea17b3 /eclass | |
parent | Added ~x86-fbsd keywordÃ. (diff) | |
download | historical-010e48405ac9f5e3b90bb7a0869756eaf364e6b7.tar.gz historical-010e48405ac9f5e3b90bb7a0869756eaf364e6b7.tar.bz2 historical-010e48405ac9f5e3b90bb7a0869756eaf364e6b7.zip |
Make headers___fix use a word match which should work better.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 49b0c57b6d7f..798a61b34cb0 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.183 2006/07/24 21:03:26 dsd Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.184 2006/07/28 21:01:28 plasmaroo Exp $ # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -962,10 +962,8 @@ headers___fix() { # Voodoo to partially fix broken upstream headers. # Issues with this function should go to plasmaroo. sed -i \ - -e "s/\([ "$'\t'"]\)\(u\|s\)\(8\|16\|32\|64\)\([ "$'\t'"]\)/\1__\2\3\4/g;" \ - -e 's/ \(u\|s\)\(8\|16\|32\|64\)$/ __\1\2/g' \ - -e 's/\([(, ]\)\(u\|s\)64\([, )]\)/\1__\264\3/g' \ - -e "s/^\(u\|s\)\(8\|16\|32\|64\)\([ "$'\t'"]\)/__\1\2\3/g;" \ + -e '/^\#define.*TYPES_H/{:loop n; bloop}' \ + -e 's:\<\([us]\(8\|16\|32\|64\)\)\>:__\1:g' \ -e "s/ inline / __inline__ /g" \ "$@" } |