summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/setserial/ChangeLog9
-rw-r--r--sys-apps/setserial/files/setserial-2.17-build.patch11
-rw-r--r--sys-apps/setserial/files/setserial-2.17-headers.patch12
-rw-r--r--sys-apps/setserial/setserial-2.17-r3.ebuild6
4 files changed, 34 insertions, 4 deletions
diff --git a/sys-apps/setserial/ChangeLog b/sys-apps/setserial/ChangeLog
index 3170ca821e83..cb62b4e142bf 100644
--- a/sys-apps/setserial/ChangeLog
+++ b/sys-apps/setserial/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/setserial
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/ChangeLog,v 1.11 2007/02/09 08:32:15 flameeyes Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/ChangeLog,v 1.12 2007/04/03 05:15:20 vapier Exp $
+
+ 03 Apr 2007; Mike Frysinger <vapier@gentoo.org>
+ +files/setserial-2.17-build.patch, +files/setserial-2.17-headers.patch,
+ setserial-2.17-r3.ebuild:
+ Include proper headers and respect LDFLAGS.
09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
Regenerate digest in Manifest2 format.
diff --git a/sys-apps/setserial/files/setserial-2.17-build.patch b/sys-apps/setserial/files/setserial-2.17-build.patch
new file mode 100644
index 000000000000..ef5c18994bb0
--- /dev/null
+++ b/sys-apps/setserial/files/setserial-2.17-build.patch
@@ -0,0 +1,11 @@
+--- Makefile.in
++++ Makefile.in
+@@ -20,7 +20,7 @@
+ all: setserial setserial.cat
+
+ setserial: setserial.c
+- $(CC) $(CFLAGS) $(DEFS) $(INCS) setserial.c -o setserial
++ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(INCS) setserial.c -o setserial
+
+ setserial.cat: setserial.8
+ nroff -man setserial.8 > setserial.cat
diff --git a/sys-apps/setserial/files/setserial-2.17-headers.patch b/sys-apps/setserial/files/setserial-2.17-headers.patch
new file mode 100644
index 000000000000..a6d5f38e3e60
--- /dev/null
+++ b/sys-apps/setserial/files/setserial-2.17-headers.patch
@@ -0,0 +1,12 @@
+--- setserial.c
++++ setserial.c
+@@ -15,6 +15,9 @@
+ #include <termios.h>
+ #include <string.h>
+ #include <errno.h>
++#include <stdlib.h>
++#include <unistd.h>
++#include <sys/ioctl.h>
+
+ #ifdef HAVE_ASM_IOCTLS_H
+ #include <asm/ioctls.h>
diff --git a/sys-apps/setserial/setserial-2.17-r3.ebuild b/sys-apps/setserial/setserial-2.17-r3.ebuild
index f022ade20bc7..a7a459d3cb5d 100644
--- a/sys-apps/setserial/setserial-2.17-r3.ebuild
+++ b/sys-apps/setserial/setserial-2.17-r3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/setserial-2.17-r3.ebuild,v 1.1 2005/02/21 15:53:03 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/setserial-2.17-r3.ebuild,v 1.2 2007/04/03 05:15:20 vapier Exp $
inherit eutils
@@ -19,6 +19,8 @@ src_unpack() {
cd "${S}"
epatch "${FILESDIR}"/${P}-spelling.patch
epatch "${FILESDIR}"/${P}-manpage-updates.patch
+ epatch "${FILESDIR}"/${P}-headers.patch
+ epatch "${FILESDIR}"/${P}-build.patch
}
src_compile() {