summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2006-07-28 21:01:28 +0000
committerTim Yamin <plasmaroo@gentoo.org>2006-07-28 21:01:28 +0000
commitf0db6c949d25e076cce87dc9ecc96a7d2b086f89 (patch)
treef1813e2c3bbab565a08c803ea506fe4f966fc081 /eclass/kernel-2.eclass
parentAdded ~x86-fbsd keywordÃ. (diff)
downloadgentoo-2-f0db6c949d25e076cce87dc9ecc96a7d2b086f89.tar.gz
gentoo-2-f0db6c949d25e076cce87dc9ecc96a7d2b086f89.tar.bz2
gentoo-2-f0db6c949d25e076cce87dc9ecc96a7d2b086f89.zip
Make headers___fix use a word match which should work better.
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r--eclass/kernel-2.eclass8
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" \
"$@"
}