From nobody Tue Feb 11 13:26:43 2025 X-Original-To: dev-commits-ports-all@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 4Ysj041MjBz5nZVl; Tue, 11 Feb 2025 13:26:44 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ysj036026z3vW8; Tue, 11 Feb 2025 13:26:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739280403; 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=Kd+MQ0UxUN/ouCEqgcwMxsH8rTsUG+iBMSrdQXLiF80=; b=MzubHvFKXpbFM9G+Z9eCEQ4tzPSyFqXrzym2pClUucVqHNlQuP6xnssUTDgKp+95n5LZTz pPQzoZPm6UZ+uM3ApAKQLUg6tqPruGDABXFSlXpeR2t9xqYKuXL26lfyFM25IsaL5JmseF wWNEo4WTky4+ZIrRi96LiNW0s59N+BMkCT3Yo5veiKqMJ4qhBpghS+wS9s9XtfW8t6nze/ 7Q/H34mlqGFiVRKeS94v0ME6xxhh+55MtqekhuDG9BzloLB032OQ0+LxoYoeHxA3mX+8Tu i3L1gMYLxNo07X35071d9hQF5lyrqI4QT75wS6DUxLvF9mbCxXKSVVtTcYwoXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739280403; 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=Kd+MQ0UxUN/ouCEqgcwMxsH8rTsUG+iBMSrdQXLiF80=; b=MDDinPp18WOeWMgNCFZz3AF5vyJAMu/uCEp5DRVcu/XQDIMJiAKHBIScxQBROuGkAtVIPV 0/WcOOA/OL1FYmCEDYcsGQ+UtJ/kK9Ka4tCmP69F2cHuyVdNrETo+GeECr6yCDcszWs2fK LwenL/a0VQcmD8Xq4tgYaZfurh8pJyuwQNNrOqaWQWqmJZQaZWgzOJbcMoBDkLHgXpZHw7 WpiUfN65s8SRJZwUo82DwP1D8TbFIC8mE8Lw+6G3zcb1DLuFvQ9kT5q6Deg/OMj+CUxo9Q MjdGnFqIp1GR5u1A9y/KAyEhLCtRN7D+REJZAnYsXZHBHqOmm0WX9IG3+Bih1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739280403; a=rsa-sha256; cv=none; b=PSvZn5jV8GPmG6IOeDAwjpOP6zO5NImlVgm+ejbZ/2ISM33lMbyfGrFtfdjCAHDTsKQqZx kQq9zcs/nNftq9RuPRJgdNiFsVAjybogkX7GP//2ygQItNUG4oPMSeqjCYM8M72dXCGY9l ExfCtUHt7KY2tSodnBvItZYk738XXZsgrzDU71ndGHAKV4xyAcLeptaN76IHfsm0j/Qv0e PmxseEtmISdkMF9OJupHrC6Q6k8i9aNOWEHXwI5LfDQYujhUASoKgC6VJzUFalOjZk+ls6 AHeys0PpzZmtVh0Gv/it/ytBHZOv+CZlIiYkWgMHUYuaM+1JoVfbB59uaYlvkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Ysj035PMlz4Q; Tue, 11 Feb 2025 13:26:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 51BDQhYR065199; Tue, 11 Feb 2025 13:26:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 51BDQh1j065196; Tue, 11 Feb 2025 13:26:43 GMT (envelope-from git) Date: Tue, 11 Feb 2025 13:26:43 GMT Message-Id: <202502111326.51BDQh1j065196@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: e56c6c0880c0 - main - textproc/xml-format: correct errno usage List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@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: e56c6c0880c09db38a25f1c56768ba82c95a4fe9 Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=e56c6c0880c09db38a25f1c56768ba82c95a4fe9 commit e56c6c0880c09db38a25f1c56768ba82c95a4fe9 Author: Robert Clausecker AuthorDate: 2025-02-11 13:14:29 +0000 Commit: Robert Clausecker CommitDate: 2025-02-11 13:26:14 +0000 textproc/xml-format: correct errno usage extern int errno; is incorrect these days. Include for the correct behaviour. This fixes the build on some configurations. Approved by: portmgr (build fix blanket) --- textproc/xml-format/Makefile | 1 + textproc/xml-format/files/patch-tag-list.c | 16 ++++++++++++++++ textproc/xml-format/files/patch-xml-format.c | 18 ++++++++++++++++++ 3 files changed, 35 insertions(+) diff --git a/textproc/xml-format/Makefile b/textproc/xml-format/Makefile index c90ee490e41e..4f2474196619 100644 --- a/textproc/xml-format/Makefile +++ b/textproc/xml-format/Makefile @@ -1,6 +1,7 @@ PORTNAME= xml-format DISTVERSION= 0.2.0-3 DISTVERSIONSUFFIX= -g4448d89 +PORTREVISION= 1 CATEGORIES= textproc MAINTAINER= jwb@FreeBSD.org diff --git a/textproc/xml-format/files/patch-tag-list.c b/textproc/xml-format/files/patch-tag-list.c new file mode 100644 index 000000000000..78e41b455d77 --- /dev/null +++ b/textproc/xml-format/files/patch-tag-list.c @@ -0,0 +1,16 @@ +--- tag-list.c.orig 2025-02-05 15:23:28 UTC ++++ tag-list.c +@@ -1,3 +1,4 @@ ++#include + #include + #include + #include +@@ -80,8 +81,6 @@ void tag_list_error_check(int list_size, const char + void tag_list_error_check(int list_size, const char *path) + + { +- extern int errno; +- + if ( list_size == -1 ) + { + fprintf(stderr, "Unable to read %s: %s\n", path, strerror(errno)); diff --git a/textproc/xml-format/files/patch-xml-format.c b/textproc/xml-format/files/patch-xml-format.c new file mode 100644 index 000000000000..807eb921fedc --- /dev/null +++ b/textproc/xml-format/files/patch-xml-format.c @@ -0,0 +1,18 @@ +--- xml-format.c.orig 2025-02-05 15:23:48 UTC ++++ xml-format.c +@@ -13,6 +13,7 @@ + * 2013-02-09 Jason Bacon Begin + ***************************************************************************/ + ++#include + #include + #include + #include +@@ -69,7 +70,6 @@ int xml_format(const char *filename) + buff[COPY_BUFF_SIZE+1], + *subdir; + size_t bytes; +- extern int errno; + tag_list_t tags; + + if ( ( subdir = strrchr(filename, '.')) == NULL )