SHA256
1
0
forked from pool/vhba-kmp

- Add vhba-devname.diff

OBS-URL: https://build.opensuse.org/package/show/filesystems/vhba-kmp?expand=0&rev=18
This commit is contained in:
Jan Engelhardt 2015-11-23 22:36:51 +00:00 committed by Git OBS Bridge
parent bc199254ba
commit 89b18088ff
3 changed files with 31 additions and 2 deletions

23
vhba-devname.diff Normal file
View File

@ -0,0 +1,23 @@
From: Jan Engelhardt <jengelh@inai.de>
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");

View File

@ -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

View File

@ -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