Hello community,

here is the log from the commit of package nvdock for openSUSE:Factory checked 
in at 2020-06-10 00:48:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nvdock (Old)
 and      /work/SRC/openSUSE:Factory/.nvdock.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nvdock"

Wed Jun 10 00:48:11 2020 rev:9 rq:812690 version:1.02

Changes:
--------
--- /work/SRC/openSUSE:Factory/nvdock/nvdock.changes    2011-09-23 
02:14:55.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.nvdock.new.3606/nvdock.changes  2020-06-10 
00:48:14.506917612 +0200
@@ -1,0 +2,7 @@
+Sun Jun  7 21:34:54 UTC 2020 - Michal Suchanek <[email protected]>
+
+- Use license compatibility cruft, cleanup spec file
+- Fix build with gcc10
+  * nvdock-fix-gcc10-build.patch
+
+-------------------------------------------------------------------

New:
----
  nvdock-fix-gcc10-build.patch

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

Other differences:
------------------
++++++ nvdock.spec ++++++
--- /var/tmp/diff_new_pack.L7aJ2n/_old  2020-06-10 00:48:15.202919432 +0200
+++ /var/tmp/diff_new_pack.L7aJ2n/_new  2020-06-10 00:48:15.202919432 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nvdock
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,19 +12,17 @@
 # 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:           nvdock
 Version:        1.02
-Release:        1
+Release:        0
 Summary:        Tray icon for launching NVIDIA Settings
-Group:          System/X11/Utilities
-
 License:        BSD-3-Clause
-Url:            http://www.opsat.net/development/nvdock/
+Group:          System/X11/Utilities
+URL:            https://www.opsat.net/development/nvdock/
 Source0:        
http://bobmajdakjr.googlecode.com/files/%{name}-%{version}.tar.bz2
 # The provided Makefile sucks, so I did this one. -- [email protected]
 Source1:        Makefile
@@ -33,9 +31,10 @@
 Source3:        %{name}-1.02-datadir.patch.in
 # PATCH-FIX-UPSTREAM nvdock-1.02-argptr.patch [email protected] - Get rid of 
"warning: cast to pointer from integer of different size"
 Patch0:         %{name}-1.02-argptr.patch
-
-BuildRequires:  pkgconfig(gtk+-2.0)
+Patch1:         %{name}-fix-gcc10-build.patch
+BuildRequires:  pkgconfig
 BuildRequires:  update-desktop-files
+BuildRequires:  pkgconfig(gtk+-2.0)
 
 %description
 Little NVIDIA tray icon.
@@ -45,8 +44,8 @@
 
 %prep
 %setup -q
-%patch0 -p1
-sed -i "s|@DATADIR@|%{_datadir}|g" %{SOURCE3} | patch -p1
+sed -e "s|@DATADIR@|%{_datadir}|g" < %{SOURCE3} | patch -p1
+%autopatch -p1
 
 %build
 make -C src -f %{SOURCE1} %{?_smp_mflags}
@@ -57,14 +56,23 @@
 install -m 644 -D %{SOURCE2} 
%{buildroot}%{_datadir}/applications/nvdock.desktop
 %suse_update_desktop_file nvdock
 
-%clean
-rm -rf %{buildroot}
+# Compatibility cruft
+# there is no %%license prior to SLE12
+%if %{undefined _defaultlicensedir}
+%define license %doc
+%else
+# filesystem before SLE12 SP3 lacks /usr/share/licenses
+%if 0%(test ! -d %{_defaultlicensedir} && echo 1)
+%define _defaultlicensedir %{_defaultdocdir}
+%endif
+%endif
+# End of compatibility cruft
 
 %files
-%defattr(-,root,root)
 %{_bindir}/nvdock
 %{_datadir}/pixmaps/nvdock.png
 %{_datadir}/applications/nvdock.desktop
-%doc COPYING ChangeLog README TODO
+%license COPYING
+%doc ChangeLog README TODO
 
 %changelog

++++++ nvdock-fix-gcc10-build.patch ++++++
diff -ur nvdock-1.02.orig/src/nvdock.c nvdock-1.02/src/nvdock.c
--- nvdock-1.02.orig/src/nvdock.c       2020-06-07 23:45:25.322091577 +0200
+++ nvdock-1.02/src/nvdock.c    2020-06-07 23:54:36.049756123 +0200
@@ -33,6 +33,9 @@
 
 #include "nvdock.h"
 
+argstruct *arg;
+BobStatusIcon *bsi;
+
 void
 bob_main_quit(void) {
        gtk_main_quit();
diff -ur nvdock-1.02.orig/src/nvdock.h nvdock-1.02/src/nvdock.h
--- nvdock-1.02.orig/src/nvdock.h       2020-06-07 23:45:25.322091577 +0200
+++ nvdock-1.02/src/nvdock.h    2020-06-07 23:57:10.671907728 +0200
@@ -83,8 +83,8 @@
 
 } argstruct;
 
-argstruct *arg;
-BobStatusIcon *bsi;
+extern argstruct *arg;
+extern BobStatusIcon *bsi;
 
 void argc_argv_parse(int argc, char **argv);
 
diff -ur nvdock-1.02.orig/src/util.c nvdock-1.02/src/util.c
--- nvdock-1.02.orig/src/util.c 2020-06-07 23:45:25.322091577 +0200
+++ nvdock-1.02/src/util.c      2020-06-08 00:02:32.440385202 +0200
@@ -112,7 +112,7 @@
 
        unsigned char len = strlen(string);
        int a = 0, iter = 0;
-       char new[len];
+       char new[len+1];
        unsigned char newlen;
 
        while(a < len) {

Reply via email to