Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package listres for openSUSE:Factory checked in at 2024-03-11 15:34:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/listres (Old) and /work/SRC/openSUSE:Factory/.listres.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "listres" Mon Mar 11 15:34:27 2024 rev:9 rq:1156815 version:1.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/listres/listres.changes 2022-04-03 21:36:27.388247015 +0200 +++ /work/SRC/openSUSE:Factory/.listres.new.1770/listres.changes 2024-03-11 15:42:10.660638838 +0100 @@ -1,0 +2,8 @@ +Mon Mar 4 03:49:48 UTC 2024 - Stefan Dirsch <sndir...@suse.com> + +- update to version 1.0.6 + * gitlab CI: stop requiring Signed-off-by in commits + * Print which argument was unknown before giving usage message + * Add -help and -version options + +------------------------------------------------------------------- Old: ---- listres-1.0.5.tar.xz New: ---- listres-1.0.6.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ listres.spec ++++++ --- /var/tmp/diff_new_pack.ZbkwS0/_old 2024-03-11 15:42:11.104655205 +0100 +++ /var/tmp/diff_new_pack.ZbkwS0/_new 2024-03-11 15:42:11.104655205 +0100 @@ -1,7 +1,7 @@ # # spec file for package listres # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 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: listres -Version: 1.0.5 +Version: 1.0.6 Release: 0 Summary: Utility to list X resources in widgets License: X11 ++++++ listres-1.0.5.tar.xz -> listres-1.0.6.tar.xz ++++++ ++++ 6632 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/listres-1.0.5/ChangeLog new/listres-1.0.6/ChangeLog --- old/listres-1.0.5/ChangeLog 2022-04-03 21:08:48.000000000 +0200 +++ new/listres-1.0.6/ChangeLog 2024-03-03 18:56:20.000000000 +0100 @@ -1,3 +1,35 @@ +commit be836dd49be49040f0420893393c1b864fc79611 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Sun Mar 3 09:51:43 2024 -0800 + + listres 1.0.6 + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit aee575262a9c70fe537bc1cda72c1b00931f87b0 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Wed Feb 8 15:15:32 2023 -0800 + + Add -help and -version options + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit 3f09f6c5771cfc70ab73ce301da683c3884cabd1 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Wed Feb 8 15:09:58 2023 -0800 + + Print which argument was unknown before giving usage message + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit 1565da2398ea92eb5e2bf9a308c004feedfe1fa6 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Thu Jul 28 17:30:21 2022 -0700 + + gitlab CI: stop requiring Signed-off-by in commits + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + commit 0527098de837af8c4720170df94ba9748ba8009e Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Sun Apr 3 12:06:29 2022 -0700 @@ -524,13 +556,13 @@ configure cache, you cache it, and the cached value is probably wrong. commit 8b25b98b1cbe95610a862d75cdecd59cd40bca30 -Author: Søren Sandmann Pedersen <sandm...@daimi.au.dk> +Author: Søren Sandmann Pedersen <sandm...@daimi.au.dk> Date: Thu Jul 14 22:40:14 2005 +0000 Add _BSD_SOURCE to lots of applications - patch from Stefan Dirsch commit 0b8defdf67bc0354d90c525bd4d81dff7f397925 -Author: Søren Sandmann Pedersen <sandm...@daimi.au.dk> +Author: Søren Sandmann Pedersen <sandm...@daimi.au.dk> Date: Tue Jun 28 15:09:55 2005 +0000 Check in build system for listres 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/listres-1.0.5/config.h.in new/listres-1.0.6/config.h.in --- old/listres-1.0.5/config.h.in 2022-04-03 21:08:43.000000000 +0200 +++ new/listres-1.0.6/config.h.in 2024-03-03 18:56:14.000000000 +0100 @@ -57,7 +57,7 @@ /* Patch version of this package */ #undef PACKAGE_VERSION_PATCHLEVEL -/* Define to 1 if all of the C90 standard headers exist (not just the ones +/* Define to 1 if all of the C89 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 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/listres-1.0.5/configure.ac new/listres-1.0.6/configure.ac --- old/listres-1.0.5/configure.ac 2022-04-03 21:08:40.000000000 +0200 +++ new/listres-1.0.6/configure.ac 2024-03-03 18:56:10.000000000 +0100 @@ -23,8 +23,8 @@ # Initialize Autoconf AC_PREREQ([2.60]) -AC_INIT(listres, [1.0.5], - [https://gitlab.freedesktop.org/xorg/app/listres/issues], listres) +AC_INIT(listres, [1.0.6], + [https://gitlab.freedesktop.org/xorg/app/listres/-/issues], [listres]) AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([config.h]) 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/listres-1.0.5/listres.c new/listres-1.0.6/listres.c --- old/listres-1.0.5/listres.c 2022-04-03 21:08:40.000000000 +0200 +++ new/listres-1.0.6/listres.c 2024-03-03 18:56:10.000000000 +0100 @@ -29,6 +29,10 @@ */ /* $XFree86: xc/programs/listres/listres.c,v 1.3 2000/02/17 14:00:32 dawes Exp $ */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include <stdio.h> #include <stdlib.h> #include <X11/Xos.h> @@ -83,7 +87,7 @@ static const char *ProgramName; static void -usage (void) +usage (int exitval) { fprintf(stderr, "usage: %s [-options...]\n%s\n", ProgramName, "\nwhere options include:\n" @@ -92,8 +96,11 @@ " -nosuper do not print superclass resources\n" " -variable show variable name instead of class name\n" " -top name object to be top of tree\n" - " -format string printf format for instance, class, type\n"); - exit (1); + " -format string printf format for instance, class, type\n" + " -help print this message and exit\n" + " -version print version info and exit\n" + ); + exit (exitval); } static void print_tree_level (register XmuWidgetNode *wn, register int level) @@ -234,6 +241,22 @@ XtSetLanguageProc(NULL, (XtLanguageProc) NULL, NULL); + /* Handle args that don't require opening a display */ + for (int n = 1; n < argc; n++) { + const char *argn = argv[n]; + /* accept single or double dash for -help & -version */ + if (argn[0] == '-' && argn[1] == '-') { + argn++; + } + if (strcmp(argn, "-help") == 0) { + usage(0); + } + if (strcmp(argn, "-version") == 0) { + puts(PACKAGE_STRING); + exit(0); + } + } + toplevel = XtAppInitialize (&appcon, "Listres", Options, XtNumber(Options), &argc, argv, NULL, NULL, 0); container = XtCreateWidget ("dummy", widgetClass, toplevel, NULL, ZERO); @@ -262,13 +285,18 @@ (Bool) options.show_superclass, (Bool) options.show_variable); } - } else - usage(); + } else { + fprintf(stderr, "Unknown argument: %s\n", argv[0]); + usage(1); + } } else { for (; argc > 0; argc--, argv++) { XmuWidgetNode *node; - if (argv[0][0] == '-') usage (); + if (argv[0][0] == '-') { + fprintf(stderr, "Unknown argument: %s\n", argv[0]); + usage(1); + } node = XmuWnNameToNode (widget_list, nwidgets, *argv); if (!node) { fprintf (stderr, "%s: unable to find widget \"%s\"\n", 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/listres-1.0.5/man/listres.man new/listres-1.0.6/man/listres.man --- old/listres-1.0.5/man/listres.man 2022-04-03 21:08:40.000000000 +0200 +++ new/listres-1.0.6/man/listres.man 2024-03-03 18:56:10.000000000 +0100 @@ -67,6 +67,12 @@ .B \-format \fIprintf\-string\fP This option specifies the \fIprintf\fP-style format string to be used to print out the name, instance, class, and type of each resource. +.TP 8 +.B \-help +This option indicates that \fIlistres\fP should print a usage message and exit. +.TP 8 +.B \-version +This option indicates that \fIlistres\fP should print version info and exit. .SH "X DEFAULTS" To be written. .SH "SEE ALSO"