[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH] Put udev rules in libdir and not always in /lib
From: |
Maciej Grela |
Subject: |
[gpsd-dev] [PATCH] Put udev rules in libdir and not always in /lib |
Date: |
Fri, 14 Dec 2012 00:31:59 +0000 |
Hi,
I've developed a patch for gpsd which improves the way that udev rules
are installed - they are put in libdir and not always in /lib. This
fixes build errors of gpsd on source-based distributions like Exherbo
which don't allow a package to install a plain /lib directory if /lib
is a symlink to /lib64. By using libdir this issue is resolved - if
the build script tells scons to use lib64 as the library destination,
the udev rules also end up there.
--- gpsd-3.7.orig/SConstruct 2012-07-02 22:48:16.000000000 +0000
+++ gpsd-3.7/SConstruct 2012-12-14 01:25:40.823098941 +0000
@@ -1631,15 +1631,15 @@ if env['python']:
# is plugged in.
Utility('udev-install', 'install', [
- 'mkdir -p ' + DESTDIR + '/lib/udev/rules.d',
- 'cp $SRCDIR/gpsd.rules ' + DESTDIR + '/lib/udev/rules.d/25-gpsd.rules',
- 'cp $SRCDIR/gpsd.hotplug ' + DESTDIR + '/lib/udev/',
- 'chmod a+x ' + DESTDIR + '/lib/udev/gpsd.hotplug',
+ 'mkdir -p ' + installdir('libdir', True) + '/udev/rules.d',
+ 'cp $SRCDIR/gpsd.rules ' + installdir('libdir', True) +
'/udev/rules.d/25-gpsd.rules',
+ 'cp $SRCDIR/gpsd.hotplug ' + installdir('libdir', True) + '/udev/',
+ 'chmod a+x ' + installdir('libdir', True) + '/udev/gpsd.hotplug',
])
Utility('udev-uninstall', '', [
- 'rm -f /lib/udev/gpsd.hotplug',
- 'rm -f /lib/udev/rules.d/25-gpsd.rules',
+ 'rm -f ' + installdir('libdir', True) + "/gpsd.hotplug",
+ 'rm -f ' + installdir('libdir', True) + '/udev/rules.d/25-gpsd.rules',
])
Utility('udev-test', '', [
Will you consider including this change to the gpsd source?
Regards,
Maciej Grela
- [gpsd-dev] [PATCH] Put udev rules in libdir and not always in /lib,
Maciej Grela <=