diff options
author | rafan <rafan@FreeBSD.org> | 2007-11-13 09:19:23 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-11-13 09:19:23 +0800 |
commit | 57cc0a824a0c5764e66763887ac145455fcfd82a (patch) | |
tree | ca5c369cff2533bace95eaa15ceee70f178535d7 /net-im | |
parent | 36f8808f49c0a1d337163417d371844f022a7ae2 (diff) | |
download | freebsd-ports-gnome-57cc0a824a0c5764e66763887ac145455fcfd82a.tar.gz freebsd-ports-gnome-57cc0a824a0c5764e66763887ac145455fcfd82a.tar.zst freebsd-ports-gnome-57cc0a824a0c5764e66763887ac145455fcfd82a.zip |
- Unbreak after objformat removal on 7.x and above
- Fix some compiler warnings but they are not fatal to gcc 4.x
PR: ports/118004 (based on)
Submitted by: Pietro Cerutti <gahr at gahr.ch>
Approved by: portmgr (pav)
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/gtkyahoo/Makefile | 11 | ||||
-rw-r--r-- | net-im/gtkyahoo/files/patch-gtkyahoo.c | 10 | ||||
-rw-r--r-- | net-im/gtkyahoo/files/patch-libyahoo_libyahoo.c | 30 |
3 files changed, 43 insertions, 8 deletions
diff --git a/net-im/gtkyahoo/Makefile b/net-im/gtkyahoo/Makefile index b2b37233ded6..3fa84d3d5fab 100644 --- a/net-im/gtkyahoo/Makefile +++ b/net-im/gtkyahoo/Makefile @@ -22,14 +22,9 @@ GNU_CONFIGURE= yes USE_LDCONFIG= yes ONLY_FOR_ARCHS= i386 -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - post-patch: - @${REINPLACE_CMD} -e '/@INSTALL@/s/$$INSTALL/${INSTALL}/' \ + @${REINPLACE_CMD} -e '/@INSTALL@/s/$$INSTALL/${INSTALL}/; \ + s/echo aout/echo elf/' \ ${WRKSRC}/libyahoo/configure -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/net-im/gtkyahoo/files/patch-gtkyahoo.c b/net-im/gtkyahoo/files/patch-gtkyahoo.c new file mode 100644 index 000000000000..35cd492a7939 --- /dev/null +++ b/net-im/gtkyahoo/files/patch-gtkyahoo.c @@ -0,0 +1,10 @@ +--- gtkyahoo.c.orig 2007-11-12 15:21:19.000000000 +0100 ++++ gtkyahoo.c 2007-11-12 15:21:22.000000000 +0100 +@@ -1456,6 +1456,7 @@ + int setgeom = 0; + int curarg = 1; + GtkAllocation initial_geometry; ++ initial_geometry.x = initial_geometry.y = initial_geometry.width = initial_geometry.height = 0; + + DBG_Open(NULL); + diff --git a/net-im/gtkyahoo/files/patch-libyahoo_libyahoo.c b/net-im/gtkyahoo/files/patch-libyahoo_libyahoo.c new file mode 100644 index 000000000000..44a1d5aba1ea --- /dev/null +++ b/net-im/gtkyahoo/files/patch-libyahoo_libyahoo.c @@ -0,0 +1,30 @@ +--- libyahoo/libyahoo.c.orig 2007-11-12 15:12:19.000000000 +0100 ++++ libyahoo/libyahoo.c 2007-11-12 15:13:33.000000000 +0100 +@@ -746,15 +746,15 @@ + static char *yahoo_urlencode(const char *instr) + { + register int ipos, bpos; //input str pos., buffer pos. +- static unsigned char *str = NULL; ++ static char *str = NULL; + int len = strlen(instr); + int tmp; + + //attempt to reuse buffer + if (NULL == str) +- str = (unsigned char *) malloc(3 * len + 1); ++ str = malloc(3 * len + 1); + else +- str = (unsigned char *) realloc(str, 3 * len + 1); ++ str = realloc(str, 3 * len + 1); + + //malloc, realloc failed ? + if (errno == ENOMEM) +@@ -791,7 +791,7 @@ + + //free extra alloc'ed mem. + tmp = strlen(str); +- str = (unsigned char *) realloc(str, tmp + 1); ++ str = realloc(str, tmp + 1); + + return (str); + } |