From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Lorenz To: development@lists.ipfire.org Subject: [PATCH 3/3] replace udev with eudev 3.2 Date: Sun, 04 Sep 2016 11:14:51 +0200 Message-ID: <20160904091451.18232-4-marcel.lorenz@ipfire.org> In-Reply-To: <20160904091451.18232-1-marcel.lorenz@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8702418680755495463==" List-Id: --===============8702418680755495463== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Marcel Lorenz --- config/eudev/config.cache | 3 ++ config/rootfiles/common/eudev | 69 ++++++++++++++++++++++++++++ config/rootfiles/common/udev | 102 ----------------------------------------= -- lfs/{udev =3D> eudev} | 49 +++++++++++--------- make.sh | 4 +- 5 files changed, 103 insertions(+), 124 deletions(-) create mode 100644 config/eudev/config.cache create mode 100644 config/rootfiles/common/eudev delete mode 100644 config/rootfiles/common/udev rename lfs/{udev =3D> eudev} (77%) diff --git a/config/eudev/config.cache b/config/eudev/config.cache new file mode 100644 index 0000000..7b275d4 --- /dev/null +++ b/config/eudev/config.cache @@ -0,0 +1,3 @@ +HAVE_BLKID=3D1 +BLKID_LIBS=3D"-lblkid" +BLKID_CFLAGS=3D"-I/tools/include" diff --git a/config/rootfiles/common/eudev b/config/rootfiles/common/eudev new file mode 100644 index 0000000..070b29b --- /dev/null +++ b/config/rootfiles/common/eudev @@ -0,0 +1,69 @@ +bin/udevadm +etc/modprobe.d/blacklist.conf +etc/udev +#etc/udev/hwdb.bin +#etc/udev/hwdb.d +#etc/udev/hwdb.d/20-OUI.hwdb +#etc/udev/hwdb.d/20-acpi-vendor.hwdb +#etc/udev/hwdb.d/20-bluetooth-vendor-product.hwdb +#etc/udev/hwdb.d/20-net-ifname.hwdb +#etc/udev/hwdb.d/20-pci-classes.hwdb +#etc/udev/hwdb.d/20-pci-vendor-model.hwdb +#etc/udev/hwdb.d/20-sdio-classes.hwdb +#etc/udev/hwdb.d/20-sdio-vendor-model.hwdb +#etc/udev/hwdb.d/20-usb-classes.hwdb +#etc/udev/hwdb.d/20-usb-vendor-model.hwdb +#etc/udev/hwdb.d/60-evdev.hwdb +#etc/udev/hwdb.d/60-keyboard.hwdb +#etc/udev/hwdb.d/70-mouse.hwdb +#etc/udev/hwdb.d/70-pointingstick.hwdb +#etc/udev/rules.d +#etc/udev/udev.conf +lib/libudev.so.1 +lib/libudev.so.1.6.3 +lib/udev +#lib/udev/ata_id +#lib/udev/cdrom_id +#lib/udev/collect +#lib/udev/enable_codel +#lib/udev/mtd_probe +#lib/udev/network-hotplug-macvtap +#lib/udev/network-hotplug-rename +#lib/udev/network-hotplug-vlan +#lib/udev/rules.d +#lib/udev/rules.d/25-alsa.rules +#lib/udev/rules.d/50-udev-default.rules +#lib/udev/rules.d/60-block.rules +#lib/udev/rules.d/60-cdrom_id.rules +#lib/udev/rules.d/60-drm.rules +#lib/udev/rules.d/60-evdev.rules +#lib/udev/rules.d/60-net.rules +#lib/udev/rules.d/60-persistent-alsa.rules +#lib/udev/rules.d/60-persistent-input.rules +#lib/udev/rules.d/60-persistent-storage-tape.rules +#lib/udev/rules.d/60-persistent-storage.rules +#lib/udev/rules.d/60-persistent-v4l.rules +#lib/udev/rules.d/60-serial.rules +#lib/udev/rules.d/64-btrfs.rules +#lib/udev/rules.d/70-mouse.rules +#lib/udev/rules.d/75-net-description.rules +#lib/udev/rules.d/75-probe_mtd.rules +#lib/udev/rules.d/78-sound-card.rules +#lib/udev/rules.d/80-drivers.rules =20 +#lib/udev/rules.d/90-hwrng.rules +#lib/udev/rules.d/99-codel.rules +#lib/udev/scsi_id +#lib/udev/v4l_id +sbin/udevadm +sbin/udevd +#usr/include/libudev.h +#usr/include/udev.h +#usr/lib/libudev.la +usr/lib/libudev.so +#usr/lib/pkgconfig/libudev.pc +#usr/share/man/man5/udev.conf.5 +#usr/share/man/man7/udev.7 +#usr/share/man/man8/udevadm.8 +#usr/share/man/man8/udevd.8 +#usr/share/pkgconfig +#usr/share/pkgconfig/udev.pc diff --git a/config/rootfiles/common/udev b/config/rootfiles/common/udev deleted file mode 100644 index e1f4bd5..0000000 --- a/config/rootfiles/common/udev +++ /dev/null @@ -1,102 +0,0 @@ -bin/udevadm -etc/modprobe.d/blacklist.conf -etc/udev -#etc/udev/rules.d -#etc/udev/rules.d/55-lfs.rules -#etc/udev/rules.d/81-cdrom.rules -#etc/udev/rules.d/83-cdrom-symlinks.rules -#etc/udev/udev.conf -#lib/firmware -lib/libudev.so.1 -lib/libudev.so.1.3.2 -lib/udev -#lib/udev/accelerometer -#lib/udev/ata_id -#lib/udev/cdrom_id -#lib/udev/collect -#lib/udev/devices -#lib/udev/devices/pts -#lib/udev/enable_codel -#lib/udev/hwdb.d -#lib/udev/hwdb.d/20-OUI.hwdb -#lib/udev/hwdb.d/20-acpi-vendor.hwdb -#lib/udev/hwdb.d/20-bluetooth-vendor-product.hwdb -#lib/udev/hwdb.d/20-pci-classes.hwdb -#lib/udev/hwdb.d/20-pci-vendor-model.hwdb -#lib/udev/hwdb.d/20-usb-classes.hwdb -#lib/udev/hwdb.d/20-usb-vendor-model.hwdb -#lib/udev/hwdb.d/60-keyboard.hwdb -#lib/udev/init-net-rules.sh -#lib/udev/mtd_probe -#lib/udev/network-hotplug-macvtap -#lib/udev/network-hotplug-rename -#lib/udev/network-hotplug-vlan -#lib/udev/rule_generator.functions -#lib/udev/rules.d -#lib/udev/rules.d/25-alsa.rules -#lib/udev/rules.d/42-usb-hid-pm.rules -#lib/udev/rules.d/50-firmware.rules -#lib/udev/rules.d/50-udev-default.rules -#lib/udev/rules.d/60-cdrom_id.rules -#lib/udev/rules.d/60-keyboard.rules -#lib/udev/rules.d/60-net.rules -#lib/udev/rules.d/60-persistent-alsa.rules -#lib/udev/rules.d/60-persistent-input.rules -#lib/udev/rules.d/60-persistent-serial.rules -#lib/udev/rules.d/60-persistent-storage-tape.rules -#lib/udev/rules.d/60-persistent-storage.rules -#lib/udev/rules.d/60-persistent-v4l.rules -#lib/udev/rules.d/61-accelerometer.rules -#lib/udev/rules.d/64-btrfs.rules -#lib/udev/rules.d/75-net-description.rules -#lib/udev/rules.d/75-probe_mtd.rules -#lib/udev/rules.d/75-tty-description.rules -#lib/udev/rules.d/78-sound-card.rules -#lib/udev/rules.d/80-drivers.rules -#lib/udev/rules.d/80-net-name-slot.rules -#lib/udev/rules.d/90-hwrng.rules -#lib/udev/rules.d/95-udev-late.rules -#lib/udev/rules.d/99-codel.rules -#lib/udev/scsi_id -#lib/udev/udevd -#lib/udev/v4l_id -#lib/udev/write_cd_rules -#lib/udev/write_net_rules -sbin/udevadm -sbin/udevd -#usr/include/libudev.h -#usr/lib/firmware -usr/lib/libudev.so -#usr/lib/pkgconfig/libudev.pc -#usr/lib/pkgconfig/udev.pc -#usr/share/doc/udev-208 -#usr/share/doc/udev-208/lfs -#usr/share/doc/udev-208/lfs/55-lfs.txt -#usr/share/doc/udev-208/lfs/README -#usr/share/doc/udev-208/libudev-overrides.txt -#usr/share/doc/udev-208/libudev-sections.txt -#usr/share/doc/udev-208/libudev.types -#usr/share/gtk-doc -#usr/share/gtk-doc/html -#usr/share/gtk-doc/html/libudev -#usr/share/gtk-doc/html/libudev/api-index-full.html -#usr/share/gtk-doc/html/libudev/ch01.html -#usr/share/gtk-doc/html/libudev/home.png -#usr/share/gtk-doc/html/libudev/index.html -#usr/share/gtk-doc/html/libudev/index.sgml -#usr/share/gtk-doc/html/libudev/left.png -#usr/share/gtk-doc/html/libudev/libudev-udev-device.html -#usr/share/gtk-doc/html/libudev/libudev-udev-enumerate.html -#usr/share/gtk-doc/html/libudev/libudev-udev-hwdb.html -#usr/share/gtk-doc/html/libudev/libudev-udev-list.html -#usr/share/gtk-doc/html/libudev/libudev-udev-monitor.html -#usr/share/gtk-doc/html/libudev/libudev-udev-queue.html -#usr/share/gtk-doc/html/libudev/libudev-udev-util.html -#usr/share/gtk-doc/html/libudev/libudev-udev.html -#usr/share/gtk-doc/html/libudev/libudev.devhelp2 -#usr/share/gtk-doc/html/libudev/right.png -#usr/share/gtk-doc/html/libudev/style.css -#usr/share/gtk-doc/html/libudev/up.png -#usr/share/man/man7/udev.7 -#usr/share/man/man8/udevadm.8 -#usr/share/man/man8/udevd.8 diff --git a/lfs/udev b/lfs/eudev similarity index 77% rename from lfs/udev rename to lfs/eudev index 61bd337..a0600bf 100644 --- a/lfs/udev +++ b/lfs/eudev @@ -1,7 +1,7 @@ ############################################################################= ### # = # # IPFire.org - A linux based firewall = # -# Copyright (C) 2007-2013 IPFire Team = # +# Copyright (C) 2007-2016 IPFire Team = # # = # # This program is free software: you can redistribute it and/or modify = # # it under the terms of the GNU General Public License as published by = # @@ -24,26 +24,25 @@ =20 include Config =20 -VER =3D 208 +VER =3D 3.2 =20 -THISAPP =3D udev-$(VER) -DL_FILE =3D systemd-$(VER).tar.xz +THISAPP =3D eudev-$(VER) +DL_FILE =3D $(THISAPP).tar.gz DL_FROM =3D $(URL_IPFIRE) -DIR_APP =3D $(DIR_SRC)/systemd-$(VER) +DIR_APP =3D $(DIR_SRC)/$(THISAPP) TARGET =3D $(DIR_INFO)/$(THISAPP) =20 ############################################################################= ### # Top-level Rules ############################################################################= ### =20 -objects =3D $(DL_FILE) udev-lfs-208-1.tar.bz2 - +objects =3D $(DL_FILE) udev-lfs-20140408.tar.bz2 =20 $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) -udev-lfs-$(VER)-1.tar.bz2 =3D $(DL_FROM)/udev-lfs-$(VER)-1.tar.bz2 +udev-lfs-20140408.tar.bz2 =3D $(DL_FROM)/udev-lfs-20140408.tar.bz2 =20 -$(DL_FILE)_MD5 =3D df64550d92afbffb4f67a434193ee165 -udev-lfs-$(VER)-1.tar.bz2_MD5 =3D 67a5339e7ef1fa08f5db8315a5ea69e7 +$(DL_FILE)_MD5 =3D 7e42d9b9ed8162021665139520676367 +udev-lfs-20140408.tar.bz2_MD5 =3D c2d6b127f89261513b23b6d458484099 =20 install : $(TARGET) =20 @@ -73,20 +72,30 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && tar axf $(DIR_DL)/udev-lfs-$(VER)-1.tar.bz2 - - cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/udev-208_remove_syste= md_log.patch - - cd $(DIR_APP)/udev-lfs-$(VER)-1 && sed -i "s/HANDLE_AT 1/HANDLE_AT 0/g" cfg= .h - + cd $(DIR_APP) && sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl + cp -vf $(DIR_SRC)/config/eudev/config.cache $(DIR_APP) + cd $(DIR_APP) && ./configure --prefix=3D/usr \ + --bindir=3D/sbin \ + --sbindir=3D/sbin \ + --libdir=3D/usr/lib \ + --sysconfdir=3D/etc \ + --libexecdir=3D/lib \ + --with-rootprefix=3D \ + --with-rootlibdir=3D/lib \ + --enable-manpages \ + --disable-static \ + --config-cache rm -rf /lib/udev/devices install -dv /lib/firmware - - cd $(DIR_APP) && make -f udev-lfs-$(VER)-1/Makefile.lfs $(MAKETUNING) - cd $(DIR_APP) && make -f udev-lfs-$(VER)-1/Makefile.lfs install + cd $(DIR_APP) && LIBRARY_PATH=3D/tools/lib make + cd $(DIR_APP) && make LD_LIBRARY_PATH=3D/tools/lib install + cd $(DIR_APP) && LD_LIBRARY_PATH=3D/tools/lib udevadm hwdb --update + @rm -rf $(DIR_APP) + cd $(DIR_SRC) && tar axf $(DIR_DL)/udev-lfs-20140408.tar.bz2 + cd $(DIR_SRC)/udev-lfs-20140408 make -f Makefile.lfs install + @rm -rf $(DIR_SRC)/udev-lfs-20140408 =20 # Make some compat symlinks - ln -sf /lib/udev/udevd /sbin/udevd ln -sf /sbin/udevadm /bin/udevadm =20 # Disable net generator rule. This does not work with the setup. diff --git a/make.sh b/make.sh index b175a01..94272fa 100755 --- a/make.sh +++ b/make.sh @@ -366,6 +366,7 @@ buildbase() { lfsmake2 groff lfsmake2 gperf lfsmake2 gzip + lfsmake2 xz lfsmake2 hostname lfsmake2 iproute2 lfsmake2 jwhois @@ -383,9 +384,8 @@ buildbase() { lfsmake2 tar lfsmake2 texinfo lfsmake2 util-linux - lfsmake2 udev + lfsmake2 eudev lfsmake2 vim - lfsmake2 xz lfsmake2 paxctl } =20 --=20 2.9.3 --===============8702418680755495463==--