Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2025 13:30:35 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 2b17d893e367 - 2025Q1 - textproc/xml-format: correct errno usage
Message-ID:  <202502111330.51BDUZY0075296@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2025Q1 has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2b17d893e3672f0de9304e91dba1601b50a0b328

commit 2b17d893e3672f0de9304e91dba1601b50a0b328
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-02-11 13:28:17 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-02-11 13:28:17 +0000

    textproc/xml-format: correct errno usage
    
    Same as on the main branch, but this branch is still on the old
    version so we can't do a direct cherry-pick.
    
    See also:       e56c6c0880c09db38a25f1c56768ba82c95a4fe9
    Approved by:    portmgr (build fix blanket)
---
 textproc/xml-format/Makefile                 |  2 +-
 textproc/xml-format/files/patch-tag-list.c   | 16 ++++++++++++++++
 textproc/xml-format/files/patch-xml-format.c | 18 ++++++++++++++++++
 3 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/textproc/xml-format/Makefile b/textproc/xml-format/Makefile
index 8609c12cdb6d..24af235774cd 100644
--- a/textproc/xml-format/Makefile
+++ b/textproc/xml-format/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	xml-format
 PORTVERSION=	0.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc
 MASTER_SITES=	http://acadix.biz/Ports/distfiles/
 
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 <errno.h>
+ #include <stdio.h>
+ #include <limits.h>
+ #include <string.h>
+@@ -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 <errno.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <ctype.h>
+@@ -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 )



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