Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Oct 2020 19:24:44 +0000 (UTC)
From:      =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r550867 - in head/devel/libnaji: . files
Message-ID:  <202010011924.091JOiQs037428@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Thu Oct  1 19:24:44 2020
New Revision: 550867
URL: https://svnweb.freebsd.org/changeset/ports/550867

Log:
  Fix build of dependent port najitool
  
  Multiple global variables named buffer caused link errors when building
  with -fno-common by declaring these arrays as static.

Added:
  head/devel/libnaji/files/
  head/devel/libnaji/files/patch-naji__db.c   (contents, props changed)
  head/devel/libnaji/files/patch-naji__len.c   (contents, props changed)
Modified:
  head/devel/libnaji/Makefile

Modified: head/devel/libnaji/Makefile
==============================================================================
--- head/devel/libnaji/Makefile	Thu Oct  1 19:02:23 2020	(r550866)
+++ head/devel/libnaji/Makefile	Thu Oct  1 19:24:44 2020	(r550867)
@@ -4,11 +4,15 @@
 PORTNAME=	libnaji
 PORTVERSION=	0.6.4
 DISTVERSIONSUFFIX=	.src
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	SF/najitool/${PORTNAME}/${PORTVERSION}
 
 MAINTAINER=	rodrigo@FreeBSD.org
 COMMENT=	Library that generates, converts, and filters files
+
+LICENSE=	PD
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 MAKE_ARGS=	cc="${CC}"
 

Added: head/devel/libnaji/files/patch-naji__db.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libnaji/files/patch-naji__db.c	Thu Oct  1 19:24:44 2020	(r550867)
@@ -0,0 +1,11 @@
+--- naji_db.c.orig	2011-09-03 05:33:13 UTC
++++ naji_db.c
+@@ -20,7 +20,7 @@
+ 
+ #include "libnaji.h"
+ 
+-char buffer[306];
++static char buffer[306];
+ 
+ FILE *naji_db_file;
+ 

Added: head/devel/libnaji/files/patch-naji__len.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libnaji/files/patch-naji__len.c	Thu Oct  1 19:24:44 2020	(r550867)
@@ -0,0 +1,11 @@
+--- naji_len.c.orig	2011-09-03 05:33:13 UTC
++++ naji_len.c
+@@ -21,7 +21,7 @@
+ #include "libnaji.h"
+ 
+ 
+-char buffer[1024];
++static char buffer[1024];
+ char *end;
+ 
+ double meters=0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010011924.091JOiQs037428>