[Bug 874] udev-066

bugzilla at linuxfromscratch.org bugzilla at linuxfromscratch.org
Sat Aug 13 08:00:24 PDT 2005


http://bugs.linuxfromscratch.org/show_bug.cgi?id=874





------- Additional Comments From matthew at linuxfromscratch.org  2005-08-13 09:00 -------
Thanks Steve.  Looking at the Makefile and the source dir layout, it looks as if
the intention is for distro packagers to do:

make LOCAL_CFG_DIR=etc/udev/[distro name].  Trivial, completely untested patch
follows!

diff -Naur udev-066.orig/Makefile udev-066/Makefile
--- udev-066.orig/Makefile      2005-08-11 22:44:08.000000000 +0000
+++ udev-066/Makefile   2005-08-13 14:57:13.191929600 +0000
@@ -355,7 +355,7 @@
                echo $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.conf
$(DESTDIR)$(configdir); \
                $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.conf $(DESTDIR)$(configdir); \
        fi
-       @if [ ! -r $(DESTDIR)$(configdir)/rules.d/50-udev.rules ]; then \
+       @if [ ! -r $(DESTDIR)$(configdir)/rules.d/50-udev.rules -a -r
$(LOCAL_CFG_DIR)/udev.rules ]; then \
                echo $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.rules
$(DESTDIR)$(configdir)/rules.d/50-udev.rules; \
                $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.rules
$(DESTDIR)$(configdir)/rules.d/50-udev.rules; \
        fi

As for the uninstallation, that shouldn't cause much of a problem as the command
is preceded by a '-' meaning that `make' will ignore any errors it causes.

The alternative is to submit our rules file upstream and have them put it in an
etc/udev/lfs directory.  But then, "LFS is not a distro", so should we really be
going that route?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.



More information about the lfs-book mailing list