Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package xrefresh for openSUSE:Factory 
checked in at 2024-03-05 18:46:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xrefresh (Old)
 and      /work/SRC/openSUSE:Factory/.xrefresh.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xrefresh"

Tue Mar  5 18:46:53 2024 rev:10 rq:1154502 version:1.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/xrefresh/xrefresh.changes        2022-08-21 
14:10:52.750409084 +0200
+++ /work/SRC/openSUSE:Factory/.xrefresh.new.1770/xrefresh.changes      
2024-03-05 18:46:54.676872160 +0100
@@ -1,0 +2,8 @@
+Mon Mar  4 04:30:32 UTC 2024 - Stefan Dirsch <[email protected]>
+
+- Update to version 1.0.8
+  * gitlab CI: stop requiring Signed-off-by in commits
+  * Add -help option
+  * Adding in a '-delay ms' parameter to optionally prolong refreshx
+
+-------------------------------------------------------------------

Old:
----
  xrefresh-1.0.7.tar.xz
  xrefresh-1.0.7.tar.xz.sig

New:
----
  xrefresh-1.1.0.tar.xz
  xrefresh-1.1.0.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xrefresh.spec ++++++
--- /var/tmp/diff_new_pack.5q07rv/_old  2024-03-05 18:46:55.176890315 +0100
+++ /var/tmp/diff_new_pack.5q07rv/_new  2024-03-05 18:46:55.180890460 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package xrefresh
 #
-# 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:           xrefresh
-Version:        1.0.7
+Version:        1.1.0
 Release:        0
 Summary:        Utility to refresh all or part of an X screen
 License:        MIT

++++++ xrefresh-1.0.7.tar.xz -> xrefresh-1.1.0.tar.xz ++++++
++++ 6784 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/xrefresh-1.0.7/ChangeLog new/xrefresh-1.1.0/ChangeLog
--- old/xrefresh-1.0.7/ChangeLog        2022-07-12 19:49:42.000000000 +0200
+++ new/xrefresh-1.1.0/ChangeLog        2024-03-04 00:18:36.000000000 +0100
@@ -1,3 +1,33 @@
+commit e4d55bdc6ca6f9e4b7ff07d253acd04d0a9ec1f1
+Author: Alan Coopersmith <[email protected]>
+Date:   Sun Mar 3 15:15:14 2024 -0800
+
+    xrefresh 1.1.0
+    
+    Signed-off-by: Alan Coopersmith <[email protected]>
+
+commit 1a829930f7b5b00e5fa128c6dd0dd1a7c4065213
+Author: Alan Coopersmith <[email protected]>
+Date:   Sat Feb 11 17:04:31 2023 -0800
+
+    Add -help option
+    
+    Signed-off-by: Alan Coopersmith <[email protected]>
+
+commit 1b141ab13d101fa7a2c4ab3a220307643d419655
+Author: Andrew LeTourneau <[email protected]>
+Date:   Tue Aug 13 12:08:47 2019 -0500
+
+    Adding in a '-delay ms' parameter to optionally prolong refreshx
+
+commit ac5126afc8e62dfc1fd69887984ba43fcb16e8eb
+Author: Alan Coopersmith <[email protected]>
+Date:   Wed Jul 13 15:46:06 2022 -0700
+
+    gitlab CI: stop requiring Signed-off-by in commits
+    
+    Signed-off-by: Alan Coopersmith <[email protected]>
+
 commit 8d1b74a3bf970609d1d2a2db5191bf7d67353197
 Author: Alan Coopersmith <[email protected]>
 Date:   Tue Jul 12 10:45:59 2022 -0700
@@ -512,7 +542,7 @@
         configure cache, you cache it, and the cached value is probably wrong.
 
 commit 67d4877c3b7fcc2324da39842da689f8bdf6122d
-Author: Søren Sandmann Pedersen  <[email protected]>
+Author: Søren Sandmann Pedersen <[email protected]>
 Date:   Fri Jul 1 20:27:45 2005 +0000
 
     Build systems for xrdb, xrandr, xrefresh
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/xrefresh-1.0.7/config.h.in new/xrefresh-1.1.0/config.h.in
--- old/xrefresh-1.0.7/config.h.in      2022-07-12 19:49:36.000000000 +0200
+++ new/xrefresh-1.1.0/config.h.in      2024-03-04 00:18:31.000000000 +0100
@@ -15,7 +15,7 @@
 /* Define to 1 if you have the <stdlib.h> header file. */
 #undef HAVE_STDLIB_H
 
-/* Define to 1 if you have the `strcasecmp' function. */
+/* Define to 1 if you have the 'strcasecmp' function. */
 #undef HAVE_STRCASECMP
 
 /* Define to 1 if you have the <strings.h> header file. */
@@ -66,12 +66,12 @@
 /* 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
 
-/* Enable extensions on AIX 3, Interix.  */
+/* Enable extensions on AIX, Interix, z/OS.  */
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
 #endif
@@ -132,11 +132,15 @@
 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
 # undef __STDC_WANT_IEC_60559_DFP_EXT__
 #endif
+/* Enable extensions specified by C23 Annex F.  */
+#ifndef __STDC_WANT_IEC_60559_EXT__
+# undef __STDC_WANT_IEC_60559_EXT__
+#endif
 /* Enable extensions specified by ISO/IEC TS 18661-4:2015.  */
 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
 # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
 #endif
-/* Enable extensions specified by ISO/IEC TS 18661-3:2015.  */
+/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015.  */
 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
 # undef __STDC_WANT_IEC_60559_TYPES_EXT__
 #endif
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/xrefresh-1.0.7/configure.ac new/xrefresh-1.1.0/configure.ac
--- old/xrefresh-1.0.7/configure.ac     2022-07-12 19:49:33.000000000 +0200
+++ new/xrefresh-1.1.0/configure.ac     2024-03-04 00:18:27.000000000 +0100
@@ -23,8 +23,8 @@
 
 # Initialize Autoconf
 AC_PREREQ([2.60])
-AC_INIT([xrefresh], [1.0.7],
-        [https://gitlab.freedesktop.org/xorg/app/xrefresh/issues], [xrefresh])
+AC_INIT([xrefresh], [1.1.0],
+        [https://gitlab.freedesktop.org/xorg/app/xrefresh/-/issues], 
[xrefresh])
 AC_CONFIG_SRCDIR([Makefile.am])
 AC_CONFIG_HEADERS([config.h])
 AC_USE_SYSTEM_EXTENSIONS
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/xrefresh-1.0.7/xrefresh.c new/xrefresh-1.1.0/xrefresh.c
--- old/xrefresh-1.0.7/xrefresh.c       2022-07-12 19:49:33.000000000 +0200
+++ new/xrefresh-1.1.0/xrefresh.c       2024-03-04 00:18:27.000000000 +0100
@@ -70,9 +70,11 @@
 static char *ProgramName;
 
 static void _X_NORETURN _X_COLD
-Syntax(void)
+Syntax(int exitval)
 {
-    fprintf (stderr, "usage:  %s [-options] [geometry] [display]\n\n%s",
+    FILE *out = (exitval == EXIT_SUCCESS) ? stdout : stderr;
+
+    fprintf (out, "usage:  %s [-options] [geometry] [display]\n\n%s",
             ProgramName,
             "where the available options are:\n"
             "    -display host:dpy       or -d\n"
@@ -82,24 +84,25 @@
             "    -solid colorname        use the color indicated\n"
             "    -root                   use the root background\n"
             "    -none                   no background in window\n"
+            "    -delay ms               time to hold refresh\n"
             "    -version                print program version\n"
        );
-    fprintf (stderr, "\nThe default is:  %s -none\n\n", ProgramName);
-    exit (1);
+    fprintf(out, "\nThe default is:  %s -none -delay 0\n\n", ProgramName);
+    exit (exitval);
 }
 
 static void _X_NORETURN _X_COLD
 missing_arg(const char *arg)
 {
     fprintf (stderr, "%s: %s requires an argument\n\n", ProgramName, arg);
-    Syntax ();
+    Syntax (EXIT_FAILURE);
 }
 
 static void _X_NORETURN _X_COLD
 unknown_arg(const char *arg)
 {
     fprintf (stderr, "%s: unrecognized argument %s\n\n", ProgramName, arg);
-    Syntax ();
+    Syntax (EXIT_FAILURE);
 }
 
 /*
@@ -191,11 +194,13 @@
     unsigned long mask;
     int screen;
     int x, y, width, height;
+    unsigned long delay = 0;
     char *geom = NULL;
     int geom_result;
     int display_width, display_height;
     char *solidcolor = NULL;
     XColor cdef;
+    struct timespec tim;
 
     ProgramName = argv[0];
 
@@ -228,9 +233,17 @@
            } else if (isabbreviation ("-root", arg, 2)) {
                action = doRoot;
                continue;
-           } else if (isabbreviation ("-version", arg, 1)) {
+           } else if (isabbreviation("-delay", arg, 2)) {
+               if (++i >= argc) missing_arg(arg);
+               delay = ((unsigned long)atol(argv[i])) * 1000000L;
+               continue;
+           }
+           else if (isabbreviation ("-version", arg, 1)) {
                puts(PACKAGE_STRING);
-               exit(0);
+               exit(EXIT_SUCCESS);
+            }
+           else if (isabbreviation ("-help", arg, 1)) {
+               Syntax(EXIT_SUCCESS);
            } else 
                unknown_arg (arg);
        } else if (arg[0] == '=')                       /* obsolete */
@@ -376,6 +389,15 @@
      * backing store;  or do a ClearArea generating exposures on all windows
      */
     XMapWindow (dpy, win);
+    /* flushing, because sometimes window will never show (especially for
+        * exceptionally short delays) */
+    XFlush(dpy);
+
+    /* pause before returning screen */
+    tim.tv_sec = delay / 1000000000L;
+    tim.tv_nsec = delay % 1000000000L;
+    nanosleep(&tim , NULL);
+
     /* the following will free the color that we might have allocated */
     XCloseDisplay (dpy);
     exit (0);

Reply via email to