[Slackbuilds-users] mixxx bogus udev rules
yalhcru at gmail.com
Thu Jul 5 00:17:13 UTC 2018
After building (but not actually *installing*) audio/mixxx, I notice
this in dmesg output:
[4463837.124783] udevd: invalid key/value pair in file
/etc/udev/rules.d/mixxx.usb.rules on line 7, starting at character 99
[4463837.124791] udevd: hint: comments can only start at beginning of line
[4463837.124801] udevd: invalid key/value pair in file
/etc/udev/rules.d/mixxx.usb.rules on line 8, starting at character 99
[4463837.124803] udevd: hint: comments can only start at beginning of line
There are 2 issues here:
#1: The udev rules from upstream are invalid (causing this noise in
dmesg). Easy to fix:
sed -i 's,\(.*\) \(#.*\),\n\2\n\1,' res/linux/mixxx.usb.rules
...somewhere in mixxx.SlackBuild before the 'scons' commands.
#2: scons is installing the udev rules directly to /etc, rather than $PKG/etc.
>From the build log:
Install file: "res/linux/mixxx.usb.rules" as "/etc/udev/rules.d/mixxx.usb.rules"
scons: done building targets.
Looks like this is the only file (the rest of the "Install file" lines
are going to /tmp/SBo/package-mixxx/).
It also looks like it can be fixed with a one-line sed in the SlackBuild:
sed -i "s,/etc/udev/rules.d,$PKG&," src/SConscript
...somewhere before the 'scons' commands.
More information about the SlackBuilds-users