Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package html-xml-utils for openSUSE:Factory checked in at 2025-03-16 18:59:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/html-xml-utils (Old) and /work/SRC/openSUSE:Factory/.html-xml-utils.new.19136 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "html-xml-utils" Sun Mar 16 18:59:15 2025 rev:12 rq:1253387 version:8.7 Changes: -------- --- /work/SRC/openSUSE:Factory/html-xml-utils/html-xml-utils.changes 2023-05-08 17:25:20.129068221 +0200 +++ /work/SRC/openSUSE:Factory/.html-xml-utils.new.19136/html-xml-utils.changes 2025-03-16 19:00:06.068270756 +0100 @@ -1,0 +2,8 @@ +Sat Mar 8 15:52:58 UTC 2025 - Andrea Manzini <andrea.manz...@suse.com> + +- Update to version 8.7: + * textwrap.c: Corrected counting of visible characters on a line + (bufchars). + * hxcopy.c: Fixed error in an error message. + +------------------------------------------------------------------- Old: ---- html-xml-utils-8.6.tar.gz New: ---- html-xml-utils-8.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ html-xml-utils.spec ++++++ --- /var/tmp/diff_new_pack.obKVUg/_old 2025-03-16 19:00:06.692296861 +0100 +++ /var/tmp/diff_new_pack.obKVUg/_new 2025-03-16 19:00:06.696297028 +0100 @@ -1,7 +1,7 @@ # # spec file for package html-xml-utils # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: html-xml-utils -Version: 8.6 +Version: 8.7 Release: 0 Summary: A number of utilities for manipulating HTML and XML files License: W3C ++++++ html-xml-utils-8.6.tar.gz -> html-xml-utils-8.7.tar.gz ++++++ ++++ 9191 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/ChangeLog new/html-xml-utils-8.7/ChangeLog --- old/html-xml-utils-8.6/ChangeLog 2023-04-25 14:21:29.000000000 +0200 +++ new/html-xml-utils-8.7/ChangeLog 2025-02-16 10:40:40.000000000 +0100 @@ -1,5 +1,18 @@ +2025-02-16 Bert Bos <b...@w3.org> + + * Released version 8.7 + + * textwrap.c: Corrected counting of visible characters on a line + (bufchars). + +2023-10-24 Bert Bos <b...@w3.org> + + * hxcopy.c: Fixed error in an error message. + 2023-04-25 Bert Bos <b...@nyx.sophia.w3.org> + * Released version 8.6. + * tests/select34.sh: Use "tr" instead of "xarg" to replace \0 by \n. (The xargs command on BSD ignores empty input lines, the GNU version does not.) Also use "printf" instead of "echo" to write to @@ -31,7 +44,7 @@ 2022-02-10 Bert Bos <b...@w3.org> - * Rekleased version 8.3. + * Released version 8.3. * dtd.hash: Make <head> rather than <body> the preferred parent for <script>. Allow text in the <body> element, without requiring a diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/cexport.c new/html-xml-utils-8.7/cexport.c --- old/html-xml-utils-8.6/cexport.c 2023-02-09 18:06:39.000000000 +0100 +++ new/html-xml-utils-8.7/cexport.c 2024-07-22 13:28:29.000000000 +0200 @@ -123,8 +123,7 @@ /*************************************************************************** * exportdef -- copy a #define to output ***************************************************************************/ -static void exportdef(i) - long i; +static void exportdef(long i) { unsigned long len; @@ -132,7 +131,7 @@ * TO DO: encountering an end of file should produce a suitable error * message: end of file in middle of macro definition. */ - + fputs("#define ", out); /* EXPORTDEF -> #define */ /* Unquote the following string */ @@ -148,12 +147,11 @@ len = strlen(line); } } - + /*************************************************************************** * export -- copy next declaration to output ***************************************************************************/ -static void export(i) - long *i; +static void export(long *i) { int brace, paren, squote, dquote, comment, stop, is_typedef, start, is_enum, is_extern, is_struct; @@ -162,7 +160,7 @@ * TO DO: End of file while any of the variables is still * non-null is also an error. */ - + *i += 6; /* Skip "EXPORT" */ comment = 0; squote = 0; @@ -285,13 +283,12 @@ } } while (! stop); } - + /*************************************************************************** * process -- scan file and write exported declarations ***************************************************************************/ -static void process(file, cpp) - char *file, *cpp; +static void process(char *file, char *cpp) { char cmd[1024], *s, outname[1024]; int brace, paren, dquote, squote, comment; @@ -425,8 +422,7 @@ fclose(in); } -static void usage(s) - char *s; +static void usage(char *s) { fprintf(stderr, "Usage: %s {-Idir|-Dsym} [-h] [-c cppcmd] [-e ext] {file}\n", @@ -434,16 +430,14 @@ nerr++; } -int main(argc, argv) - int argc; - char *argv[]; +int main(int argc, char *argv[]) { char cpp[BUFSIZ]; /* Max. cmd. line length */ int nfiles, i; strcpy(cpp, " -D__export "); nfiles = 0; - + for (i = 1; i < argc; i++) { if (!strncmp(argv[i], "-c", 2)) { /* Replace cpp command */ if (argv[i][2]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/config.h.in new/html-xml-utils-8.7/config.h.in --- old/html-xml-utils-8.6/config.h.in 2023-04-25 14:24:33.000000000 +0200 +++ new/html-xml-utils-8.7/config.h.in 2025-02-16 10:41:01.000000000 +0100 @@ -1,18 +1,12 @@ /* config.h.in. Generated from configure.ac by autoheader. */ -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP - systems. This function is required for `alloca.c' support on those systems. - */ -#undef CRAY_STACKSEG_END - -/* Define to 1 if using `alloca.c'. */ +/* Define to 1 if using 'alloca.c'. */ #undef C_ALLOCA -/* Define to 1 if you have `alloca', as a function or macro. */ +/* Define to 1 if you have 'alloca', as a function or macro. */ #undef HAVE_ALLOCA -/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). - */ +/* Define to 1 if <alloca.h> works. */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the <arpa/inet.h> header file. */ @@ -83,9 +77,6 @@ /* Define to 1 if you have the `memmove' function. */ #undef HAVE_MEMMOVE -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET @@ -123,6 +114,9 @@ /* Define to 1 if you have the <stdint.h> header file. */ #undef HAVE_STDINT_H +/* Define to 1 if you have the <stdio.h> header file. */ +#undef HAVE_STDIO_H + /* Define to 1 if you have the <stdlib.h> header file. */ #undef HAVE_STDLIB_H @@ -141,7 +135,7 @@ /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR -/* Define to 1 if you have the `strerror_r' function. */ +/* Define if you have `strerror_r'. */ #undef HAVE_STRERROR_R /* Define to 1 if you have the <strings.h> header file. */ @@ -305,7 +299,9 @@ STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION -/* Define to 1 if you have the ANSI C header files. */ +/* Define to 1 if all of the C90 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ #undef STDC_HEADERS /* Define to 1 if strerror_r returns char *. */ @@ -318,11 +314,6 @@ `char[]'. */ #undef YYTEXT_POINTER -/* Enable large inode numbers on Mac OS X 10.5. */ -#ifndef _DARWIN_USE_64_BIT_INODE -# define _DARWIN_USE_64_BIT_INODE 1 -#endif - /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/configure.ac new/html-xml-utils-8.7/configure.ac --- old/html-xml-utils-8.6/configure.ac 2023-04-25 14:23:36.000000000 +0200 +++ new/html-xml-utils-8.7/configure.ac 2025-02-16 10:40:40.000000000 +0100 @@ -1,7 +1,7 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) -AC_INIT([html-xml-utils],[8.6]) +AC_INIT([html-xml-utils],[8.7]) dnl print all automake warnings with -Wall dnl http://sources.redhat.com/automake/automake.html#Options AM_INIT_AUTOMAKE([-Wall]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/hxcopy.c new/html-xml-utils-8.7/hxcopy.c --- old/html-xml-utils-8.6/hxcopy.c 2023-02-09 18:06:39.000000000 +0100 +++ new/html-xml-utils-8.7/hxcopy.c 2024-07-22 13:28:29.000000000 +0200 @@ -138,7 +138,7 @@ return NULL; } - + /* end -- called after the last event is reported */ void end(void *clientdata) { @@ -266,7 +266,7 @@ default: usage(argv[0]); } if (argc > optind + 2) usage(argv[0]); - if (argc > optind + 1) out = fopenurl(argv[optind+1], "w", NULL); + if (argc > optind + 1) out = fopenurl(argv[optind+1], "w", NULL); else if (newurl) out = stdout; else errx(EX_USAGE, "option -o is required if output is to stdout"); if (!out) err(EX_IOERR, "%s", argv[optind+1]); @@ -274,7 +274,7 @@ else if (oldurl) yyin = stdin; else errx(EX_USAGE, " option -i is required if input is from stdin"); if (!yyin) err(EX_IOERR, "%s", argv[optind]); - if (status != 200) errx(EX_IOERR, "%s: %s", argv[1], http_strerror(status)); + if (status != 200) errx(EX_IOERR,"%s: %s",argv[optind],http_strerror(status)); if (!oldurl) oldurl = argv[optind]; if (!newurl) newurl = argv[optind+1]; newbase = path_from_url_to_url(newurl, oldurl); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/hxnormalize.c new/html-xml-utils-8.7/hxnormalize.c --- old/html-xml-utils-8.6/hxnormalize.c 2023-02-09 18:06:39.000000000 +0100 +++ new/html-xml-utils-8.7/hxnormalize.c 2025-02-16 04:25:29.000000000 +0100 @@ -6,7 +6,7 @@ * * Created 9 May 1998 * Bert Bos <b...@w3.org> - * $Id: hxnormalize.c,v 1.27 2023/01/23 21:19:41 bbos Exp $ + * $Id: hxnormalize.c,v 1.28 2025/02/16 01:58:34 bbos Exp $ */ #include "config.h" #include <stdio.h> @@ -58,7 +58,7 @@ tree = create(); return NULL; } - + /* end -- called after the last event is reported */ void end(void *clientdata) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/hxpipe.c new/html-xml-utils-8.7/hxpipe.c --- old/html-xml-utils-8.6/hxpipe.c 2023-02-09 18:06:39.000000000 +0100 +++ new/html-xml-utils-8.7/hxpipe.c 2025-02-16 04:25:29.000000000 +0100 @@ -72,7 +72,7 @@ * * Author: Bert Bos * Created: 2 Dec 1998 - * Version: $Id: hxpipe.c,v 1.13 2023/01/23 21:19:41 bbos Exp $ + * Version: $Id: hxpipe.c,v 1.14 2025/02/16 01:54:10 bbos Exp $ * **/ #include "config.h" @@ -149,7 +149,7 @@ /* output -- output children of an HTML element (or root) in canonical form */ static void output(Tree t) { - Tree n, h; + Tree n; assert(t->tp == Root || t->tp == Element); for (n = t->children; n != NULL; n = n->sister) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/tests/extract1.sh new/html-xml-utils-8.7/tests/extract1.sh --- old/html-xml-utils-8.6/tests/extract1.sh 2018-02-23 15:29:48.000000000 +0100 +++ new/html-xml-utils-8.7/tests/extract1.sh 2025-02-16 12:18:14.000000000 +0100 @@ -18,7 +18,7 @@ p=$(($PORT + $i)) q=$(($p + 1)) printf "HTTP/1.1 302\r\nLocation: http://127.0.0.1:$q/\r\n\r" |\ - (nc -q0 -l -n -p $p || nc -l -n $p) & + (nc -q0 -l -n -p $p || nc -l -n 127.0.0.1 $p) & done sleep 1 # Give the servers time to start diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/textwrap.c new/html-xml-utils-8.7/textwrap.c --- old/html-xml-utils-8.6/textwrap.c 2023-02-09 18:06:40.000000000 +0100 +++ new/html-xml-utils-8.7/textwrap.c 2025-02-16 04:25:29.000000000 +0100 @@ -8,7 +8,7 @@ * * Bert Bos * Created 10 May 1998 - * $Id: textwrap.c,v 1.35 2023/01/23 21:19:42 bbos Exp $ + * $Id: textwrap.c,v 1.36 2025/02/16 01:52:24 bbos Exp $ */ #include "config.h" #include <stdio.h> @@ -54,7 +54,7 @@ int i, j, k; assert(len <= buflen); - while (len != 0 && linelen + bufchars >= maxlinelen) { /* Need break */ + while (len != 0 && linelen + bufchars > maxlinelen) { /* Need break */ /* Find last breakpoint i before maxlinelen, or first after it */ for (i = -1, j = 0, k = 0; j < len && (k < maxlinelen || i == -1); j++) if (buf[j] == ' ') {i = j; k++;} @@ -69,6 +69,7 @@ putchar(buf[j] == NBSP ? ' ' : buf[j]); if ((buf[j] & 0xC0) != 0x80) bufchars--; } + if (buf[i] == ' ') bufchars--; putchar('\n'); /* Break line */ linelen = 0; assert(level >= 0); @@ -85,13 +86,13 @@ } /* Print rest, if any (removing non-break-space markers) */ /* First remove spaces at end of line */ - while (len > 0 && buf[len-1] == ' ') {len--; bufchars--;} + while (len > 0 && buf[len-1] == ' ') len--; for (j = 0; j < len; j++) if (buf[j] == BREAKOP) /* skip */; else if (buf[j] == '\n' || buf[j] == '\r') {putchar(buf[j]); linelen = 0;} else if (buf[j] == NBSP) {putchar(' '); linelen++;} else if ((buf[j] & 0xC0) != 0x80) {putchar(buf[j]); linelen++;} - else putchar(buf[j]); + else putchar(buf[j]); /* Byte inside a UTF-8 sequence */ bufchars = 0; len = 0; } @@ -110,9 +111,9 @@ if (c == ' ') { if (preformatted) c = NBSP; /* Non-break-space marker */ else if (prev == ' ') return; /* Don't add another space */ - else if (prev == BREAKOP) return; /* Don't add a space after \n or similar */ + else if (prev == BREAKOP) return; /* Don't add space after \n or similar */ } - if ((c == ' ' || c == BREAKOP) && linelen + bufchars >= maxlinelen) flush(); + if ((c == ' ' || c == BREAKOP) && linelen + bufchars > maxlinelen) flush(); if (c == '\n' || c == '\r' || c == '\f') flush(); /* Empty the buf */ if (c == ' ' && linelen + len == 0) return; /* No insert at BOL */ while (level * indent >= buflen) {buflen += 1024; renewarray(buf, buflen);} @@ -120,7 +121,7 @@ while (len < level * indent) {buf[len++] = NBSP; bufchars++;} if (c == ' ' && len && buf[len-1] == ' ') return; /* Skip multiple spaces */ while (len >= buflen) {buflen += 1024; renewarray(buf, buflen);} - if ((c & 0xC0) != 0x80) bufchars++; /* Character */ + if (c != BREAKOP && (c & 0xC0) != 0x80) bufchars++; /* Character */ buf[len++] = c; /* Finally, insert c */ prev = c; /* Remember for next round */ } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/html-xml-utils-8.6/tree.c new/html-xml-utils-8.7/tree.c --- old/html-xml-utils-8.6/tree.c 2023-02-09 18:06:40.000000000 +0100 +++ new/html-xml-utils-8.7/tree.c 2025-02-16 04:25:29.000000000 +0100 @@ -45,7 +45,7 @@ struct _node *children; } Node, *Tree; - + /* create -- create an empty tree */ EXPORT Tree create(void) @@ -305,7 +305,7 @@ assert(info->parents[0] != NULL); /* element is not root */ return info->parents[0]; } - + /* is_root -- true if e has no possible parents */ static bool is_root(const string e) { @@ -313,21 +313,21 @@ assert(info != NULL); /* element is known */ return info->parents[0] == NULL; } - + /* is_mixed -- true if e accepts text content */ EXPORT bool is_mixed(const string e) { const ElementType *info = lookup(e); return !info || info->mixed; } - + /* break_before -- true if element looks better with a newline before it */ EXPORT bool break_before(const string e) { const ElementType *info = lookup(e); return info && info->break_before; } - + /* break_after -- true if element looks better with a newline after it */ EXPORT bool break_after(const string e) { @@ -354,7 +354,7 @@ /* Check if we are done */ if (has_parent(elem, (*t)->name)) return true; - + /* Try recursively if any possible parent can be a child of t */ info = lookup(elem); for (i = 0; info->parents[i]; i++) {