Hello community,

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

Package is "read-edid"

Wed Jun 10 00:48:14 2020 rev:3 rq:812692 version:3.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/read-edid/read-edid.changes      2018-08-27 
12:59:05.524799341 +0200
+++ /work/SRC/openSUSE:Factory/.read-edid.new.3606/read-edid.changes    
2020-06-10 00:48:16.198922038 +0200
@@ -1,0 +2,6 @@
+Sun Jun  7 20:51:08 UTC 2020 - Michal Suchanek <msucha...@suse.com>
+
+- Fix build with gcc10.
+  * read-edid-fix-gcc10-build.patch
+
+-------------------------------------------------------------------

New:
----
  read-edid-fix-gcc10-build.patch

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

Other differences:
------------------
++++++ read-edid.spec ++++++
--- /var/tmp/diff_new_pack.GvHW36/_old  2020-06-10 00:48:16.726923420 +0200
+++ /var/tmp/diff_new_pack.GvHW36/_new  2020-06-10 00:48:16.730923430 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package read-edid
 #
-# Copyright (c) 2018 SUSE LINUX 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,7 +12,7 @@
 # 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/
 #
 
 
@@ -26,6 +26,7 @@
 Source0:        
http://polypux.org/projects/read-edid/read-edid-%{version}.tar.gz
 Patch0:         read-edid-fix-cmakelists.patch
 Patch1:         read-edid-code-cleanup.patch
+Patch2:         read-edid-fix-gcc10-build.patch
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 BuildRequires:  libx86-devel

++++++ read-edid-fix-gcc10-build.patch ++++++
diff -ur read-edid-3.0.2/get-edid/classic.c 
read-edid-3.0.2.mod/get-edid/classic.c
--- read-edid-3.0.2/get-edid/classic.c  2015-04-29 03:08:34.000000000 +0200
+++ read-edid-3.0.2.mod/get-edid/classic.c      2020-06-07 22:47:03.625342070 
+0200
@@ -26,7 +26,7 @@
 #define dosmemput(buffer,length,offset) memcpy(offset,buffer,length)
 
 #define display(...) if (quiet == 0) { fprintf(stderr, __VA_ARGS__); }
-int quiet;
+static int quiet;
 
 real_ptr far_ptr_to_real_ptr( uint32 farptr )
 {
diff -ur read-edid-3.0.2/get-edid/get-edid.c 
read-edid-3.0.2.mod/get-edid/get-edid.c
--- read-edid-3.0.2/get-edid/get-edid.c 2014-11-21 12:50:55.000000000 +0100
+++ read-edid-3.0.2.mod/get-edid/get-edid.c     2020-06-07 22:47:49.829985294 
+0200
@@ -9,10 +9,10 @@
 #include <stdlib.h>
 #include <string.h>
 
-int quiet=0;
-int i2conly=0; //0=both, 1=i2conly, 2=classiconly
-int i2cbus=-1;
-int classmon=0;
+static int quiet=0;
+static int i2conly=0; //0=both, 1=i2conly, 2=classiconly
+static int i2cbus=-1;
+static int classmon=0;
 
 #define display(...) if (quiet == 0) { fprintf(stderr, __VA_ARGS__); }
 #define version "3.0.2"

Reply via email to