Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package read-edid for openSUSE:Factory 
checked in at 2024-01-31 23:55:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/read-edid (Old)
 and      /work/SRC/openSUSE:Factory/.read-edid.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "read-edid"

Wed Jan 31 23:55:37 2024 rev:4 rq:1143145 version:3.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/read-edid/read-edid.changes      2020-06-10 
00:48:16.198922038 +0200
+++ /work/SRC/openSUSE:Factory/.read-edid.new.1815/read-edid.changes    
2024-01-31 23:55:53.701633109 +0100
@@ -1,0 +2,12 @@
+Wed Jan 31 21:22:26 UTC 2024 - Michal Suchanek <msucha...@suse.com>
+
+- Drop libx86 support, it's no longer maintained in Factory.
+
+-------------------------------------------------------------------
+Wed Jan 31 14:40:42 UTC 2024 - Michal Suchanek <msucha...@suse.com>
+
+- Add wrapper for get-edid (bsc#1219395)
+  * default to not calling VBE BIOS which may crash
+  * print a warning message when i2c-dev driver is not loaded
+
+-------------------------------------------------------------------

New:
----
  read-edid-wrapper

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

Other differences:
------------------
++++++ read-edid.spec ++++++
--- /var/tmp/diff_new_pack.ckswCY/_old  2024-01-31 23:55:54.177650286 +0100
+++ /var/tmp/diff_new_pack.ckswCY/_new  2024-01-31 23:55:54.177650286 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package read-edid
 #
-# Copyright (c) 2020 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
@@ -24,12 +24,15 @@
 Group:          System/X11/Utilities
 URL:            http://polypux.org/projects/read-edid/
 Source0:        
http://polypux.org/projects/read-edid/read-edid-%{version}.tar.gz
+Source1:        read-edid-wrapper
 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
+BuildRequires:  sed
+Recommends:     grep
+Recommends:     kmod-compat
 ExclusiveArch:  %{ix86} x86_64
 
 %description
@@ -47,11 +50,15 @@
 %autopatch -p1
 
 %build
-%cmake
+%cmake -DCLASSICBUILD=OFF
 make %{?_smp_mflags}
 
 %install
 %cmake_install
+mkdir -p %{buildroot}%{_libexecdir}
+mv %{buildroot}%{_bindir}/get-edid %{buildroot}%{_libexecdir}
+install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/get-edid
+sed -i -e "s|@LIBEXECDIR@|%{_libexecdir}|" %{buildroot}%{_bindir}/get-edid
 rm -f %{buildroot}%{_docdir}/read-edid/LICENSE
 
 %files
@@ -59,5 +66,6 @@
 %doc AUTHORS ChangeLog README
 %{_bindir}/get-edid
 %{_bindir}/parse-edid
+%{_libexecdir}/get-edid
 %{_mandir}/man1/get-edid.1%{?ext_man}
 

++++++ read-edid-wrapper ++++++
#!/bin/sh

GET_EDID=@LIBEXECDIR@/get-edid

is_classic() {
        while [ $# -gt 0 ] ; do
                if [ "$1" = '-c' ] ; then
                        return 0
                fi
                if [ "$1" = '--classiconly' ] ; then
                        return 0
                fi
                shift
        done
        return 1
end
}

check_i2c() {
        if lsmod | grep -Fe i2c_dev > /dev/null ; then
                return 0
        fi
        if modinfo i2c-dev | grep -Fe '(builtin)' > /dev/null ; then
                return 0
        fi
        echo Cannot find i2c-dev kernel module. Maybe it needs to be loaded 
first. >&2
        return 1
}


if is_classic "$@" ; then
        exec $GET_EDID "$@"
else
        check_i2c
        echo Using i2c bus only, use -c option to attempt a VBE BIOS call. >&2
        exec $GET_EDID -i "$@"
fi

Reply via email to