diff --git a/vhba-devname.diff b/vhba-devname.diff new file mode 100644 index 0000000..da8d662 --- /dev/null +++ b/vhba-devname.diff @@ -0,0 +1,23 @@ +From: Jan Engelhardt +Date: 2015-11-23 23:33:05.117741396 +0100 + +vhba: add devname alias + +depmod scans the devname aliases and populates +/lib/modules/X/modules.devname, which udev uses to prepopulate /dev +so that, in turn, a program can open a dev node and thereby cause +autoloading. + +--- + vhba.c | 1 + + 1 file changed, 1 insertion(+) + +Index: vhba-module-20140928/vhba.c +=================================================================== +--- vhba-module-20140928.orig/vhba.c ++++ vhba-module-20140928/vhba.c +@@ -1069,3 +1069,4 @@ static void __exit vhba_exit(void) + module_init(vhba_init); + module_exit(vhba_exit); + ++MODULE_ALIAS("devname:vhba"); diff --git a/vhba-kmp.changes b/vhba-kmp.changes index ca4b2ae..e0bbdd7 100644 --- a/vhba-kmp.changes +++ b/vhba-kmp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 23 22:32:50 UTC 2015 - jengelh@inai.de + +- Add vhba-devname.diff + ------------------------------------------------------------------- Thu Oct 2 14:14:22 UTC 2014 - jengelh@inai.de diff --git a/vhba-kmp.spec b/vhba-kmp.spec index 2ee6bce..d08664d 100644 --- a/vhba-kmp.spec +++ b/vhba-kmp.spec @@ -1,7 +1,7 @@ # # spec file for package vhba-kmp # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ Url: http://cdemu.sf.net/about/vhba/ Source: http://downloads.sf.net/cdemu/vhba-module-%version.tar.bz2 Source2: %name-preamble Patch1: vhba-no-werror.diff +Patch2: vhba-devname.diff BuildRequires: kernel-syms >= 2.6.20 BuildRequires: modutils BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -55,7 +56,7 @@ Linux. %prep echo %flavors_to_build %setup -qn vhba-module-%version -%patch -P 1 -p1 +%patch -P 1 -P 2 -p1 %build for flavor in %flavors_to_build; do