summaryrefslogtreecommitdiff
path: root/source/a/eudev
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/eudev')
-rw-r--r--source/a/eudev/0001-fix-default-rules.patch37
-rw-r--r--source/a/eudev/0002-slackware-rules-adjust26
-rwxr-xr-xsource/a/eudev/eudev.SlackBuild8
3 files changed, 67 insertions, 4 deletions
diff --git a/source/a/eudev/0001-fix-default-rules.patch b/source/a/eudev/0001-fix-default-rules.patch
new file mode 100644
index 00000000..adbdf499
--- /dev/null
+++ b/source/a/eudev/0001-fix-default-rules.patch
@@ -0,0 +1,37 @@
+From a8ffcd1b985fb4b3e2c3a1cb9051bed86f69d3f3 Mon Sep 17 00:00:00 2001
+From: "Anthony G. Basile" <blueness@gentoo.org>
+Date: Fri, 21 Sep 2018 08:26:33 -0400
+Subject: [PATCH] rules/50-udev-default.rules: fix issue 160
+
+Thanks Joel Barrios (darkshram).
+
+Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
+---
+ rules/50-udev-default.rules | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/rules/50-udev-default.rules b/rules/50-udev-default.rules
+index 191f56f42..c2f4a19ec 100644
+--- a/rules/50-udev-default.rules
++++ b/rules/50-udev-default.rules
+@@ -36,8 +36,8 @@ SUBSYSTEM=="dvb", GROUP="video"
+ SUBSYSTEM=="media", GROUP="video"
+ SUBSYSTEM=="cec", GROUP="video"
+
+-SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="render", MODE="@GROUP_RENDER_MODE@"
+-SUBSYSTEM=="kfd", GROUP="render", MODE="@GROUP_RENDER_MODE@"
++SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="video", MODE="0666"
++SUBSYSTEM=="kfd", GROUP="video", MODE="0666"
+
+ SUBSYSTEM=="sound", GROUP="audio", \
+ OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer"
+@@ -79,7 +79,7 @@ KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
+ KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
+
+ # The static_node is required on s390x and ppc (they are using MODULE_ALIAS)
+-KERNEL=="kvm", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=kvm"
++KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"
+
+ SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
+
+
diff --git a/source/a/eudev/0002-slackware-rules-adjust b/source/a/eudev/0002-slackware-rules-adjust
new file mode 100644
index 00000000..0f053829
--- /dev/null
+++ b/source/a/eudev/0002-slackware-rules-adjust
@@ -0,0 +1,26 @@
+Video nodes, make premissions 0660 like they were previously.
+KVM node - doesn't apply to the usual Slackware $ARCHs, and if it's going
+to have 0666 perms there's no justification for adding a new group.
+
+--- ./rules/50-udev-default.rules.orig 2018-09-26 11:14:15.420462346 -0500
++++ ./rules/50-udev-default.rules 2018-09-26 11:17:23.224464356 -0500
+@@ -36,8 +36,8 @@
+ SUBSYSTEM=="media", GROUP="video"
+ SUBSYSTEM=="cec", GROUP="video"
+
+-SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="video", MODE="0666"
+-SUBSYSTEM=="kfd", GROUP="video", MODE="0666"
++SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="video", MODE="0660"
++SUBSYSTEM=="kfd", GROUP="video", MODE="0660"
+
+ SUBSYSTEM=="sound", GROUP="audio", \
+ OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer"
+@@ -79,7 +79,7 @@
+ KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
+
+ # The static_node is required on s390x and ppc (they are using MODULE_ALIAS)
+-KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"
++KERNEL=="kvm", MODE="0666", OPTIONS+="static_node=kvm"
+
+ SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
+
diff --git a/source/a/eudev/eudev.SlackBuild b/source/a/eudev/eudev.SlackBuild
index 2615147a..0a0e8bb1 100755
--- a/source/a/eudev/eudev.SlackBuild
+++ b/source/a/eudev/eudev.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=eudev
VERSION=${VERSION:-$(echo eudev-*.tar.?* | cut -d - -f 2 | rev | cut -f 3- -d . | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -76,9 +76,9 @@ zcat $CWD/60-cdrom_id.rules.diff.gz | patch -p1 --verbose || exit 1
# See: https://bugs.kde.org/show_bug.cgi?id=387454
zcat $CWD/eudev.ignore_bind_unbind_events.diff.gz | patch -p1 --verbose || exit 1
-# Get rid of unneeded groups that were added by systemd:
-sed -i 's/GROUP="render", //' rules/50-udev-default.rules
-sed -i 's/GROUP="kvm", //' rules/50-udev-default.rules
+# Fix issues with the default rules:
+zcat $CWD/0001-fix-default-rules.patch.gz | patch -p1 --verbose || exit 1
+zcat $CWD/0002-slackware-rules-adjust.gz | patch -p1 --verbose || exit 1
./configure \
--prefix=/usr \