Hello community, here is the log from the commit of package xbacklight for openSUSE:Factory checked in at 2019-07-16 08:41:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xbacklight (Old) and /work/SRC/openSUSE:Factory/.xbacklight.new.1887 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xbacklight" Tue Jul 16 08:41:52 2019 rev:10 rq:715446 version:1.2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/xbacklight/xbacklight.changes 2018-04-19 15:28:11.694229478 +0200 +++ /work/SRC/openSUSE:Factory/.xbacklight.new.1887/xbacklight.changes 2019-07-16 08:41:54.719023442 +0200 @@ -1,0 +2,10 @@ +Mon Jul 15 09:52:14 UTC 2019 - Stefan Dirsch <[email protected]> + +- update to 1.2.3 + * atof_or_die: Also die if nothing was converted + * exit if conv. from string to double fails + * Properly round the new brightness value + * Update configure.ac bug URL for gitlab migration + * Update README for gitlab migration + +------------------------------------------------------------------- Old: ---- xbacklight-1.2.2.tar.bz2 New: ---- xbacklight-1.2.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xbacklight.spec ++++++ --- /var/tmp/diff_new_pack.s2jWxG/_old 2019-07-16 08:41:55.279023140 +0200 +++ /var/tmp/diff_new_pack.s2jWxG/_new 2019-07-16 08:41:55.283023139 +0200 @@ -1,7 +1,7 @@ # # spec file for package xbacklight # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,12 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: xbacklight -Version: 1.2.2 +Version: 1.2.3 Release: 0 Summary: Utility to adjust the screen backlight brightness License: MIT @@ -63,7 +63,7 @@ %files %defattr(-,root,root) -%doc COPYING README +%doc COPYING README.md %{_bindir}/xbacklight %{_mandir}/man1/xbacklight.1%{?ext_man} ++++++ xbacklight-1.2.2.tar.bz2 -> xbacklight-1.2.3.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbacklight-1.2.2/ChangeLog new/xbacklight-1.2.3/ChangeLog --- old/xbacklight-1.2.2/ChangeLog 2018-03-10 02:36:28.000000000 +0100 +++ new/xbacklight-1.2.3/ChangeLog 2019-07-14 20:26:17.000000000 +0200 @@ -1,3 +1,63 @@ +commit 76de9d7a0faeb74b7d5d8b5dfcf632c6c1eae879 +Author: Alan Coopersmith <[email protected]> +Date: Sun Jul 14 11:25:03 2019 -0700 + + xbacklight 1.2.3 + + Signed-off-by: Alan Coopersmith <[email protected]> + +commit 5172321febbd76a55f32c859996d8923333da3a1 +Author: Alan Coopersmith <[email protected]> +Date: Sun Jun 9 13:23:06 2019 -0700 + + atof_or_die: Also die if nothing was converted + + Needed on Solaris to catch errors with strings that have no numbers + + Signed-off-by: Alan Coopersmith <[email protected]> + +commit 92de87f30c2fd25245e3e345633fe497665b5448 +Author: Roberto Ricci <[email protected]> +Date: Sun Feb 11 17:12:14 2018 +0100 + + exit if conv. from string to double fails + + atof(3), whose return value is undefined on error, is used to parse + command line arguments, leading to undefined beavior if something else + than a number is specified. + this patch uses strtod(3) and exits on error. + + Signed-off-by: Roberto Ricci <[email protected]> + Signed-off-by: Alan Coopersmith <[email protected]> + +commit ce6001abfc93c8309fd9ece97e0f8783dd64f346 +Author: Roman Donchenko <[email protected]> +Date: Wed Apr 3 00:09:20 2013 +0400 + + Properly round the new brightness value + + Previously, it was always rounded down, which meant that -dec X would + result in a bigger change than -inc X for the same X if rounding took place. + + Signed-off-by: Roman Donchenko <[email protected]> + Signed-off-by: Alan Coopersmith <[email protected]> + +commit 31d4c5d6c10d1547d0031a36ed7c57b78d048fea +Author: Alan Coopersmith <[email protected]> +Date: Wed Nov 21 16:58:46 2018 -0800 + + Update configure.ac bug URL for gitlab migration + + Signed-off-by: Alan Coopersmith <[email protected]> + +commit 12274b4d4b3c76e90e9417efb1c7b2f39fc55e7a +Author: Alan Coopersmith <[email protected]> +Date: Fri Nov 16 21:09:45 2018 -0800 + + Update README for gitlab migration + + Signed-off-by: Alan Coopersmith <[email protected]> + commit 8709d1efd4b8131ddc0a04229bc148a6f473d6f0 Author: Alan Coopersmith <[email protected]> Date: Fri Mar 9 17:35:30 2018 -0800 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbacklight-1.2.2/Makefile.am new/xbacklight-1.2.3/Makefile.am --- old/xbacklight-1.2.2/Makefile.am 2018-03-10 02:36:19.000000000 +0100 +++ new/xbacklight-1.2.3/Makefile.am 2019-07-14 20:26:07.000000000 +0200 @@ -41,3 +41,5 @@ $(CHANGELOG_CMD) dist-hook: ChangeLog INSTALL + +EXTRA_DIST = README.md diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbacklight-1.2.2/Makefile.in new/xbacklight-1.2.3/Makefile.in --- old/xbacklight-1.2.2/Makefile.in 2018-03-10 02:36:23.000000000 +0100 +++ new/xbacklight-1.2.3/Makefile.in 2019-07-14 20:26:11.000000000 +0200 @@ -203,8 +203,8 @@ CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in COPYING \ - ChangeLog INSTALL README compile config.guess config.sub \ - depcomp install-sh missing + ChangeLog INSTALL compile config.guess config.sub depcomp \ + install-sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) @@ -375,6 +375,7 @@ xbacklight.c MAINTAINERCLEANFILES = ChangeLog INSTALL +EXTRA_DIST = README.md all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbacklight-1.2.2/README new/xbacklight-1.2.3/README --- old/xbacklight-1.2.2/README 2018-03-10 02:36:19.000000000 +0100 +++ new/xbacklight-1.2.3/README 1970-01-01 01:00:00.000000000 +0100 @@ -1,28 +0,0 @@ -Xbacklight is used to adjust the backlight brightness where supported. -It uses the RandR extension to find all outputs on the X server -supporting backlight brightness control and changes them all in the -same way. - -All questions regarding this software should be directed at the -Xorg mailing list: - - http://lists.freedesktop.org/mailman/listinfo/xorg - -Please submit bug reports to the Xorg bugzilla: - - https://bugs.freedesktop.org/enter_bug.cgi?product=xorg - -The master development code repository can be found at: - - git://anongit.freedesktop.org/git/xorg/app/xbacklight - - http://cgit.freedesktop.org/xorg/app/xbacklight - -For patch submission instructions, see: - - http://www.x.org/wiki/Development/Documentation/SubmittingPatches - -For more information on the git code manager, see: - - http://wiki.x.org/wiki/GitPage - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbacklight-1.2.2/README.md new/xbacklight-1.2.3/README.md --- old/xbacklight-1.2.2/README.md 1970-01-01 01:00:00.000000000 +0100 +++ new/xbacklight-1.2.3/README.md 2019-07-14 20:26:07.000000000 +0200 @@ -0,0 +1,20 @@ +Xbacklight is used to adjust the backlight brightness where supported. +It uses the RandR extension to find all outputs on the X server +supporting backlight brightness control and changes them all in the +same way. + +All questions regarding this software should be directed at the +Xorg mailing list: + + https://lists.x.org/mailman/listinfo/xorg + +The master development code repository can be found at: + + https://gitlab.freedesktop.org/xorg/app/xbacklight + +Please submit bug reports and requests to merge patches there. + +For patch submission instructions, see: + + https://www.x.org/wiki/Development/Documentation/SubmittingPatches + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbacklight-1.2.2/configure new/xbacklight-1.2.3/configure --- old/xbacklight-1.2.2/configure 2018-03-10 02:36:22.000000000 +0100 +++ new/xbacklight-1.2.3/configure 2019-07-14 20:26:10.000000000 +0200 @@ -1,8 +1,8 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for xbacklight 1.2.2. +# Generated by GNU Autoconf 2.69 for xbacklight 1.2.3. # -# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. +# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xbacklight/issues>. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -267,7 +267,7 @@ $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell [email protected] and -$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg +$0: https://gitlab.freedesktop.org/xorg/app/xbacklight/issues $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do @@ -581,9 +581,9 @@ # Identity of this package. PACKAGE_NAME='xbacklight' PACKAGE_TARNAME='xbacklight' -PACKAGE_VERSION='1.2.2' -PACKAGE_STRING='xbacklight 1.2.2' -PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' +PACKAGE_VERSION='1.2.3' +PACKAGE_STRING='xbacklight 1.2.3' +PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xbacklight/issues' PACKAGE_URL='' ac_unique_file="Makefile.am" @@ -1307,7 +1307,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures xbacklight 1.2.2 to adapt to many kinds of systems. +\`configure' configures xbacklight 1.2.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1377,7 +1377,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of xbacklight 1.2.2:";; + short | recursive ) echo "Configuration of xbacklight 1.2.3:";; esac cat <<\_ACEOF @@ -1419,7 +1419,7 @@ Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. -Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. +Report bugs to <https://gitlab.freedesktop.org/xorg/app/xbacklight/issues>. _ACEOF ac_status=$? fi @@ -1482,7 +1482,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -xbacklight configure 1.2.2 +xbacklight configure 1.2.3 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1739,7 +1739,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by xbacklight $as_me 1.2.2, which was +It was created by xbacklight $as_me 1.2.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2607,7 +2607,7 @@ # Define the identity of the package. PACKAGE='xbacklight' - VERSION='1.2.2' + VERSION='1.2.3' cat >>confdefs.h <<_ACEOF @@ -11226,7 +11226,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by xbacklight $as_me 1.2.2, which was +This file was extended by xbacklight $as_me 1.2.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -11286,13 +11286,13 @@ Configuration commands: $config_commands -Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." +Report bugs to <https://gitlab.freedesktop.org/xorg/app/xbacklight/issues>." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -xbacklight config.status 1.2.2 +xbacklight config.status 1.2.3 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbacklight-1.2.2/configure.ac new/xbacklight-1.2.3/configure.ac --- old/xbacklight-1.2.2/configure.ac 2018-03-10 02:36:19.000000000 +0100 +++ new/xbacklight-1.2.3/configure.ac 2019-07-14 20:26:07.000000000 +0200 @@ -23,8 +23,8 @@ # Initialize Autoconf AC_PREREQ([2.60]) -AC_INIT([xbacklight], [1.2.2], - [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], +AC_INIT([xbacklight], [1.2.3], + [https://gitlab.freedesktop.org/xorg/app/xbacklight/issues], [xbacklight]) AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([config.h]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbacklight-1.2.2/xbacklight.c new/xbacklight-1.2.3/xbacklight.c --- old/xbacklight-1.2.2/xbacklight.c 2018-03-10 02:36:19.000000000 +0100 +++ new/xbacklight-1.2.3/xbacklight.c 2019-07-14 20:26:07.000000000 +0200 @@ -26,6 +26,7 @@ #include <stdio.h> #include <stdlib.h> +#include <errno.h> #include <xcb/xcb.h> #include <xcb/xcb_util.h> @@ -59,6 +60,20 @@ exit (exitcode); } +static double +atof_or_die (char *str) +{ + double retval; + char *endptr = NULL; + errno = 0; + retval = strtod(str, &endptr); + if ((errno != 0) || (endptr == str)) { + fprintf(stderr, "%s: invalid argument '%s'\n", program_name, str); + usage(1); + } + return retval; +} + static void missing_arg (const char *option) { @@ -150,39 +165,39 @@ { if (++i >= argc) missing_arg (argv[i-1]); op = Set; - value = atof (argv[i]); + value = atof_or_die (argv[i]); continue; } if (argv[i][0] == '=' && isdigit (argv[i][1])) { op = Set; - value = atof (argv[i] + 1); + value = atof_or_die (argv[i] + 1); continue; } if (!strcmp (argv[i], "-inc") || !strcmp (argv[i], "+")) { if (++i >= argc) missing_arg (argv[i-1]); op = Inc; - value = atof (argv[i]); + value = atof_or_die (argv[i]); continue; } if (argv[i][0] == '+' && isdigit (argv[i][1])) { op = Inc; - value = atof (argv[i] + 1); + value = atof_or_die (argv[i] + 1); continue; } if (!strcmp (argv[i], "-dec") || !strcmp (argv[i], "-")) { if (++i >= argc) missing_arg (argv[i-1]); op = Dec; - value = atof (argv[i]); + value = atof_or_die (argv[i]); continue; } if (argv[i][0] == '-' && isdigit (argv[i][1])) { op = Dec; - value = atof (argv[i] + 1); + value = atof_or_die (argv[i] + 1); continue; } if (!strcmp (argv[i], "-get") || !strcmp (argv[i], "-g")) @@ -328,7 +343,7 @@ cur = new; else cur += step; - backlight_set (conn, output, (long) cur); + backlight_set (conn, output, (long) (cur + 0.5)); xcb_flush (conn); usleep (total_time * 1000 / steps); }
