Hello community,

here is the log from the commit of package dracut for openSUSE:Factory checked 
in at 2019-03-12 09:50:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dracut (Old)
 and      /work/SRC/openSUSE:Factory/.dracut.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dracut"

Tue Mar 12 09:50:23 2019 rev:135 rq:684094 version:044.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/dracut/dracut.changes    2019-03-05 
12:15:10.905028185 +0100
+++ /work/SRC/openSUSE:Factory/.dracut.new.28833/dracut.changes 2019-03-12 
09:50:25.563573807 +0100
@@ -1,0 +2,11 @@
+Mon Mar 11 17:02:07 UTC 2019 - Daniel Molkentin <[email protected]>
+
+- Check SUSE kernel module dependencies recursively (bsc#1127891)
+  * adds 0594-Check-SUSE-kernel-module-dependencies-recursively.patch
+
+-------------------------------------------------------------------
+Thu Feb 28 20:09:28 UTC 2019 - Michal Suchanek <[email protected]>
+
+- Handle non-versioned dependency in purge-kernels.
+
+-------------------------------------------------------------------

New:
----
  0594-Check-SUSE-kernel-module-dependencies-recursively.patch

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

Other differences:
------------------
++++++ dracut.spec ++++++
--- /var/tmp/diff_new_pack.wBs9rw/_old  2019-03-12 09:50:28.515573218 +0100
+++ /var/tmp/diff_new_pack.wBs9rw/_new  2019-03-12 09:50:28.515573218 +0100
@@ -431,6 +431,8 @@
 Patch592:       0592-95iscsi-handle-qedi-like-bnx2i.patch
 # Patch adopted from upstream commit e7ba1392e180eb6f5e19dfd28a340a98cf09a3cd
 Patch593:       0593-dracut-only-copy-xattr-if-root.patch
+# Patch specific to SUSE, not upstream
+Patch594:       0594-Check-SUSE-kernel-module-dependencies-recursively.patch
 
 BuildRequires:  asciidoc
 BuildRequires:  bash
@@ -742,6 +744,7 @@
 %patch591 -p1
 %patch592 -p1
 %patch593 -p1
+%patch594 -p1
 
 %build
 %configure\

++++++ 0594-Check-SUSE-kernel-module-dependencies-recursively.patch ++++++
>From 6ead8ad47fa141eca039c45f09805808a5ff7d4d Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <[email protected]>
Date: Mon, 11 Mar 2019 17:35:14 +0100
Subject: [PATCH] Check SUSE kernel module dependencies recursively

This fixes commit f29f334cf1638594f90bbf3e775917c610232785

Reference: bsc#1127891
---
 dracut-init.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dracut-init.sh b/dracut-init.sh
index 65597ffa..74e2086d 100644
--- a/dracut-init.sh
+++ b/dracut-init.sh
@@ -954,7 +954,7 @@ for_each_kmod_dep() {
     for suse_mod_dep in ${suse_mod_deps["${_kmod%.ko*}"]}; do
         _modpath=$(modinfo -k "$kernel" -F filename "$suse_mod_dep" 2> 
/dev/null)
         [ -n "$_modpath" ] || continue
-        for_each_kmod_dep "$_func" "$_modpath" "$@"
+        for_each_kmod_dep "$_func" $(basename "${_modpath%.ko*}") "$@"
         $_func ${_modpath} || exit $?
     done
 }
-- 
2.16.4

++++++ purge-kernels ++++++
--- /var/tmp/diff_new_pack.wBs9rw/_old  2019-03-12 09:50:28.907573140 +0100
+++ /var/tmp/diff_new_pack.wBs9rw/_new  2019-03-12 09:50:28.907573140 +0100
@@ -272,7 +272,7 @@
        my $name = shift @_;
        my $version = shift @_;
        my @packages = @_;
-       my $expr = "^" . quotemeta("$name-$version");
+       my $expr = "^" . quotemeta($version ? "$name-$version" : $name);
        my @found = grep { $_ =~ $expr } @packages;
        return @found if @found;
        $expr = "^" . quotemeta($name) . " = " . quotemeta($version) . "\$";
@@ -334,12 +334,12 @@
                                push(@packages, $1) unless $new_packages{$1};
                                $new_packages{$1} = 1;
                                $retry = 1;
-                       } elsif (/([^ \t]*) = ([^ \t]*) is needed by 
\(installed\) /) {
+                       } elsif (/([^ \t]*)(?: = ([^ \t]*))? is needed by 
\(installed\) /) {
                                my @unremovable = find_package($1, $2, 
@packages);
                                my $match = $unremovable[$#unremovable];
                                if ($match) {
                                        print STDERR "$0: $_\n";
-                                       print STDERR "$0: Keeping $1 = $2 
($match)\n";
+                                       print STDERR "$0: Keeping " . ($2 ? "$1 
= $2" : $1) . " ($match)\n";
                                        @packages = grep { $_ !~ $match } 
@packages;
                                        $taboo_packages{$match} = 1;
                                        $retry = 1;


Reply via email to