From nobody Mon Apr 17 09:30:35 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q0MH06bjZz45dWx; Mon, 17 Apr 2023 09:30:36 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q0MH03gS5z43m1; Mon, 17 Apr 2023 09:30:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681723836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9gMiT2zo/YDs8Q+EBTjUnKPnWDmvCm5cq0XQWG08Ia8=; b=akVsVG9goHMPGN7WrguhDjvsO5R7FLeUVNR4RTkdaR/GldNVgRkS33N0kX63vrGsIMiN5A gfdl4zlfO2jqXXAxggOA62GvKOH1FwMd5TXopy/w35HnFSz2Gqe6Sbeo0ETBKE1f0mnkrl bOc4pzyenjCA01Ze/R7RGNeI4ZDVaUfYiFLf9z6jGdE+ODB9ASOtvvPsuKeY18V7TZp5rn 0R42/PaNVAuqQGJ4WE8MU1VnCEAGRmMHG/av7+NUcFdVpYZsv+pvEKfFayHUtxllZ3pTeI hN8iuQxbqZ/kFUQmgHTKeArGU+XmxFYkgCkjQgjcw22xGEUjTYRg0xUWgShpTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681723836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9gMiT2zo/YDs8Q+EBTjUnKPnWDmvCm5cq0XQWG08Ia8=; b=C65/cG3WyTJTkUTFkStlMSGaBvIgxLoq+0MxsE9N6asq+Fc36Tgw0vihgEWqO9WWB/UWkW r923qY2fg6B9+07LcG6FPI+yDijCj/IBriVzsNHwGsvQ6XiKZn0wt8JzXwIoSwaMijFDyz VKYU1fxeMedTGo9ZGUtmfhfHty7Amrk59jBX6kz8AMlrstwcjt57K12ftWA9VC7NYnDsiX +n12tiTMZHiYbQwLdF+fdc36QFiF0DAbhMSoYxkJYIt67aJyyxNFTybp6Kdmu28bDQ2apH FZAmJPYP43Aid/WXLG+uEoEBmWeYIPjAgpCx2wXK+PXzIL/UsYi4Jav3Gj6pIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681723836; a=rsa-sha256; cv=none; b=Ang7Wllq3xtKl0tO/PAk8O5aHdLDy/RCIEADNzZFMIvgtwnMdq38R37DMvrduyxeB/ucxy fvP1NNJSZqa//dfkJg2qYCZVoJPwNj7MvzLaa9D8p7Of96fdqvGgtqsk5Jy6gJXIgOmxbB hdRh1rE+v+nmVDzEGWFbq4VGhMXo2UwNU+TlnOOj5V47QofSgCgQGyzVCvr//ejFFppE8N Oh9yat+l+Na7OMovyZb+uIe4aRevPK4FVgfOa/ybD64fed7fYQu8tAGVOEHoDW8Hf7AOMB iXL8acPedOrS9hK5EsGyrgDdEvkXvnipKcME3/OBwvSB1CgZNIndvo3T2FGAAw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q0MGz38t5zNdN; Mon, 17 Apr 2023 09:30:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33H9UZcT051618; Mon, 17 Apr 2023 09:30:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33H9UZo7051617; Mon, 17 Apr 2023 09:30:35 GMT (envelope-from git) Date: Mon, 17 Apr 2023 09:30:35 GMT Message-Id: <202304170930.33H9UZo7051617@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 30ff65301551 - main - math/p5-Text-AsciiTeX: fix build with -fno-common List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 30ff65301551958684cf424fb40a7021e2e4fbd7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=30ff65301551958684cf424fb40a7021e2e4fbd7 commit 30ff65301551958684cf424fb40a7021e2e4fbd7 Author: Robert Clausecker AuthorDate: 2023-04-16 15:13:20 +0000 Commit: Robert Clausecker CommitDate: 2023-04-17 09:27:26 +0000 math/p5-Text-AsciiTeX: fix build with -fno-common Turn a variable definition in a header file into a declaration and move the definition to a source file. This fixes the build on FreeBSD 13+. Approved by: portmgr (build fix blanket) --- math/p5-Text-AsciiTeX/Makefile | 5 +---- math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c | 10 ++++++++++ .../files/patch-src_asciitex_asciiTeX__struct.h | 9 +++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/math/p5-Text-AsciiTeX/Makefile b/math/p5-Text-AsciiTeX/Makefile index 691ce548fa96..965ece1af536 100644 --- a/math/p5-Text-AsciiTeX/Makefile +++ b/math/p5-Text-AsciiTeX/Makefile @@ -1,6 +1,6 @@ PORTNAME= Text-AsciiTeX PORTVERSION= 0.05 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -9,9 +9,6 @@ MAINTAINER= perl@FreeBSD.org COMMENT= Convert (La)TeX formulas to ASCII art WWW= https://metacpan.org/release/Text-AsciiTeX -BROKEN_FreeBSD_13= error: duplicate symbol: SYNTAX_ERR_FLAG -BROKEN_FreeBSD_14= error: duplicate symbol: SYNTAX_ERR_FLAG - LICENSE= ART10 GPLv1+ LICENSE_COMB= dual diff --git a/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c b/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c new file mode 100644 index 000000000000..32053fdb8d10 --- /dev/null +++ b/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c @@ -0,0 +1,10 @@ +--- src/asciitex/asciiTeX.c.orig 2023-04-16 15:12:02 UTC ++++ src/asciitex/asciiTeX.c +@@ -38,6 +38,7 @@ + #include "dim.h" + #include "utils.h" + ++STAT SYNTAX_ERR_FLAG; + char ** messages; + int Nmes; + int Nall; diff --git a/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX__struct.h b/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX__struct.h new file mode 100644 index 000000000000..519eec7a3bcc --- /dev/null +++ b/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX__struct.h @@ -0,0 +1,9 @@ +--- src/asciitex/asciiTeX_struct.h.orig 2023-04-16 15:11:41 UTC ++++ src/asciitex/asciiTeX_struct.h +@@ -56,5 +56,5 @@ struct Tgraph { /* the order of fields is important- + }; + + typedef enum {S_NOERR, S_WARN, S_ERR} STAT; +-STAT SYNTAX_ERR_FLAG; ++extern STAT SYNTAX_ERR_FLAG; + #endif