Fix errors with new eudev
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 9 Aug 2014 15:32:37 +0000 (11:32 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 6 Oct 2014 01:48:17 +0000 (21:48 -0400)
config/dependencies
config/packages-list
stage1/packages-update
stage1/pkg/eudev
stage2/hv-install-2
stage2/packages-update
stage2/pkg/eudev [new file with mode: 0644]
stage2/pkg/udev [deleted file]

index 5a9e1d2..8f4cfe3 100644 (file)
@@ -27,7 +27,7 @@ ${GNASH}: ${AGG} ${CAIRO} ${GSTREAMER} ${FFMPEG} ${SDL} ${FIREFOX}
 
 ${FIREFOX}: ${SQLITE} ${LIBNOTIFY} ${YASM} ${NSPR} ${NSS}
 
-${FUSE}: ${UDEV}
+${FUSE}: ${EUDEV}
 
 ${JASPER}: ${LIBJPEG} ${XORG} ${MESALIB}
 ${GHOSTSCRIPT}: ${LIBJPEG} ${LIBPNG} ${JASPER} ${GTK} ${XORG}
index 5d523ed..b4fbfa3 100644 (file)
@@ -397,7 +397,7 @@ TK="tk8.5.9-src"
 TRANSMISSION="transmission-2.60"
 TUNCTL="tunctl-1.5"
 
-EUDEV="eudev-1.2"
+EUDEV="eudev-1.7"
 UNRAR="unrar-4.2.4"
 UNZIP="unzip-6.0"
 UPSTART="upstart-0.6.3"
index 8fefe3a..2920824 100755 (executable)
@@ -52,6 +52,6 @@ fpkg -m sf ${E2FSPROGS}
 fpkg ${SYSVINIT} "http://download.savannah.gnu.org/releases/sysvinit"
 fpkg -e "tar.xz" -s "linux/utils/kernel/kmod" ${KMOD} ${KERNEL_URL}
 
-fpkg ${EUDEV} "ftp://mirror.ovh.net/gentoo-distfiles/distfiles"
+fpkg -e "tar.gz" ${EUDEV} "http://dev.gentoo.org/~blueness/eudev"
 
 exit $?
index b36838f..5335593 100644 (file)
@@ -2,65 +2,30 @@
 
 hvconfig_pre()
 {
-    export BLKID_CFLAGS="-I/tools/include"
-    export BLKID_LIBS="-L/tools/lib -lblkid"
-    export KMOD_CFLAGS="-I/tools/include/"
-    export KMOD_LIBS="-L/tools/lib -lkmod"
+    # --disable-keymap: to remove gperf dependency
 
     CONFIGURE_OPTS="\
-        --prefix=/usr \
+        --prefix=${LFS} \
+        --with-sysroot=${LFS} \
         --build=${CLFS_HOST} \
         --host=${CLFS_TARGET} \
-        --with-rootprefix= \
-        --enable-split-usr \
-        --sysconfdir=/etc \
-        --libexecdir=/lib \
-        --bindir=/sbin \
-        --sbindir=/sbin \
-        --libdir=/lib \
+        --bindir=${LFS}/sbin \
+        --datarootdir=${LFS}/usr/share \
+        --includedir=${LFS}/usr/include \
         --disable-introspection \
         --disable-gtk-doc-html \
         --disable-gudev \
         --disable-keymap \
         --with-firmware-path=/lib/firmware \
         --enable-libkmod"
-
-    cd ${LFS_TMP}/${PACKAGE}
-
-}
-
-hvbuild()
-{
-    make
-    make DESTDIR=${LFS} install
 }
 
 hvbuild_post()
 {
-    install -dv ${LFS}/lib/{firmware,udev/devices}
-
-    # Static UDEV devices
-    if [ ! -c ${LFS}/lib/udev/devices/kmsg ]; then
-        mknod -m0666 ${LFS}/lib/udev/devices/kmsg c 1 11
-    fi
-
-    if [ ! -h ${LFS}/lib/udev/devices/fd ]; then
-        ln -sfv /proc/self/fd ${LFS}/lib/udev/devices/fd
-    fi
-
-    if [ ! -h ${LFS}/lib/udev/devices/stdin ]; then
-        ln -sfv /proc/self/fd/0 ${LFS}/lib/udev/devices/stdin
-    fi
-
-    if [ ! -h ${LFS}/lib/udev/devices/stdout ]; then
-        ln -sfv /proc/self/fd/1 ${LFS}/lib/udev/devices/stdout
-    fi
-
-    if [ ! -h ${LFS}/lib/udev/devices/stderr ]; then
-        ln -sfv /proc/self/fd/2 ${LFS}/lib/udev/devices/stderr
-    fi
+    install -dv ${LFS}/lib/{firmware,udev/devices/{pts,shm}}
 
-    if [ ! -h ${LFS}/lib/udev/devices/core ]; then
-        ln -sfv /proc/kcore ${LFS}/lib/udev/devices/core
-    fi
+    # Move udev pkgconfig file to /usr
+    install -dv ${LFS}/usr/lib/pkgconfig
+    mv ${LFS}/lib/pkgconfig/libudev.pc ${LFS}/usr/lib/pkgconfig
+    rmdir --ignore-fail-on-non-empty ${LFS}/lib/pkgconfig
 }
index 2c731a3..e0a0bd2 100755 (executable)
@@ -40,7 +40,7 @@ ipkg -m noac ${SYSKLOGD}
 ipkg -m noac ${SYSVINIT}
 FORCE_UNSAFE_CONFIGURE=1 ipkg ${TAR_PACKAGE} "--bindir=/bin --libexecdir=/usr/sbin"
 ipkg ${TEXINFO}
-ipkg ${UDEV}
+ipkg ${EUDEV}
 ipkg ${GRUB} --disable-werror
 ipkg -m acnb ${DHCP}
 
index d0ed09f..a2582fb 100755 (executable)
@@ -48,7 +48,7 @@ lpkg 1 ${PATCH_PACKAGE}
 lpkg 1 ${SYSVINIT}
 lpkg 1 ${TAR_PACKAGE}
 lpkg 1 ${TEXINFO}
-lpkg 1 ${UDEV}
+lpkg 1 ${EUDEV}
 lpkg 1 ${XZ_UTILS}
 
 # These packages are only for stage2
diff --git a/stage2/pkg/eudev b/stage2/pkg/eudev
new file mode 100644 (file)
index 0000000..d3cdeb9
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+hvconfig_pre()
+{
+    CONFIGURE_OPTS="\
+        --prefix=/usr \
+        --bindir=/sbin \
+        --sbindir=/sbin \
+        --libdir=/usr/lib \
+        --sysconfdir=/etc \
+        --libexecdir=/lib \
+        --with-rootlibdir=/lib  \
+        --enable-split-usr      \
+        --enable-libkmod        \
+        --enable-rule_generator \
+        --enable-keymap         \
+        --disable-introspection \
+        --disable-gtk-doc-html \
+        --disable-gudev \
+        --with-firmware-path=/lib/firmware"
+}
+
+hvbuild_post()
+{
+    install -v -m755 ${SCRDIR}/misc/udev/udev-create-persistent-net.sh \
+        /usr/local/bin
+    install -v -m644 ${SCRDIR}/misc/udev/10-media-automount.rules \
+        /etc/udev/rules.d/
+    install -v -m644 ${SCRDIR}/misc/udev/11-sd-card-automount.rules \
+        /etc/udev/rules.d/
+
+    sed -i -e "s/\(SYMLINK+=\"cdrom\)\"/\1 dvd\"/" \
+        /lib/udev/rules.d/60-cdrom_id.rules
+}
diff --git a/stage2/pkg/udev b/stage2/pkg/udev
deleted file mode 100644 (file)
index 4ad5210..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-hvconfig_pre()
-{
-    # --disable-keymap: to remove gperf dependency
-
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --exec-prefix="" \
-        --libexecdir=/lib \
-        --with-usb-ids-path=no \
-        --with-pci-ids-path=no \
-        --disable-keymap \
-        --disable-introspection"
-}
-
-hvbuild_post()
-{
-    install -v -m755 ${SCRDIR}/misc/udev/udev-create-persistent-net.sh \
-        /usr/local/bin
-    install -v -m644 ${SCRDIR}/misc/udev/10-media-automount.rules \
-        /etc/udev/rules.d/
-    install -v -m644 ${SCRDIR}/misc/udev/11-sd-card-automount.rules \
-        /etc/udev/rules.d/
-
-    mv /lib/pkgconfig/{gudev-*.pc,libudev.pc} /usr/lib/pkgconfig
-    rmdir /lib/pkgconfig
-
-    sed -i -e "s/\(SYMLINK+=\"cdrom\)\"/\1 dvd\"/" \
-        /lib/udev/rules.d/60-cdrom_id.rules
-}