From owner-svn-ports-all@freebsd.org Tue Aug 25 12:27:35 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A94533C9B8E; Tue, 25 Aug 2020 12:27:35 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BbStb3zFQz4K3J; Tue, 25 Aug 2020 12:27:35 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6BB5A296FA; Tue, 25 Aug 2020 12:27:35 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 07PCRZp7015797; Tue, 25 Aug 2020 12:27:35 GMT (envelope-from zeising@FreeBSD.org) Received: (from zeising@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07PCRYmw015794; Tue, 25 Aug 2020 12:27:34 GMT (envelope-from zeising@FreeBSD.org) Message-Id: <202008251227.07PCRYmw015794@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zeising set sender to zeising@FreeBSD.org using -f From: Niclas Zeising Date: Tue, 25 Aug 2020 12:27:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r546159 - head/print/transfig/files X-SVN-Group: ports-head X-SVN-Commit-Author: zeising X-SVN-Commit-Paths: head/print/transfig/files X-SVN-Commit-Revision: 546159 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2020 12:27:35 -0000 Author: zeising Date: Tue Aug 25 12:27:34 2020 New Revision: 546159 URL: https://svnweb.freebsd.org/changeset/ports/546159 Log: print/transfig: Fix build with -fno-common Fix the build of print/transfig when built with -fno-common, which is the default with llvm 11. MFH: 2020Q3 (implicit, -fno-common fixes, ok by joenum) Added: head/print/transfig/files/patch-fig2dev_dev_gengbx.c (contents, props changed) head/print/transfig/files/patch-fig2dev_dev_genps.c (contents, props changed) Modified: head/print/transfig/files/patch-fig2dev_fig2dev.h Added: head/print/transfig/files/patch-fig2dev_dev_gengbx.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/transfig/files/patch-fig2dev_dev_gengbx.c Tue Aug 25 12:27:34 2020 (r546159) @@ -0,0 +1,15 @@ +--- fig2dev/dev/gengbx.c.orig 2020-08-25 12:18:01 UTC ++++ fig2dev/dev/gengbx.c +@@ -594,12 +594,6 @@ int define_aperture_for_arc(F_arc *a) { + + char *cctype[] = { "none", "black", "white" }; + +-/* arrowhead arrays */ +-Point points[50]; +-int npoints; +-int arrowx1, arrowy1; /* first point of object */ +-int arrowx2, arrowy2; /* second point of object */ +- + static F_point *p; + + /** Used to generate sequence numbers. */ Added: head/print/transfig/files/patch-fig2dev_dev_genps.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/transfig/files/patch-fig2dev_dev_genps.c Tue Aug 25 12:27:34 2020 (r546159) @@ -0,0 +1,15 @@ +--- fig2dev/dev/genps.c.orig 2020-08-25 12:22:17 UTC ++++ fig2dev/dev/genps.c +@@ -96,8 +96,10 @@ static float fllx, flly, furx, fury; + /* arrowhead arrays */ + Point bpoints[50], fpoints[50]; + int nbpoints, nfpoints; +-Point bfillpoints[50], ffillpoints[50], clippoints[50]; +-int nbfillpoints, nffillpoints, nclippoints; ++Point bfillpoints[50], ffillpoints[50]; ++int nbfillpoints, nffillpoints; ++extern int nclippoints; ++extern Point clippoints[50]; + int fpntx1, fpnty1; /* first point of object */ + int fpntx2, fpnty2; /* second point of object */ + int lpntx1, lpnty1; /* last point of object */ Modified: head/print/transfig/files/patch-fig2dev_fig2dev.h ============================================================================== --- head/print/transfig/files/patch-fig2dev_fig2dev.h Tue Aug 25 12:19:46 2020 (r546158) +++ head/print/transfig/files/patch-fig2dev_fig2dev.h Tue Aug 25 12:27:34 2020 (r546159) @@ -1,6 +1,15 @@ ---- fig2dev/fig2dev.h.orig 2010-03-16 11:53:20.000000000 -0700 -+++ fig2dev/fig2dev.h 2011-06-16 22:23:27.000000000 -0700 -@@ -214,7 +214,7 @@ +--- fig2dev/fig2dev.h.orig 2010-03-16 18:53:20 UTC ++++ fig2dev/fig2dev.h +@@ -126,7 +126,7 @@ extern int PSisomap[]; + extern char *prog, *from, *to; + extern char *name; + extern double font_size; +-Boolean correct_font_size; /* use correct font size */ ++extern Boolean correct_font_size; /* use correct font size */ + extern double mag, fontmag; + extern FILE *tfp; + +@@ -214,7 +214,7 @@ struct Cmap { #endif /* MAXPATHLEN */ #endif /* PATH_MAX */