aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-12-15 03:08:30 +0800
committermiwi <miwi@FreeBSD.org>2007-12-15 03:08:30 +0800
commit3bba499f91e63bd180ced9c273caa67bb233a965 (patch)
tree8f898fe928e1dde9d0929521c1ad53f15e1d8a1a /irc
parent0a41a4bf7bf4653356f4f8e58e7349a069f3b9e1 (diff)
downloadfreebsd-ports-graphics-3bba499f91e63bd180ced9c273caa67bb233a965.tar.gz
freebsd-ports-graphics-3bba499f91e63bd180ced9c273caa67bb233a965.tar.zst
freebsd-ports-graphics-3bba499f91e63bd180ced9c273caa67bb233a965.zip
- Fix build with gcc 4.2
- Pass maintainership to submitter PR: 118635 Submitted by: Pietro Cerutti <gahr@gahr.ch>
Diffstat (limited to 'irc')
-rw-r--r--irc/trickyirc/Makefile10
-rw-r--r--irc/trickyirc/files/patch-core-string_gapsearch.c9
-rw-r--r--irc/trickyirc/files/patch-core-threading_configload.c80
-rw-r--r--irc/trickyirc/files/patch-core-threading_core.c11
-rw-r--r--irc/trickyirc/files/patch-tricky_accept.c11
-rw-r--r--irc/trickyirc/files/patch-tricky_ircservermanager.c11
-rw-r--r--irc/trickyirc/files/patch-tricky_main.c11
7 files changed, 135 insertions, 8 deletions
diff --git a/irc/trickyirc/Makefile b/irc/trickyirc/Makefile
index 006ed08f7a3..94a4acc55bb 100644
--- a/irc/trickyirc/Makefile
+++ b/irc/trickyirc/Makefile
@@ -12,19 +12,13 @@ CATEGORIES= irc
MASTER_SITES= http://www.leb.net/~troll/
DISTNAME= TrickyIRC-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= gahr@gahr.ch
COMMENT= Allows client independent detaching and reattaching of IRC sessions
MAKEFILE= GNUmakefile
WRKSRC= ${WRKDIR}/trickyirc
USE_GMAKE= YES
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Does not compile with GCC 4.2
-.endif
-
post-install:
@ ${MKDIR} ${PREFIX}/share/doc/TrickyIRC
# @ ${MKDIR} ${PREFIX}/share/examples/TrickyIRC
@@ -35,4 +29,4 @@ post-install:
@${STRIP_CMD} ${PREFIX}/bin/trickyirc
@${CAT} ${PKGMESSAGE} | ${SED} -e s:/usr/local:${PREFIX}:
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/irc/trickyirc/files/patch-core-string_gapsearch.c b/irc/trickyirc/files/patch-core-string_gapsearch.c
new file mode 100644
index 00000000000..1ea834492a8
--- /dev/null
+++ b/irc/trickyirc/files/patch-core-string_gapsearch.c
@@ -0,0 +1,9 @@
+--- core/string/gapsearch.c.orig 2007-12-13 00:34:15.000000000 +0100
++++ core/string/gapsearch.c 2007-12-13 00:34:31.000000000 +0100
+@@ -1,5 +1,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+
+ /*
+
diff --git a/irc/trickyirc/files/patch-core-threading_configload.c b/irc/trickyirc/files/patch-core-threading_configload.c
new file mode 100644
index 00000000000..a1d64f92260
--- /dev/null
+++ b/irc/trickyirc/files/patch-core-threading_configload.c
@@ -0,0 +1,80 @@
+--- core/threading/configload.c.orig 2007-12-13 00:35:55.000000000 +0100
++++ core/threading/configload.c 2007-12-13 00:39:37.000000000 +0100
+@@ -55,7 +55,7 @@
+ }
+ if ( c == ']' )
+ {
+- heading[headingc] = NULL;
++ heading[headingc] = '\0';
+ break;
+ }
+ }
+@@ -74,7 +74,7 @@
+ c = fgetc(in);
+ if (( c == 0x0a ) || ( c == EOF ))
+ {
+- value[valuec] = NULL;
++ value[valuec] = '\0';
+ break;
+ }
+ }
+@@ -130,27 +130,27 @@
+ int quote=0; /* Weather or not we're in the middle of a quoted block */
+
+ /* Reset everything */
+-value1[0] = NULL;
+-value2[0] = NULL;
+-value3[0] = NULL;
+-value4[0] = NULL;
+-path[0] = NULL;
++value1[0] = '\0';
++value2[0] = '\0';
++value3[0] = '\0';
++value4[0] = '\0';
++path[0] = '\0';
+
+ pos = 0;
+ while ( 1 )
+ {
+- if ( line[pos] == NULL )
++ if ( line[pos] == '\0')
+ {
+ if ( breaks == 0 )
+- path[pathc] = NULL;
++ path[pathc] = '\0';
+ if ( breaks == 1 )
+- value1[valuec] = NULL;
++ value1[valuec] = '\0';
+ if ( breaks == 2 )
+- value2[valuec] = NULL;
++ value2[valuec] = '\0';
+ if ( breaks == 3 )
+- value3[valuec] = NULL;
++ value3[valuec] = '\0';
+ if ( breaks == 4 )
+- value4[valuec] = NULL;
++ value4[valuec] = '\0';
+ break;
+ }
+ if (( line[pos] == '#' ) && ( quote == 0 ))
+@@ -184,15 +184,15 @@
+ {
+ /* hit dead space, inc the break count, and zing to the next text */
+ if ( breaks == 0 )
+- path[pathc] = NULL;
++ path[pathc] = '\0';
+ if ( breaks == 1 )
+- value1[valuec] = NULL;
++ value1[valuec] = '\0';
+ if ( breaks == 2 )
+- value2[valuec] = NULL;
++ value2[valuec] = '\0';
+ if ( breaks == 3 )
+- value3[valuec] = NULL;
++ value3[valuec] = '\0';
+ if ( breaks == 4 )
+- value4[valuec] = NULL;
++ value4[valuec] = '\0';
+ while ( 1 )
+ {
+ pos++;
diff --git a/irc/trickyirc/files/patch-core-threading_core.c b/irc/trickyirc/files/patch-core-threading_core.c
new file mode 100644
index 00000000000..b4b6e52e90f
--- /dev/null
+++ b/irc/trickyirc/files/patch-core-threading_core.c
@@ -0,0 +1,11 @@
+--- core/threading/core.c.orig 2007-12-13 00:41:24.000000000 +0100
++++ core/threading/core.c 2007-12-13 00:41:47.000000000 +0100
+@@ -17,7 +17,7 @@
+ while ( buff[i] == head[i] )
+ i++;
+
+-while ( buff[i] != NULL )
++while ( buff[i] != '\0' )
+ {
+ SHRet[k] = buff[i];
+ i++;
diff --git a/irc/trickyirc/files/patch-tricky_accept.c b/irc/trickyirc/files/patch-tricky_accept.c
new file mode 100644
index 00000000000..7a2543f2fed
--- /dev/null
+++ b/irc/trickyirc/files/patch-tricky_accept.c
@@ -0,0 +1,11 @@
+--- tricky/accept.c.orig 2007-12-13 00:45:25.000000000 +0100
++++ tricky/accept.c 2007-12-13 00:46:50.000000000 +0100
+@@ -22,7 +22,7 @@
+ int port;
+ struct sockaddr_in myAddr;
+ struct sockaddr_in *remAddr;
+-int remAddrSize=0;
++socklen_t remAddrSize=0;
+ pthread_attr_t attr, *attrPtr = &attr;
+
+ RegisterThread("Arbiter","Manages the client and server communication",TRUE);
diff --git a/irc/trickyirc/files/patch-tricky_ircservermanager.c b/irc/trickyirc/files/patch-tricky_ircservermanager.c
new file mode 100644
index 00000000000..97b6bcf9b6d
--- /dev/null
+++ b/irc/trickyirc/files/patch-tricky_ircservermanager.c
@@ -0,0 +1,11 @@
+--- tricky/ircservermanager.c.orig 2007-12-13 01:01:29.000000000 +0100
++++ tricky/ircservermanager.c 2007-12-13 01:01:44.000000000 +0100
+@@ -71,7 +71,7 @@
+ Error(1,"Server could not be resolved.");
+ break;
+ }
+- strcpy(ServerAddress,addr2ascii(PF_INET,hostn->h_addr,sizeof(hostn->h_addr),NULL));
++ strcpy(ServerAddress,inet_ntoa(*(struct in_addr *)hostn->h_addr));
+ memset((char *)&SrvAddr,0,sizeof(SrvAddr));
+
+ SrvAddr.sin_family = PF_INET;
diff --git a/irc/trickyirc/files/patch-tricky_main.c b/irc/trickyirc/files/patch-tricky_main.c
new file mode 100644
index 00000000000..8dcef62fa7e
--- /dev/null
+++ b/irc/trickyirc/files/patch-tricky_main.c
@@ -0,0 +1,11 @@
+--- tricky/main.c.orig 2007-12-13 00:44:22.000000000 +0100
++++ tricky/main.c 2007-12-13 00:44:01.000000000 +0100
+@@ -59,7 +59,7 @@
+ VerboseOn = 1;
+ }
+
+-if ( Startup() != NULL ) /* Startup failed if it returns anything but NULL */
++if ( Startup() ) /* Startup failed if it returns anything but 0 */
+ {
+ printf("\nStartup Failed ... Exiting.\n");
+ exit(1);