summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Węgliński <cla@gentoo.org>2009-11-17 00:10:50 +0000
committerDawid Węgliński <cla@gentoo.org>2009-11-17 00:10:50 +0000
commita777727eb63246a58282f93031efaaf12dfe3d40 (patch)
treeb12e34674d89bfb8ae276b715bdab453ae2f0d0e /net-irc
parentStable for HPPA (bug #292962). (diff)
downloadhistorical-a777727eb63246a58282f93031efaaf12dfe3d40.tar.gz
historical-a777727eb63246a58282f93031efaaf12dfe3d40.tar.bz2
historical-a777727eb63246a58282f93031efaaf12dfe3d40.zip
Pass mode to O_CREATE (bug #285374)
Package-Manager: portage-2.2_rc49/cvs/Linux x86_64
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/bitchx/ChangeLog8
-rw-r--r--net-irc/bitchx/Manifest5
-rw-r--r--net-irc/bitchx/bitchx-1.1-r4.ebuild5
-rw-r--r--net-irc/bitchx/files/1.1/bitchx-1.1-open-mode.patch33
4 files changed, 45 insertions, 6 deletions
diff --git a/net-irc/bitchx/ChangeLog b/net-irc/bitchx/ChangeLog
index 69a7580a1160..49e8a8ad918e 100644
--- a/net-irc/bitchx/ChangeLog
+++ b/net-irc/bitchx/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-irc/bitchx
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/bitchx/ChangeLog,v 1.68 2008/03/11 18:07:32 cla Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/bitchx/ChangeLog,v 1.69 2009/11/17 00:10:50 cla Exp $
+
+ 17 Nov 2009; Dawid Węgliński <cla@gentoo.org> bitchx-1.1-r4.ebuild,
+ +files/1.1/bitchx-1.1-open-mode.patch:
+ Pass mode to O_CREAT bug #285374
11 Mar 2008; Dawid Węgliński <cla@gentoo.org> bitchx-1.1-r4.ebuild:
Use sane unpack(), add lowercase symlink.
diff --git a/net-irc/bitchx/Manifest b/net-irc/bitchx/Manifest
index 9bbf3f143330..628380816df0 100644
--- a/net-irc/bitchx/Manifest
+++ b/net-irc/bitchx/Manifest
@@ -6,10 +6,11 @@ AUX 1.1/bitchx-1.1-gcc41.patch 4804 RMD160 6f145ff8d57cc25dc938df0723e5c5f1c3d93
AUX 1.1/bitchx-1.1-headers.patch 896 RMD160 84b683fe9a9c1480fc5a156b06d964cc258d3ae7 SHA1 10465fa9aca79f7ecde308dcfa605520240bed9f SHA256 650aa207bd2fd867cf9d5a9f82e614ff86ae9b6666879c1247b85b26b2e18ccb
AUX 1.1/bitchx-1.1-hebrew.patch 477 RMD160 482fdfeffc2549f728fede5882a2360269fe13eb SHA1 af143c97b5a50a369021581d6986e3f2874d7697 SHA256 5090acf698cea3a22a2a663af4914c580b3508a5bc5cabdedcb21cd3c6d27a17
AUX 1.1/bitchx-1.1-inline.patch 595 RMD160 7daee23c8ac4865b691e09f8edeaac0855ae1f5f SHA1 d3b53e9dcf0e8c1f6149d0e0a24a46a102aefdd8 SHA256 bdc0e93d26952378f422fd74a8403c9d6cf6cc139e731d9148821eac8be80d61
+AUX 1.1/bitchx-1.1-open-mode.patch 1561 RMD160 f8c49dc0a46e3b2936d07c6dc9722046fb0956af SHA1 c4094404b1cbd1cd81f8d9911300c70e0b535bbb SHA256 46fe1c6d4845261804dfc67842e83213c8d556e7101f620fea98c5851b573b20
AUX 1.1/bitchx-1.1-pbxs.patch 350 RMD160 21dc3bf478099f2c7197f3d9830d99cb68ec5411 SHA1 d63308f41ef5d910969f430520f0f0c0b0dfdde2 SHA256 64a3c7628ba8460924b81243d3052203b841583eb6e0306812a5e825db22ee2c
AUX BitchX-64bit.patch 1135 RMD160 645e192d449ac5bae976e105797cc561b78950b7 SHA1 91386fd2e664090ca54c62c0dd4d0716ca95fda1 SHA256 759670da659d826d4b109f136bbe3b3222b064af78822f3218fd9490d696099e
AUX fPIC.patch 16020 RMD160 f5d74dbce125e6a453d0cfed0ba0de380e23ee58 SHA1 b1318d59dcde51e8aece1e82becf96d52e9e8fae SHA256 cf57831c0f75d00b97582442e664cf77602ce9e0ef057685bea2084012da2163
DIST ircii-pana-1.1-final.tar.gz 2532476 RMD160 4105de2587964146e2391a26a8a16e3d0059a93f SHA1 b25635b62c7ff905b6492a4aaa88c43b5aa164f8 SHA256 7464cd75a10f2d117a10cf0184e5d4b9ece44de03a226402c17bdd3f2c7eca57
-EBUILD bitchx-1.1-r4.ebuild 2340 RMD160 3c758afed3ba4879ba6fb0c8cb490c63b35477aa SHA1 244141f08688a8d8937b89f28c6215a9e5c88e03 SHA256 588d2eb438d7b2073d1b51e08fe8cbc655548639ab81d8eebca54538b72de9dc
-MISC ChangeLog 10610 RMD160 05cec4725432f0fe2b7da14c364984b7e2f52dd1 SHA1 25992436a76f29512b180d6392c26ca0131d978f SHA256 dbf6c5cd577c95fe97901a4e56038365ae4cd42bc9ad5b123b0ace4d880a96f2
+EBUILD bitchx-1.1-r4.ebuild 2389 RMD160 45131f0a4f36e0d807587000afe6d1b68a7c53e7 SHA1 36beb807924742ef069869a1e0723b30799b65df SHA256 d66b13e8eab56327de389ce668b40d050e5cfd542a79b83507f6c277828f631f
+MISC ChangeLog 10759 RMD160 f214a57e0e74af2e26583217ca54f488900e3345 SHA1 08d2aae72b71bd336fe807b092fe978710250450 SHA256 948d6463c8cc48da168ca3ded9b53b0b5bc6a633a2afd2cdfada0849cd07f958
MISC metadata.xml 160 RMD160 279429d1df694561fc2b163cb81c09387b9d940c SHA1 97da1b72eecc5585c65717da08eaccc9bc1cf7cd SHA256 5e058419199e306612929b80a996e3d16c6b20de674a56bb60558d3d36524fe2
diff --git a/net-irc/bitchx/bitchx-1.1-r4.ebuild b/net-irc/bitchx/bitchx-1.1-r4.ebuild
index 6fd6843eebb5..5a56096f83fd 100644
--- a/net-irc/bitchx/bitchx-1.1-r4.ebuild
+++ b/net-irc/bitchx/bitchx-1.1-r4.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 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/bitchx/bitchx-1.1-r4.ebuild,v 1.4 2008/03/11 18:07:32 cla Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/bitchx/bitchx-1.1-r4.ebuild,v 1.5 2009/11/17 00:10:50 cla Exp $
inherit flag-o-matic eutils
@@ -30,6 +30,7 @@ src_unpack() {
epatch "${FILESDIR}"/${PV}/${P}-inline.patch
epatch "${FILESDIR}"/${PV}/${P}-headers.patch
epatch "${FILESDIR}"/${PV}/${P}-build.patch
+ epatch "${FILESDIR}"/${PV}/${P}-open-mode.patch
epatch "${FILESDIR}"/fPIC.patch
epatch "${FILESDIR}"/BitchX-64bit.patch
diff --git a/net-irc/bitchx/files/1.1/bitchx-1.1-open-mode.patch b/net-irc/bitchx/files/1.1/bitchx-1.1-open-mode.patch
new file mode 100644
index 000000000000..1eeba358eb30
--- /dev/null
+++ b/net-irc/bitchx/files/1.1/bitchx-1.1-open-mode.patch
@@ -0,0 +1,33 @@
+diff -Naur BitchX.old/source/commands2.c BitchX/source/commands2.c
+--- BitchX.old/source/commands2.c 2003-04-11 03:09:07.000000000 +0200
++++ BitchX/source/commands2.c 2009-11-17 00:51:56.000000000 +0100
+@@ -2575,7 +2575,7 @@
+ {
+ char buf[BIG_BUFFER_SIZE+1];
+ sprintf(buf, socket_path, port);
+- if ((u = open(buf, O_CREAT|O_WRONLY)) != -1)
++ if ((u = open(buf, O_CREAT|O_WRONLY, 0644)) != -1)
+ {
+ chmod(buf, SOCKMODE);
+ chown(buf, getuid(), getgid());
+diff -Naur BitchX.old/source/dcc.c BitchX/source/dcc.c
+--- BitchX.old/source/dcc.c 2003-04-11 03:09:07.000000000 +0200
++++ BitchX/source/dcc.c 2009-11-17 00:52:56.000000000 +0100
+@@ -1818,7 +1818,7 @@
+ flags |= DCC_ACTIVE;
+ set_socketflags(new_s, flags);
+ set_socketinfo(new_s, n);
+- if ((n->file = open(n->filename, O_RDONLY | O_BINARY)) == -1)
++ if ((n->file = open(n->filename, O_RDONLY | O_BINARY, 0644)) == -1)
+ {
+ erase_dcc_info(new_s, 1, "%s", convert_output_format("$G %RDCC%n Unable to open $0: $1-", "%s %s", n->filename, errno ? strerror(errno) : "Unknown Host"));
+ close_socketread(new_s);
+@@ -2273,7 +2273,7 @@
+ tmp = m_strdup(new->filename);
+ if (!(fullname = expand_twiddle(tmp)))
+ malloc_strcpy(&fullname, tmp);
+- if ((new->file = open(fullname, O_WRONLY | O_CREAT | O_BINARY)) != -1)
++ if ((new->file = open(fullname, O_WRONLY | O_CREAT | O_BINARY, 0644)) != -1)
+ {
+ if ((new = dcc_create(nick, new->filename, passwd, 0, port? atol(port) : 0, DCC_REFILEREAD, (tdcc?DCC_TDCC:0) | DCC_TWOCLIENTS|DCC_OFFER, start_dcc_get)))
+ new->blocksize = blocksize;