FreeBSD Bugzilla – Attachment 237894 Details for
Bug 267594
net/traff: fix build with -fno-common
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
net/traff: fix build with -fno-common
0001-net-traff-fix-build-with-fno-common.patch (text/plain), 2.45 KB, created by
Robert Clausecker
on 2022-11-06 12:56:46 UTC
(
hide
)
Description:
net/traff: fix build with -fno-common
Filename:
MIME Type:
Creator:
Robert Clausecker
Created:
2022-11-06 12:56:46 UTC
Size:
2.45 KB
patch
obsolete
>From d1296e02a9ed6a0986f37b742c277e7febfd8ccf Mon Sep 17 00:00:00 2001 >From: Robert Clausecker <fuz@fuz.su> >Date: Sun, 6 Nov 2022 13:24:07 +0100 >Subject: [PATCH] net/traff: fix build with -fno-common > >While we are at it: > > - define LICENSE > - fix missing LIB_DEPENDS on libargp.so >--- > net/traff/Makefile | 9 +++++---- > net/traff/files/patch-readconfig.c | 11 +++++++++++ > net/traff/files/patch-readconfig.h | 12 ++++++++++-- > 3 files changed, 26 insertions(+), 6 deletions(-) > create mode 100644 net/traff/files/patch-readconfig.c > >diff --git a/net/traff/Makefile b/net/traff/Makefile >index 70c12cc5ad79..a75fb9916df9 100644 >--- a/net/traff/Makefile >+++ b/net/traff/Makefile >@@ -1,16 +1,17 @@ > PORTNAME= traff > PORTVERSION= 0.7 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= net net-mgmt > MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} > > MAINTAINER= daniel@freebsd.ro > COMMENT= Libpcab based fast traffic accounting program >+WWW= https://sourceforge.net/projects/traff > >-BROKEN_FreeBSD_13= ld: error: duplicate symbol: conf_file >-BROKEN_FreeBSD_14= ld: error: duplicate symbol: conf_file >+LICENSE= GPLv2 >+LICENSE_FILE= ${WRKSRC}/COPYING > >-BUILD_DEPENDS= ${LOCALBASE}/include/argp.h:devel/argp-standalone >+LIB_DEPENDS= libargp.so:devel/argp-standalone > > USES= gmake > USE_RC_SUBR= traff >diff --git a/net/traff/files/patch-readconfig.c b/net/traff/files/patch-readconfig.c >new file mode 100644 >index 000000000000..1d89296124ff >--- /dev/null >+++ b/net/traff/files/patch-readconfig.c >@@ -0,0 +1,11 @@ >+--- readconfig.c.orig 2022-11-06 12:02:53 UTC >++++ readconfig.c >+@@ -23,6 +23,8 @@ >+ >+ #define WHITESPACE " \t\r\n" >+ >++char conf_file[]; >++ >+ typedef enum { >+ // oSQL, >+ oBadOption,oDevices,oPeriod,oCat, >diff --git a/net/traff/files/patch-readconfig.h b/net/traff/files/patch-readconfig.h >index 0f0af5b4f64f..15c31d3ae1c8 100644 >--- a/net/traff/files/patch-readconfig.h >+++ b/net/traff/files/patch-readconfig.h >@@ -1,5 +1,5 @@ >---- readconfig.h.orig 2009-11-10 20:55:07.000000000 -0500 >-+++ readconfig.h 2011-05-26 21:06:12.000000000 -0400 >+--- readconfig.h.orig 2009-11-11 01:55:07 UTC >++++ readconfig.h > @@ -13,7 +13,7 @@ > #endif > >@@ -9,3 +9,11 @@ > #endif > > #include <stdlib.h> >+@@ -118,6 +118,6 @@ int config_read_config_file(t_config * config,char * f >+ void config_destroy(t_config * config); >+ char * get_dump_type_str(e_dumptypes dumptype); >+ >+-char conf_file[FILELENGTH]; >++extern char conf_file[FILELENGTH]; >+ >+ #endif >-- >2.38.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fuz
:
maintainer-approval?
(
daniel
)
Actions:
View
|
Diff
Attachments on
bug 267594
: 237894