commit 1aab74e6334b8bef9b8d062e0dfc27ee6c976234
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Thu Jul 18 21:57:32 2013 +0200

    Rel 2. Preload crct10dif module when crc-t10dif is going to be loaded (uses 
its symbols without hard dependency).

 geninitrd-svn.patch | 89 ++++++-----------------------------------------------
 geninitrd.spec      |  6 ++--
 2 files changed, 13 insertions(+), 82 deletions(-)
---
diff --git a/geninitrd.spec b/geninitrd.spec
index 4a455ad..5ce63a2 100644
--- a/geninitrd.spec
+++ b/geninitrd.spec
@@ -7,12 +7,12 @@ Summary:      Creates an initial ramdisk image for preloading 
modules
 Summary(pl.UTF-8):     Narzędzie do tworzenia inicjalnego ramdysku używanego 
przy starcie systemu
 Name:          geninitrd
 Version:       12695
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications/System
 Source0:       %{name}-%{version}.tar.gz
 # Source0-md5: c6235c690934c87e5361bcf4a23b25db
-# svn diff http://svn.pld-linux.org/svn/geninitrd/trunk -r 12652:HEAD > 
geninitrd-svn.patch
+# svn diff http://svn.pld-linux.org/svn/geninitrd/trunk -r 12709:HEAD > 
geninitrd-svn.patch
 Patch0:                %{name}-svn.patch
 URL:           http://svn.pld-linux.org/trac/svn/wiki/packages/geninitrd
 BuildRequires: xmlto >= 0:0.0.18-1
@@ -87,7 +87,7 @@ bieżących informacji zawartych w /etc/modules.conf.
 
 %prep
 %setup -q
-#%patch0 -p0
+%patch0 -p0
 
 %build
 %{__make}
diff --git a/geninitrd-svn.patch b/geninitrd-svn.patch
index c9f9c53..7c2e47e 100644
--- a/geninitrd-svn.patch
+++ b/geninitrd-svn.patch
@@ -1,83 +1,14 @@
 Index: geninitrd
 ===================================================================
---- geninitrd  (wersja 12652)
-+++ geninitrd  (wersja 12655)
-@@ -388,6 +388,10 @@
+--- geninitrd  (wersja 12709)
++++ geninitrd  (wersja 12710)
+@@ -395,6 +395,9 @@
+                       # XXX: find a away to autodetect
+                       smodule=$(basename_module $modpath)
+                       case "$smodule" in
++                              crc-t10dif)
++                                      find_depmod "-crct10dif"
++                                      ;;
+                               libcrc32c)
                                        find_depmod "-crc32c-intel"
                                        find_depmod "-crc32c"
-                                       ;;
-+                              virtio_blk|virtio_scsi)
-+                                      find_depmod "-virtio_pci"
-+                                      find_depmod "-virtio_mmio"
-+                                      ;;
-                       esac
- 
-                       echo $modpath
-Index: functions
-===================================================================
---- functions  (wersja 12652)
-+++ functions  (wersja 12655)
-@@ -207,13 +207,17 @@
-       fi
- 
-       echo $modaliases | xargs modprobe --set-version $kernel -aRn | awk '
--              BEGIN { skip_modules[notexisting_module]=""; modules[1]=""; 
xhci=""; ehci=""; ohci=""; uhci="" }
-+              BEGIN { skip_modules[notexisting_module]=""; modules[1]=""; 
xhci=""; ehci_pci=""; ehci_hcd=""; ehci_platform=""; ohci=""; uhci="" }
-               {
-                       module=$1
-                       if (module == "xhci_hcd") {
-                               xhci="xhci_hcd"
-                       } else if (module == "ehci_hcd") {
--                              ehci="ehci_hcd"
-+                              ehci_hcd="ehci_hcd"
-+                      } else if (module == "ehci_pci") {
-+                              ehci_pci="ehci_pci"
-+                      } else if (module == "ehci_platform") {
-+                              ehci_platform="ehci_platform"
-                       } else if (module == "ohci_hcd") {
-                               ohci="ohci_hcd"
-                       } else if (module == "uhci_hcd") {
-@@ -224,8 +228,8 @@
-                       skip_modules[module]=1;
-               }
-               END {
--                      # xhci/ehci/ohci/uhci hack to preserve such order
--                      printf "%s %s %s %s ", xhci, ehci, ohci, uhci;
-+                      # ehci/ohci/uhci/xhci hack to preserve such order
-+                      printf "%s %s %s %s %s %s ", ehci_hcd, ehci_pci, 
ehci_platform, ohci, uhci, xhci;
-                       for (i in modules) { printf "%s ", modules[i]; };
-               }
-       '
-@@ -255,7 +259,7 @@
-       fi
- 
-       LC_ALL=C lspci -p "$pcimap" -kvmmn | awk -vreq_class="${req_class}" '
--              BEGIN      { skip_modules[notexisting_module]=""; 
modules[1]=""; xhci=""; ehci=""; ohci=""; uhci="" }
-+              BEGIN      { skip_modules[notexisting_module]=""; 
modules[1]=""; xhci=""; ehci_pci=""; ehci_hcd=""; ehci_platform=""; ohci=""; 
uhci="" }
-               /^Slot:/   { found=0 }
-               /^Class:/  { if (req_class == $2) { found = 1 } }
-               /^Driver:/ { if (found) {
-@@ -263,7 +267,11 @@
-                               if (module == "xhci_hcd") {
-                                       xhci = "xhci_hcd"
-                               } else if (module == "ehci_hcd") {
--                                      ehci = "ehci_hcd"
-+                                      ehci_hcd = "ehci_hcd"
-+                              } else if (module == "ehci_pci") {
-+                                      ehci_pci="ehci_pci"
-+                              } else if (module == "ehci_platform") {
-+                                      ehci_platform="ehci_platform"
-                               } else if (module == "ohci_hcd") {
-                                       ohci = "ohci_hcd"
-                               } else if (module == "uhci_hcd") {
-@@ -276,8 +284,8 @@
-                  found=0
-               }
-               END {
--                 # xhci/ehci/ohci/uhci hack to preserve such order
--                 printf "%s %s %s %s ", xhci, ehci, ohci, uhci;
-+                 # ehci/ohci/uhci/xhci hack to preserve such order
-+                 printf "%s %s %s %s %s %s ", ehci_hcd, ehci_pci, 
ehci_platform, ohci, uhci, xhci;
-                  for (i in modules) { printf "%s ", modules[i]; }
-               }
-       '
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/geninitrd.git/commitdiff/1aab74e6334b8bef9b8d062e0dfc27ee6c976234

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to