public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-irc/eggdrop/, net-irc/eggdrop/files/
@ 2016-03-04 17:54 Amy Winston
  0 siblings, 0 replies; 2+ messages in thread
From: Amy Winston @ 2016-03-04 17:54 UTC (permalink / raw
  To: gentoo-commits

commit:     d2a5fee2955b5ea8854c4a27fd3e527e9c2c9129
Author:     Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Fri Mar  4 10:36:29 2016 +0000
Commit:     Amy Winston <amynka <AT> gentoo <DOT> org>
CommitDate: Fri Mar  4 17:43:28 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2a5fee2

net-irc/eggdrop: fix compilation with gcc-5 #571004

Backport patch from https://github.com/eggheads/eggdrop/issues/123

Package-Manager: portage-2.2.27

 net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild           |  3 +-
 .../eggdrop-1.6.21-fix-gcc5-remove-inline.patch    | 52 ++++++++++++++++++++++
 2 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild b/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild
index 22df039..f761a3b 100644
--- a/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild
+++ b/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -35,6 +35,7 @@ RDEPEND="${DEPEND}"
 S=${WORKDIR}/${MY_P}
 
 src_prepare()  {
+	epatch "${FILESDIR}/${P}-fix-gcc5-remove-inline.patch" # bug 571004
 	if use vanilla; then
 		rm -f "${WORKDIR}"/patch/[1-6]*.patch || die
 	fi

diff --git a/net-irc/eggdrop/files/eggdrop-1.6.21-fix-gcc5-remove-inline.patch b/net-irc/eggdrop/files/eggdrop-1.6.21-fix-gcc5-remove-inline.patch
new file mode 100644
index 0000000..f7bcd8b
--- /dev/null
+++ b/net-irc/eggdrop/files/eggdrop-1.6.21-fix-gcc5-remove-inline.patch
@@ -0,0 +1,52 @@
+diff --git a/src/net.c b/src/net.c
+index 68c245c..e48fb76 100644
+--- a/src/net.c
++++ b/src/net.c
+@@ -564,7 +564,7 @@ int open_address_listen(IP addr, int *port)
+ /* Returns a socket number for a listening socket that will accept any
+  * connection -- port # is returned in port
+  */
+-inline int open_listen(int *port)
++int open_listen(int *port)
+ {
+   return open_address_listen(myip[0] ? getmyip() : INADDR_ANY, port);
+ }
+diff --git a/src/proto.h b/src/proto.h
+index 117347e..e80e30b 100644
+--- a/src/proto.h
++++ b/src/proto.h
+@@ -271,7 +271,7 @@ int getsock(int);
+ void killsock(int);
+ void killtclsock(int);
+ int answer(int, char *, unsigned long *, unsigned short *, int);
+-inline int open_listen(int *);
++int open_listen(int *);
+ int open_address_listen(IP addr, int *);
+ int open_telnet(char *, int);
+ int open_telnet_dcc(int, char *, char *);
+diff --git a/src/tclhash.c b/src/tclhash.c
+index 822f920..7281ceb 100644
+--- a/src/tclhash.c
++++ b/src/tclhash.c
+@@ -109,7 +109,7 @@ static inline void tcl_bind_list_delete(tcl_bind_list_t *tl)
+   nfree(tl);
+ }
+ 
+-inline void garbage_collect_tclhash(void)
++void garbage_collect_tclhash(void)
+ {
+   tcl_bind_list_t *tl, *tl_next, *tl_prev;
+   tcl_bind_mask_t *tm, *tm_next, *tm_prev;
+diff --git a/src/tclhash.h b/src/tclhash.h
+index 4069014..3bd85a7 100644
+--- a/src/tclhash.h
++++ b/src/tclhash.h
+@@ -75,7 +75,7 @@ typedef struct tcl_bind_list_b {
+ 
+ #ifndef MAKING_MODS
+ 
+-inline void garbage_collect_tclhash(void);
++void garbage_collect_tclhash(void);
+ 
+ void init_bind(void);
+ void kill_bind(void);


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-irc/eggdrop/, net-irc/eggdrop/files/
@ 2016-03-04 17:54 Amy Winston
  0 siblings, 0 replies; 2+ messages in thread
From: Amy Winston @ 2016-03-04 17:54 UTC (permalink / raw
  To: gentoo-commits

commit:     9ca5e822de1ab3c7f2be4125a1e87c7c6c336eab
Author:     Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Fri Mar  4 12:24:10 2016 +0000
Commit:     Amy Winston <amynka <AT> gentoo <DOT> org>
CommitDate: Fri Mar  4 17:43:48 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ca5e822

net-irc/eggdrop: bump to EAPI=6, fix a QA warning

Add a patch to fix a compilation warning.
Taken from eggheads/eggdrop@7570148085cd33f12ba30897e27e6064c202f12b

Package-Manager: portage-2.2.27

 net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild              | 13 ++++++++-----
 net-irc/eggdrop/files/eggdrop-1.6.21-fix-memset.patch | 11 +++++++++++
 2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild b/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild
index f761a3b..541c9a3 100644
--- a/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild
+++ b/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=4
+EAPI=6
 
 inherit eutils
 
@@ -27,15 +27,17 @@ DEPEND="
 	sys-apps/gentoo-functions
 	!vanilla? (
 		mysql? ( virtual/mysql )
-		postgres? ( dev-db/postgresql[server] )
-		ssl? ( dev-libs/openssl )
+		postgres? ( dev-db/postgresql:*[server] )
+		ssl? ( dev-libs/openssl:0= )
 	)"
 RDEPEND="${DEPEND}"
 
 S=${WORKDIR}/${MY_P}
 
 src_prepare()  {
-	epatch "${FILESDIR}/${P}-fix-gcc5-remove-inline.patch" # bug 571004
+	# fix bug 571004 and a QA warning
+	epatch "${FILESDIR}/${P}-fix-gcc5-remove-inline.patch" \
+		"${FILESDIR}/${P}-fix-memset.patch"
 	if use vanilla; then
 		rm -f "${WORKDIR}"/patch/[1-6]*.patch || die
 	fi
@@ -46,6 +48,7 @@ src_prepare()  {
 	sed -i \
 		-e '/\$(LD)/s/-o/$(CFLAGS) $(LDFLAGS) &/' \
 		src/mod/*.mod/Makefile* src/Makefile.in || die
+	default
 }
 
 src_configure() {
@@ -98,7 +101,7 @@ src_install() {
 		src/mod/mystats.mod/tools/mystats.{conf,sql} \
 		src/mod/pgstats.mod/tools/{pgstats.conf,setup.sql}
 
-	dohtml doc/html/*.html
+	dodoc -r doc/html
 
 	dobin "${FILESDIR}"/eggdrop-installer
 	doman doc/man1/eggdrop.1

diff --git a/net-irc/eggdrop/files/eggdrop-1.6.21-fix-memset.patch b/net-irc/eggdrop/files/eggdrop-1.6.21-fix-memset.patch
new file mode 100644
index 0000000..f4d60f3
--- /dev/null
+++ b/net-irc/eggdrop/files/eggdrop-1.6.21-fix-memset.patch
@@ -0,0 +1,11 @@
+diff --git a/src/md5/md5c.c b/src/md5/md5c.c
+index 4dce058..cfdf97c 100644
+--- a/src/md5/md5c.c
++++ b/src/md5/md5c.c
+@@ -267,5 +267,5 @@ void MD5_Final(unsigned char *result, MD5_CTX *ctx)
+ 	result[14] = ctx->d >> 16;
+ 	result[15] = ctx->d >> 24;
+ 
+-	egg_memset(ctx, 0, sizeof(ctx));
++	egg_memset(ctx, 0, sizeof(*ctx));
+ }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-04 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-04 17:54 [gentoo-commits] repo/gentoo:master commit in: net-irc/eggdrop/, net-irc/eggdrop/files/ Amy Winston
  -- strict thread matches above, loose matches on Subject: below --
2016-03-04 17:54 Amy Winston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox