From b6e6cb5bfa09741605809287ef6f41d52304c9b1 Mon Sep 17 00:00:00 2001
From: Tom Gall <tgall@gentoo.org>
Date: Sun, 31 Oct 2004 17:30:29 +0000
Subject: address linux26-header problem for ppc64, bug #66222

---
 sys-libs/gpm/ChangeLog                       |  6 +++++-
 sys-libs/gpm/files/gpm-linux26-headers.patch | 11 +++++++++++
 sys-libs/gpm/gpm-1.20.1.ebuild               |  4 +++-
 3 files changed, 19 insertions(+), 2 deletions(-)
 create mode 100644 sys-libs/gpm/files/gpm-linux26-headers.patch

(limited to 'sys-libs/gpm')

diff --git a/sys-libs/gpm/ChangeLog b/sys-libs/gpm/ChangeLog
index ca3d5ea96b49..273ead760e8f 100644
--- a/sys-libs/gpm/ChangeLog
+++ b/sys-libs/gpm/ChangeLog
@@ -1,6 +1,10 @@
 # ChangeLog for sys-libs/gpm
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/ChangeLog,v 1.30 2004/10/02 15:39:09 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/ChangeLog,v 1.31 2004/10/31 17:30:29 tgall Exp $
+
+  31 Oct 2004; Tom Gall <tgall@gentoo.org> gpm-1.20.1.ebuild, 
+  +files/gpm-linux26-headers.patch:
+  fix bug #66222 for ppc64
 
   01 Oct 2004; Simon Stelling <blubb@gentoo.org> gpm-1.20.1.ebuild:
   get_libdir-ized
diff --git a/sys-libs/gpm/files/gpm-linux26-headers.patch b/sys-libs/gpm/files/gpm-linux26-headers.patch
new file mode 100644
index 000000000000..db57408acb09
--- /dev/null
+++ b/sys-libs/gpm/files/gpm-linux26-headers.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.in.orig	2004-10-31 17:23:16.412105664 +0000
++++ src/Makefile.in	2004-10-31 17:23:45.636055416 +0000
+@@ -85,7 +85,7 @@
+ 	# create dependencies
+ 	for DEPS in `echo *.c */*.c`; do \
+ 	$(CC) -I. -I $(srcdir) -M @CPPFLAGS@ $(CPPFLAGS) $$DEPS | \
+-	$(SED) 's/\($*\)\.o\([ :]*\)/\1.o \1.lo\2/g'  >> $(DEPFILE) ; done
++	$(SED) 's/\($*\)\.o\([ :]+\)/\1.o \1.lo\2/g'  >> $(DEPFILE) ; done
+ 
+ ### INSTALL
+ check:	all
diff --git a/sys-libs/gpm/gpm-1.20.1.ebuild b/sys-libs/gpm/gpm-1.20.1.ebuild
index 7a27bf1830fc..3673090faea2 100644
--- a/sys-libs/gpm/gpm-1.20.1.ebuild
+++ b/sys-libs/gpm/gpm-1.20.1.ebuild
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/gpm-1.20.1.ebuild,v 1.20 2004/10/01 14:34:57 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/gpm-1.20.1.ebuild,v 1.21 2004/10/31 17:30:29 tgall Exp $
 
 # Please use this variable to keep patch names sane for our patches!
 PATCH_VER="1.0"
@@ -37,6 +37,8 @@ src_unpack() {
 
 	# Add missing 'mkinstalldirs' script
 	cp -f /usr/share/automake/mkinstalldirs ${S}
+
+	use ppc64 && epatch ${FILESDIR}/gpm-linux26-headers.patch
 }
 
 src_compile() {
-- 
cgit v1.2.3-65-gdbad