ports/117203: [PATCH] net-p2p/lopster: Fix BROKEN for GCC 4.2
Naram Qashat
cyberbotx at cyberbotx.com
Mon Oct 15 11:50:02 UTC 2007
>Number: 117203
>Category: ports
>Synopsis: [PATCH] net-p2p/lopster: Fix BROKEN for GCC 4.2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 15 11:50:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Naram Qashat
>Release: FreeBSD 6.2-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD kirby.cyberbotx.com 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #12: Sun Oct 14 16:14:35 EDT 2007
>Description:
The included patch fixes the error when compiling with GCC 4.2, tested
using lang/gcc42 and setting CC="gcc42".
Added file(s):
- files/patch-src-log.c
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- lopster-1.2.2_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net-p2p/lopster/Makefile /kirby/shared/ports/lopster/Makefile
--- /usr/ports/net-p2p/lopster/Makefile Mon May 28 16:33:12 2007
+++ /kirby/shared/ports/lopster/Makefile Mon Oct 15 07:36:07 2007
@@ -7,7 +7,7 @@
PORTNAME= lopster
PORTVERSION= 1.2.2
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net-p2p
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://lopster.sourceforge.net/download/
@@ -24,10 +24,6 @@
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Broken with gcc 4.2
-.endif
.if exists(${LOCALBASE}/lib/libogg.so.4)
WITH_OGG= yes
diff -ruN --exclude=CVS /usr/ports/net-p2p/lopster/files/patch-src-log.c /kirby/shared/ports/lopster/files/patch-src-log.c
--- /usr/ports/net-p2p/lopster/files/patch-src-log.c Wed Dec 31 19:00:00 1969
+++ /kirby/shared/ports/lopster/files/patch-src-log.c Mon Oct 15 07:35:29 2007
@@ -0,0 +1,12 @@
+--- src/log.c.orig Mon Oct 15 07:33:46 2007
++++ src/log.c Mon Oct 15 07:33:46 2007
+@@ -148,7 +148,8 @@
+ g_free(log);
+ }
+ g_list_free(net?net->logs:other_logs);
+- net?net->logs:other_logs = NULL;
++ if (net) net->logs = NULL;
++ else other_logs = NULL;
+ }
+
+ void log_file_destroy(log_file_t* lf) {
--- lopster-1.2.2_4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list