pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/p5-XML-Bare



Module Name:    pkgsrc
Committed By:   markd
Date:           Wed Jul  2 03:52:04 UTC 2025

Modified Files:
        pkgsrc/textproc/p5-XML-Bare: Makefile distinfo
Added Files:
        pkgsrc/textproc/p5-XML-Bare/patches: patch-parser.c patch-parser.h

Log Message:
p5-XML-Bare: make gcc15 happy


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/textproc/p5-XML-Bare/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/textproc/p5-XML-Bare/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/p5-XML-Bare/patches/patch-parser.c \
    pkgsrc/textproc/p5-XML-Bare/patches/patch-parser.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/p5-XML-Bare/Makefile
diff -u pkgsrc/textproc/p5-XML-Bare/Makefile:1.19 pkgsrc/textproc/p5-XML-Bare/Makefile:1.20
--- pkgsrc/textproc/p5-XML-Bare/Makefile:1.19   Sat Nov 16 12:07:05 2024
+++ pkgsrc/textproc/p5-XML-Bare/Makefile        Wed Jul  2 03:52:04 2025
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.19 2024/11/16 12:07:05 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2025/07/02 03:52:04 markd Exp $
 #
 
 DISTNAME=      XML-Bare-0.53
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   11
+PKGREVISION=   12
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=XML/}
 

Index: pkgsrc/textproc/p5-XML-Bare/distinfo
diff -u pkgsrc/textproc/p5-XML-Bare/distinfo:1.6 pkgsrc/textproc/p5-XML-Bare/distinfo:1.7
--- pkgsrc/textproc/p5-XML-Bare/distinfo:1.6    Tue Oct 26 11:22:48 2021
+++ pkgsrc/textproc/p5-XML-Bare/distinfo        Wed Jul  2 03:52:04 2025
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.6 2021/10/26 11:22:48 nia Exp $
+$NetBSD: distinfo,v 1.7 2025/07/02 03:52:04 markd Exp $
 
 BLAKE2s (XML-Bare-0.53.tar.gz) = 7b9268f4740cc23c3f1a4059b3ae77d4a883fcba2540c41835aa001a3f5a952e
 SHA512 (XML-Bare-0.53.tar.gz) = e765206e5c98ed3a0c29be3a323e25beaa712489d0461e2e7269f5f3383fa805ba3829a9ed4d31cd86f35400c321f8cf519162cc41f52f8ba6992c7016f63520
 Size (XML-Bare-0.53.tar.gz) = 79278 bytes
+SHA1 (patch-parser.c) = ebec32bcc8cf4d26edd21809da6c490cdd1e0010
+SHA1 (patch-parser.h) = c106975e63e7c0dd11d2b0c0ee005421ddb68918

Added files:

Index: pkgsrc/textproc/p5-XML-Bare/patches/patch-parser.c
diff -u /dev/null pkgsrc/textproc/p5-XML-Bare/patches/patch-parser.c:1.1
--- /dev/null   Wed Jul  2 03:52:04 2025
+++ pkgsrc/textproc/p5-XML-Bare/patches/patch-parser.c  Wed Jul  2 03:52:04 2025
@@ -0,0 +1,42 @@
+$NetBSD: patch-parser.c,v 1.1 2025/07/02 03:52:04 markd Exp $
+
+assignment to 'char *' from 'int' makes pointer from integer without a cast
+
+--- parser.c.orig      2013-07-12 15:23:43.000000000 +0000
++++ parser.c
+@@ -419,7 +419,7 @@ int parserc_parse( struct parserc *self,
+         case 0: last_state = ST_att_name; goto done;
+         case '/': // self closing     !! /> is assumed !!
+           curatt = nodec_addattr( curnode, attname, attname_len );
+-          if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; }
++          if( !att_has_val ) { curatt->value = (char *) -1; curatt->vallen = 0; }
+           attname_len            = 0;
+           
+           curnode->z = cpos+1-xmlin;
+@@ -438,7 +438,7 @@ int parserc_parse( struct parserc *self,
+           goto att_space;
+         case '>':
+           curatt = nodec_addattr( curnode, attname, attname_len );
+-          if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; }
++          if( !att_has_val ) { curatt->value = (char *) -1; curatt->vallen = 0; }
+           attname_len = 0;
+           cpos++;
+           goto val_1;
+@@ -834,7 +834,7 @@ int parserc_parse_unsafely( struct parse
+       switch( let ) {
+         case '/': // self closing     !! /> is assumed !!
+           curatt = nodec_addattr( curnode, attname, attname_len );
+-          if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; }
++          if( !att_has_val ) { curatt->value = (char *) -1; curatt->vallen = 0; }
+           attname_len = 0;
+           
+           curnode = curnode->parent;
+@@ -852,7 +852,7 @@ int parserc_parse_unsafely( struct parse
+           goto u_att_space;
+         case '>':
+           curatt = nodec_addattr( curnode, attname, attname_len );
+-          if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; }
++          if( !att_has_val ) { curatt->value = (char *) -1; curatt->vallen = 0; }
+           attname_len = 0;
+           cpos++;
+           goto u_val_1;
Index: pkgsrc/textproc/p5-XML-Bare/patches/patch-parser.h
diff -u /dev/null pkgsrc/textproc/p5-XML-Bare/patches/patch-parser.h:1.1
--- /dev/null   Wed Jul  2 03:52:04 2025
+++ pkgsrc/textproc/p5-XML-Bare/patches/patch-parser.h  Wed Jul  2 03:52:04 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-parser.h,v 1.1 2025/07/02 03:52:04 markd Exp $
+
+<stdlib.h> for malloc() and free()
+
+--- parser.h.orig      2013-04-30 02:00:00.000000000 +0000
++++ parser.h
+@@ -1,6 +1,4 @@
+-#ifdef WIN32
+ #include<stdlib.h>
+-#endif
+ 
+ #ifndef NULL
+   #define NULL 0x00



Home | Main Index | Thread Index | Old Index