Hello community,

here is the log from the commit of package pcfclock for openSUSE:Factory 
checked in at 2020-09-22 21:13:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pcfclock (Old)
 and      /work/SRC/openSUSE:Factory/.pcfclock.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pcfclock"

Tue Sep 22 21:13:05 2020 rev:25 rq:835951 version:0.44

Changes:
--------
--- /work/SRC/openSUSE:Factory/pcfclock/pcfclock.changes        2018-06-29 
22:29:42.830332856 +0200
+++ /work/SRC/openSUSE:Factory/.pcfclock.new.4249/pcfclock.changes      
2020-09-22 21:14:10.292086379 +0200
@@ -1,0 +2,6 @@
+Tue Sep 22 01:21:38 CEST 2020 - [email protected]
+
+- add patch pcfclock-linux-5.8.patch to fix build with current
+  kernel 
+
+-------------------------------------------------------------------

New:
----
  pcfclock-linux-5.8.patch

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

Other differences:
------------------
++++++ pcfclock.spec ++++++
--- /var/tmp/diff_new_pack.KcivzU/_old  2020-09-22 21:14:16.456091772 +0200
+++ /var/tmp/diff_new_pack.KcivzU/_new  2020-09-22 21:14:16.460091775 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package pcfclock
 #
-# 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/
 #
 
 
@@ -22,7 +22,7 @@
 Summary:        Pcfclock kernel driver
 License:        GPL-2.0-or-later
 Group:          System/Kernel
-Url:            http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html
+URL:            http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html
 Source:         pcfclock-%{version}.tar.gz
 Source1:        Makefile
 Source2:        preamble
@@ -33,6 +33,7 @@
 Patch3:         pcfclock-include.patch
 Patch4:         pcfclock-linux-3.19.patch
 Patch5:         pcfclock-linux-4.12.patch
+Patch6:         pcfclock-linux-5.8.patch
 BuildRequires:  kernel-source
 BuildRequires:  kernel-syms
 BuildRequires:  libelf-devel
@@ -74,6 +75,7 @@
 %patch3
 %patch4
 %patch5
+%patch6
 mkdir source
 mkdir obj
 cp -a linux/pcfclock.c %{SOURCE1} \

++++++ pcfclock-linux-5.8.patch ++++++
--- linux/pcfclock.c    2020/09/21 23:17:26     1.1
+++ linux/pcfclock.c    2020/09/21 23:34:20
@@ -445,8 +445,21 @@
        char name[8];
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0)
        pcfclock_table[n].dev =
            parport_register_device(port, "pcfclock", NULL, NULL, NULL, 0, 
NULL);
+#else
+       struct pardev_cb pdev_cb = {
+           .preempt = NULL,
+           .wakeup = NULL,
+           .private = NULL,
+           .irq_func = NULL,
+           .flags = 0,
+       };
+
+       pcfclock_table[n].dev =
+           parport_register_dev_model(port, "pcfclock", &pdev_cb, n);
+#endif
        if (pcfclock_table[n].dev == NULL)
                return 1;
 

Reply via email to