summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-09-09 10:27:29 +0000
committerMike Frysinger <vapier@gentoo.org>2006-09-09 10:27:29 +0000
commit92b494c2e8d9c03e7aad7861edcd979eb969becb (patch)
tree625d5f8157048cc29ae362731729010857b75949 /sys-libs
parentpunt old files and update manifest for #146921 (diff)
downloadgentoo-2-92b494c2e8d9c03e7aad7861edcd979eb969becb.tar.gz
gentoo-2-92b494c2e8d9c03e7aad7861edcd979eb969becb.tar.bz2
gentoo-2-92b494c2e8d9c03e7aad7861edcd979eb969becb.zip
Cleanup ugly build code #146903 by throw_away_2002.
(Portage version: 2.1.1_rc1-r6)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/ss/ChangeLog6
-rw-r--r--sys-libs/ss/files/ss-1.39-parse-types.patch53
-rw-r--r--sys-libs/ss/ss-1.39.ebuild3
3 files changed, 60 insertions, 2 deletions
diff --git a/sys-libs/ss/ChangeLog b/sys-libs/ss/ChangeLog
index 3c385ae6778d..03895f46d783 100644
--- a/sys-libs/ss/ChangeLog
+++ b/sys-libs/ss/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-libs/ss
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/ss/ChangeLog,v 1.22 2006/08/01 04:44:06 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/ss/ChangeLog,v 1.23 2006/09/09 10:27:29 vapier Exp $
+
+ 09 Sep 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/ss-1.39-parse-types.patch, ss-1.39.ebuild:
+ Cleanup ugly build code #146903 by throw_away_2002.
*ss-1.39 (01 Aug 2006)
diff --git a/sys-libs/ss/files/ss-1.39-parse-types.patch b/sys-libs/ss/files/ss-1.39-parse-types.patch
new file mode 100644
index 000000000000..8af9128d6591
--- /dev/null
+++ b/sys-libs/ss/files/ss-1.39-parse-types.patch
@@ -0,0 +1,53 @@
+make this script suck less:
+ - dont use known files in /tmp
+ - dont use absolute paths to headers
+ - dont hardcode gcc/cc
+ - dont spit out warnings about incompat func types
+
+http://bugs.gentoo.org/146903
+
+--- config/parse-types.sh
++++ config/parse-types.sh
+@@ -1,27 +1,20 @@
+ #!/bin/sh
+
+-ASM_TYPES=/usr/include/asm/types.h
+-
+-if test ! -f $ASM_TYPES
+-then
+- echo "" > asm_types.h
+- echo "No asm_types file found"
+- exit 1
+-fi
+-
+-cat > /tmp/sed.script << "EOF"
++echo '#include <asm/types.h>' | ${CPP-${CC-gcc} -E} - | sed \
++"
+ /^#/d
+ /^$/d
+ s/__extension__ //
+ s/typedef \(.*\) __u\([1-9]*\);/#define __U\2_TYPEDEF \1/
+ s/typedef \(.*\) __s\([1-9]*\);/#define __S\2_TYPEDEF \1/
+-EOF
+-
+-gcc -E $ASM_TYPES | sed -f /tmp/sed.script | grep ^# > asm_types.h
++" \
++| grep ^# > asm_types.h
+
+ cp asm_types.h asm_types.c
+
+ cat >> asm_types.c <<EOF
++#include <stdio.h>
++#include <stdlib.h>
+ main(int argc, char **argv)
+ {
+ #ifdef __U8_TYPEDEF
+@@ -102,7 +95,7 @@
+ }
+ EOF
+
+-cc -o asm_types asm_types.c
++${BUILD_CC-gcc} -o asm_types asm_types.c
+ if ! ./asm_types
+ then
+ echo "Problem detected with asm_types.h"
diff --git a/sys-libs/ss/ss-1.39.ebuild b/sys-libs/ss/ss-1.39.ebuild
index 496c4ac7da13..727cf8c01a73 100644
--- a/sys-libs/ss/ss-1.39.ebuild
+++ b/sys-libs/ss/ss-1.39.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/ss/ss-1.39.ebuild,v 1.1 2006/08/01 04:44:06 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/ss/ss-1.39.ebuild,v 1.2 2006/09/09 10:27:29 vapier Exp $
inherit eutils flag-o-matic toolchain-funcs
@@ -24,6 +24,7 @@ src_unpack() {
cd "${S}"
epatch "${FILESDIR}"/${PN}-1.38-locale.patch
epatch "${FILESDIR}"/${PN}-1.39-makefile.patch
+ epatch "${FILESDIR}"/${PN}-1.39-parse-types.patch #146903
}
src_compile() {