aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/qemu-kvm/fixup_udev_rules_file.diff6
-rw-r--r--system/qemu-kvm/qemu-kvm.SlackBuild5
2 files changed, 10 insertions, 1 deletions
diff --git a/system/qemu-kvm/fixup_udev_rules_file.diff b/system/qemu-kvm/fixup_udev_rules_file.diff
new file mode 100644
index 0000000000000..4ce2a7fe9b2a4
--- /dev/null
+++ b/system/qemu-kvm/fixup_udev_rules_file.diff
@@ -0,0 +1,6 @@
+diff -Nur qemu-kvm-0.12.3.orig//kvm/scripts/65-kvm.rules qemu-kvm-0.12.3/kvm/scripts/65-kvm.rules
+--- qemu-kvm-0.12.3.orig//kvm/scripts/65-kvm.rules 2010-02-25 20:34:00.000000000 -0600
++++ qemu-kvm-0.12.3/kvm/scripts/65-kvm.rules 2010-06-05 01:06:04.126447475 -0500
+@@ -1 +1 @@
+-KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660"
++KERNEL=="kvm", GROUP="kvm", MODE="0660"
diff --git a/system/qemu-kvm/qemu-kvm.SlackBuild b/system/qemu-kvm/qemu-kvm.SlackBuild
index 3760139a103b9..463dee31254b4 100644
--- a/system/qemu-kvm/qemu-kvm.SlackBuild
+++ b/system/qemu-kvm/qemu-kvm.SlackBuild
@@ -23,7 +23,7 @@
PRGNAM=qemu-kvm
VERSION=${VERSION:-0.12.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# The script is set to build all possible Linux Target CPU emulators by default.
@@ -87,6 +87,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Remove the unneeded (and warning-inducing) NAME= setting from the udev rules
+patch -p1 < $CWD/fixup_udev_rules_file.diff
+
# This translates the possible targets into the correct format for configure
TARGETS="$(for i in $BUILD_ARCH ; do printf "$i-softmmu " ; done)"