On Tue, May 29, 2012 at 11:24:39PM -0700, Bryan Kadzban wrote: > > seems to generate the right set of binaries and files under > /tmp/udev-test. Of course we still have to rename > /lib/udev/systemd-udevd to plain old /lib/udev/udevd. (Or change the > target in rootlibexecdir, actually. Looks like our bootscripts already > handle the other path though.) Don't strictly need the DESTDIR either, > of course. > I got the following: root@ac4tv /home/ken #find /mnt/lfs/tmp/udev-test/ -type f /mnt/lfs/tmp/udev-test/lib/udev/ata_id /mnt/lfs/tmp/udev-test/lib/udev/v4l_id /mnt/lfs/tmp/udev-test/lib/udev/scsi_id /mnt/lfs/tmp/udev-test/lib/udev/collect /mnt/lfs/tmp/udev-test/lib/udev/systemd-udevd /mnt/lfs/tmp/udev-test/lib/udev/rules.d/99-systemd.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/60-persistent-alsa.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/50-udev-default.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/42-usb-hid-pm.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/60-persistent-storage-tape.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/60-persistent-v4l.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/75-tty-description.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/75-probe_mtd.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/95-udev-late.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/80-drivers.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/60-persistent-serial.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/61-accelerometer.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/60-persistent-storage.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/60-persistent-input.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/60-cdrom_id.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/70-uaccess.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/75-net-description.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/71-seat.rules /mnt/lfs/tmp/udev-test/lib/udev/rules.d/78-sound-card.rules /mnt/lfs/tmp/udev-test/lib/udev/accelerometer /mnt/lfs/tmp/udev-test/lib/udev/mtd_probe /mnt/lfs/tmp/udev-test/lib/udev/cdrom_id /mnt/lfs/tmp/udev-test/usr/share/man/man8/systemd-udevd.8 /mnt/lfs/tmp/udev-test/usr/share/man/man8/udevadm.8 /mnt/lfs/tmp/udev-test/usr/share/man/man7/udev.7 /mnt/lfs/tmp/udev-test/sbin/udevadm /mnt/lfs/tmp/udev-test/lib64/libudev.la /mnt/lfs/tmp/udev-test/lib64/libudev.a /mnt/lfs/tmp/udev-test/lib64/libudev.so.1.0.0 Also libudev.so.1 and libudev.so
Obviously /lib64 because you are on multilib. We'll use /lib, but I guess the shared lib needs to be accessible from /usr/lib. I'm missing /etc/udev/udev.conf [ probably unnecessary, but is in src/udev/udev.conf, can be installed by install-dist_udevconfDATA and creates the directory for 55-lfs.rules ] and the two pkgconfig files. udev.pc can be built and installed by install-sharepkgconfigDATA but it ought to be fixed to not point to /lib/systemd for udevdir. Upstream fixed that earlier this week: diff --git a/src/udev/udev.pc.in b/src/udev/udev.pc.in index 0b04c02..a0c2e82 100644 --- a/src/udev/udev.pc.in +++ b/src/udev/udev.pc.in @@ -2,4 +2,4 @@ Name: udev Description: udev Version: @VERSION@ -udevdir=@pkglibexecdir@ +udevdir=@udevlibexecdir@ So we can sed or patch that. libudev.pc only gets created and installed with a load of systemd*.pc files, in install-pkgconfiglibDATA. Among our options are to sed all the fields in the .pc.in, and to install the pkgconfiglib pc files and then remove all the others. Renaming systemd-udevd will make it visible to the current bootscript. I think elsewhere there was a decision to do without 99-systemd.rules. Certainly, with this approach there is no obvious reason to use a staging DESTDIR. I'm impressed with your grasp of libtool. Now, I need to get started on some baking, and later I'll try Bruce's version, with xorg and my own custom rules, if it gets that far. Will come back to this, I've got a backup. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page