summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-04-03 15:44:29 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-04-03 15:44:29 +0000
commitfc1de4395262063c9bf38d63c1ae576f4878d80e (patch)
treec51952f252eb497a8ba013ca97d091d64c5e04fc /net-irc
parentMarked ppc/ppc64 stable for bug #262744. (diff)
downloadgentoo-2-fc1de4395262063c9bf38d63c1ae576f4878d80e.tar.gz
gentoo-2-fc1de4395262063c9bf38d63c1ae576f4878d80e.tar.bz2
gentoo-2-fc1de4395262063c9bf38d63c1ae576f4878d80e.zip
GCC 4.3 compile fix from Magnus Granberg, fixes #260983. Adding ~amd64 keyword.
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/iip/ChangeLog9
-rw-r--r--net-irc/iip/files/iip_open_mode.patch11
-rw-r--r--net-irc/iip/iip-1.2.ebuild18
3 files changed, 31 insertions, 7 deletions
diff --git a/net-irc/iip/ChangeLog b/net-irc/iip/ChangeLog
index c6b775cde2ae..10a632f5807d 100644
--- a/net-irc/iip/ChangeLog
+++ b/net-irc/iip/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-irc/iip
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/iip/ChangeLog,v 1.10 2007/02/09 04:24:54 flameeyes Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/iip/ChangeLog,v 1.11 2009/04/03 15:44:28 patrick Exp $
+
+ 03 Apr 2009; Patrick Lauer <patrick@gentoo.org>
+ +files/iip_open_mode.patch, iip-1.2.ebuild:
+ GCC 4.3 compile fix from Magnus Granberg, fixes #260983. Adding ~amd64
+ keyword.
09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
Regenerate digest in Manifest2 format.
diff --git a/net-irc/iip/files/iip_open_mode.patch b/net-irc/iip/files/iip_open_mode.patch
new file mode 100644
index 000000000000..6d3aec1af5ab
--- /dev/null
+++ b/net-irc/iip/files/iip_open_mode.patch
@@ -0,0 +1,11 @@
+--- src/misc/unix.c 2002-10-29 07:56:29.000000000 +0000
++++ src/misc/unix.c 2009-03-05 13:12:54.000000000 +0000
+@@ -100,7 +100,7 @@
+ s = stringCopyMany(lockfilepath, lockfileprefix, NULL);
+ s = stringJoinMany(s, intToString((int) getpid()), NULL);
+
+- fd = open(s, O_CREAT | O_EXCL | S_IWUSR);
++ fd = open(s, O_CREAT | O_EXCL ,S_IWUSR | S_IRUSR);
+ if(fd == -1) {
+ LOGERROR(stringCopyMany("unixAddLockFile: open lock file failed (", s, ")",
+ _("Error opening lockfile."), NULL))
diff --git a/net-irc/iip/iip-1.2.ebuild b/net-irc/iip/iip-1.2.ebuild
index f86147e2924d..d4c27059047c 100644
--- a/net-irc/iip/iip-1.2.ebuild
+++ b/net-irc/iip/iip-1.2.ebuild
@@ -1,6 +1,10 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/iip/iip-1.2.ebuild,v 1.8 2004/07/27 17:27:18 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/iip/iip-1.2.ebuild,v 1.9 2009/04/03 15:44:28 patrick Exp $
+
+EAPI="2"
+
+inherit eutils
MY_P="${P}-dev1"
@@ -9,7 +13,7 @@ HOMEPAGE="http://www.invisiblenet.net/iip/"
SRC_URI="mirror://sourceforge/invisibleip/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~x86 ~ppc"
+KEYWORDS="~amd64 ~x86 ~ppc"
IUSE=""
RDEPEND="virtual/libc
@@ -20,17 +24,21 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${MY_P}"
+src_prepare() {
+ epatch "${FILESDIR}/iip_open_mode.patch"
+}
+
src_compile() {
econf || die "econf failed"
sed -i \
- -e "s:-Werror::" ${S}/src/Makefile || \
+ -e "s:-Werror::" "${S}"/src/Makefile || \
die "sed Makefile failed"
emake || die "emake failed"
}
src_install() {
- make DESTDIR=${D} install || die "make install failed"
+ make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS README
}