r1138 - trunk

bdubbs at higgs.linuxfromscratch.org bdubbs at higgs.linuxfromscratch.org
Wed Apr 30 19:18:47 PDT 2014


Author: bdubbs
Date: Wed Apr 30 19:18:47 2014
New Revision: 1138

Log:
Update 6 to eudev-alt-hint

Modified:
   trunk/eudev-alt-hint.txt

Modified: trunk/eudev-alt-hint.txt
==============================================================================
--- trunk/eudev-alt-hint.txt	Sat Apr 26 16:44:45 2014	(r1137)
+++ trunk/eudev-alt-hint.txt	Wed Apr 30 19:18:47 2014	(r1138)
@@ -1,6 +1,6 @@
 Author: James Powell <james4591 [at] hotmail [dot] com>
 
-Date: 2014-04-20 Version 0.0.5
+Date: 2014-04-30 Version 0.0.6
 
 License: The MIT License
 
@@ -47,11 +47,21 @@
 and systemd's ultimate goal, but those are best left for another discussion
 topic elsewhere.
 
+The point of eudev is to ask this as a question, why install all of systemd
+just for udev, when all you want is udev? The answer is obvious, you install
+eudev. If you don't need or want systemd, why even bother with it?
+
+Eudev gives you the end-user and system administrator the ultimate choice. It's
+small, does what its supposed to, and doesn't require anything extra. It's
+there, it's quiet, and it behaves itself.
+
+Now enough babble, and on with the installation...
+
 ================================================================================
 
 Prerequisites:
 
-None. Basically, you can build LFS as normal up to Chapter 6.67 and switch to
+None. Basically, you can build LFS as normal up to systemd and switch to
 this Hint.
 
 As a side note due to eudev being a lighter weight udev implementation you may
@@ -88,6 +98,15 @@
 the time to read this hint and see all the hard work that went into it, and
 more thanks to those who chose to use this hint in their own builds.
 
+I'd like to thank the guys at www.boycottsystemd.org that are leading the
+charge against systemd in favor of more compliancy with the UNIX Philosophy,
+open and universal-platform standards, as well as the ongoing search for a
+true successor to sysvinit that is multi-platform standard friendly.
+
+I'd also like to thank Doug Mcllroy for stating the obvious in regards to how
+UNIX should be regardless of flavor. "Write programs that do one thing and
+do it well."
+
 ================================================================================
 
 Changelog:
@@ -114,40 +133,41 @@
 	Added installation map of software package.
 	Thank you Stoat at LinuxQuestions.org for the updates.
 
+2014-04-30
+0.0.6 - Added information regarding updated content of Eudev-1.6.
+        Cleaned up install flags to properly build shared libs.
+
+	You may have noticed that the eudev-manpages are not included with this
+	release for B/LFS. This is because these manpages were pregenerated for
+	users. In order to generate the proper manpages you will first need to
+	install libxslt from BLFS. Documentation on this is included.
+	
+	
 ================================================================================
 
 How-To:
 
 First download a copy of eudev to your system, and it's manpages:
 
-Eudev (1.5.3) - 1,684 KB:
+Eudev (1.6) - 1,689 KB:
 Home page: http://www.gentoo.org/proj/en/eudev/
-Download: http://dev.gentoo.org/~blueness/eudev/eudev-1.5.3.tar.gz
-MD5 sum: 51380938b489385cc394f4ebabc048f0
-
-Eudev Manpages (1.5.3) - 6 KB:
-Download: http://anduin.linuxfromscratch.org/sources/other/eudev-1.5.3-manpages.tar.bz2
-MD5 sum: eaa5b9af344e958c29288e5376b97a28
+Download: http://dev.gentoo.org/~blueness/eudev/eudev-1.6.tar.gz
+MD5 sum: c2fbf420a50d07b80158a0185cbb08f7
 
 As an extra hint, you can eliminate the systemd download and md5sum entries
 in md5sums and wget-list and replace it with these entries for eudev if desired.
 
 For it's brief time it was included in LFS, Eudev was stationed at Chapter 6.62
-so these instructions are the same instructions preserved from the book. Do
-note that future editions of Eudev might require different instructions, so
-these will work with 1.5.3 only.:
+so these instructions are the same instructions preserved from the book.
 
 ================================================================================
 
 6.62.1 Installation of Eudev
 
-First clean up a few warnings and fix a test script:
-
-  sed    -i '/struct ucred/i struct ucred;' src/libudev/util.h
-  sed -r -i 's|/usr(/bin/test)|\1|'         test/udev-test.pl
-
 Prepare Eudev for compilation:
 
+  sed -i '/struct ucred/i struct ucred;' src/libudev/util.h
+  sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl
   BLKID_CFLAGS=-I/tools/include       \
   BLKID_LIBS='-L/tools/lib -lblkid'   \
   ./configure --prefix=/usr           \
@@ -161,6 +181,7 @@
          --enable-split-usr      \
          --enable-libkmod        \
          --enable-rule_generator \
+         --enable-shared         \
          --disable-static        \
          --disable-selinux       \
          --disable-introspection \
@@ -180,24 +201,35 @@
   mkdir -pv /lib/udev/{devices/pts,rules.d}
   mkdir -pv /etc/udev/{hwdb.d,rules.d}
 
-To test the results, run this command: 
+To optionally test the results, run this command: 
 
-  make check
+  make check*
+  
+*NOTE: The udev-test.pl will fail due to an unknown error. It's safe to ignore this.
+I have not been able to track down the source of this error, except a flaw in
+reading device node, /dev/null. This is probably a permissions error or a test that
+is ran by a user account and not root.
 
 Install the package: 
 
   make install
 
-Now, install the man pages: 
-
-  tar -xvf ../eudev-1.5.3-manpages.tar.bz2 -C /usr/share
+If you rebuild with libxslt, "make install" will automatically install the manpages.
 
-Finally, create some custom rules that are not covered as a part of the defaults: 
+-----------------------------------------------------------------------------------------
+This next step is probably optional, but is recommended you at least attempt to complete.
+The LFS init-net-rules.sh script is possibly still required to be ran as far as I can
+tell.
+-----------------------------------------------------------------------------------------
 
 Extract udev-lfs-20140408 into your /sources directory enter the directory and execute
-command make -f makefile.lfs install in the directory as suggested by the book. This
-package is no longer directly tied to systemd and can be ran seperately. This will install
-important scripts for Eudev. Many thanks to Bruce Dubbs for creating this package.
+command:
+
+  make -f Makefile.lfs install
+  
+in the directory as suggested by the book. This package is no longer directly tied to
+systemd and can be ran seperately. This will install important scripts for Eudev. Many
+thanks to Bruce Dubbs for creating this package.
 
 Lastly, this next step will be required post-installation of the LFS-Bootscripts
 
@@ -278,118 +310,41 @@
 
 ===================================================================================
 
-Install maps for Eudev-1.5.3 post-installation of entire LFS base system.
-Thanks to Stoat for this diagram.
-
-/etc
-|-- udev
-    |-- hwdb.bin
-    |-- hwdb.d
-    |   |-- 20-acpi-vendor.hwdb
-    |   |-- 20-bluetooth-vendor-product.hwdb
-    |   |-- 20-OUI.hwdb
-    |   |-- 20-pci-classes.hwdb
-    |   |-- 20-pci-vendor-model.hwdb
-    |   |-- 20-sdio-classes.hwdb
-    |   |-- 20-sdio-vendor-model.hwdb
-    |   |-- 20-usb-classes.hwdb
-    |   `-- 20-usb-vendor-model.hwdb
-    |-- rules.d
-    |   `-- 55-lfs.rules
-    `-- udev.conf
- 
-
-/lib
-|-- libudev.so.1 -> libudev.so.1.3.0
-|-- libudev.so.1.3.0
-|
-|-- udev
-    |-- accelerometer
-    |-- ata_id
-    |-- cdrom_id
-    |-- collect
-    |-- devices
-    |   `-- pts
-    |-- init-net-rules.sh
-    |-- mtd_probe
-    |-- rule_generator.functions
-    |-- rules.d
-    |   |-- 42-usb-hid-pm.rules
-    |   |-- 50-firmware.rules
-    |   |-- 50-udev-default.rules
-    |   |-- 60-cdrom_id.rules
-    |   |-- 60-drm.rules
-    |   |-- 60-persistent-alsa.rules
-    |   |-- 60-persistent-input.rules
-    |   |-- 60-persistent-serial.rules
-    |   |-- 60-persistent-storage.rules
-    |   |-- 60-persistent-storage-tape.rules
-    |   |-- 60-persistent-v4l.rules
-    |   |-- 61-accelerometer.rules
-    |   |-- 64-btrfs.rules
-    |   |-- 75-net-description.rules
-    |   |-- 75-probe_mtd.rules
-    |   |-- 75-tty-description.rules
-    |   |-- 78-sound-card.rules
-    |   |-- 80-drivers.rules
-    |   `-- 95-udev-late.rules
-    |-- scsi_id
-    |-- v4l_id
-    |-- write_cd_rules
-    `-- write_net_rules
-
-/usr/lib
-|-- libudev.la
-|-- libudev.so -> ../../lib/libudev.so.1.3.0
-|-- pkgconfig
-|   |-- libudev.pc
-
-
-/usr/bin
-|-- udevadm
-|
-
-
-/usr/sbin/
-|-- udevadm -> /usr/bin/udevadm
-|-- udevd
-
-
-/usr/include
-|-- libudev.h
-|-- udev.h
-
-
-/usr/share/pkgconfig
-|-- udev.pc
-
-===================================================================================
-
 That's it. You now have Eudev installed on your system.
 
 If and when you want to rebuild Eudev for gudev support, the compilation
 process is the same except that you will need to simply remove per line needed:
 
-  		BLKID_CFLAGS=-I/tools/include       \
-  		BLKID_LIBS='-L/tools/lib -lblkid'   \
-
-These lines above are not required for rebuilding on a completed system.
-
-		--disable-introspection \
-		--disable-keymap        \
-		--disable-gudev         \
+  	BLKID_CFLAGS=-I/tools/include       \
+  	BLKID_LIBS='-L/tools/lib -lblkid'   \
          
 Per each used, they will require you install the following from BLFS:
 
-GLib                  - required for gudev (Used by a number of BLFS packages)
-Gperf                 - required for keymap (Comes with LFS and is useful for
-				   laptop and netbook PCs)
+GLib   - 		required for gudev (Used by a number of BLFS packages)
+Gperf  - 		required for keymap (Comes with LFS and is useful for
+			laptop and netbook PCs)  
 gobject-introspection - required for gir-data (Used by some Gnome applications)
 
+To enable gobject-introspection simply replace flag:
+
+	  --disable-introspection \
+	 
+with this flag:
+
+	  --enable-introspection \
+
 If you wish to rebuild the manpages, you will also need the package libxslt from
 BLFS. The configure script will detect libxslt and rebuild the manpages
 automatically upon executing make.
 
+If you wish to build the API documentation change this flag:
+
+	--disable-gtk-doc-html
+	
+with this flag:
+
+	--enable-gtk-doc-html
+
 In addition to these changes, there are other sections you may not require
 from the book as well:
 
@@ -426,7 +381,7 @@
 You can also delete the "ifupdown at .service" unit file for systemd. Simply
 run the command "whereis ifupdown at .service", change directories to it's
 location, and use "rm -rf ipupdown at .service" to delete this unneeded file.
-If any systemd directories are left behind, delete them at your own risk.
+If any systemd directories are left behind, delete them at your leisure.
 
 Chapter 7.3.3 - systemd Network Interface Card setup
 


More information about the hints mailing list