Adding Kernel Config check to resolve bug #112186
authorSaleem Abdulrasool <compnerd@gentoo.org>
Sun, 27 Nov 2005 06:10:37 +0000 (06:10 +0000)
committerSaleem Abdulrasool <compnerd@gentoo.org>
Sun, 27 Nov 2005 06:10:37 +0000 (06:10 +0000)
Package-Manager: portage-2.0.53_rc7

sys-apps/hal/ChangeLog
sys-apps/hal/Manifest
sys-apps/hal/hal-0.5.5.1.ebuild

index 99ddd356817dcf72151ffa456b0aa94ed4633afb..81103d67e2b60dbc0c4d1050ecc231f9d4e04b08 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for sys-apps/hal
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.53 2005/11/22 01:26:42 compnerd Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.54 2005/11/27 06:10:37 compnerd Exp $
+
+  27 Nov 2005; Saleem Abdulrasool <compnerd@gentoo.org> hal-0.5.5.1.ebuild:
+  Adding check for CONFIG_KOBJECT_UEVENT to resolve Bug #112186. Thanks to
+  Marcel Martin for diagnosing the bug.
 
 *hal-0.5.5.1 (22 Nov 2005)
 
index b88b46f881263950a143575081c92da73810043a..1e9e0279e5708be05739db3cc9f13c53f113a94a 100644 (file)
@@ -1,4 +1,4 @@
-MD5 1a6205c027a2d0bde146645b3b785c50 ChangeLog 7542
+MD5 fbf61b94d41914efd0c95d4b3d492d2e ChangeLog 7734
 MD5 40a7b45f127bfdcacaa142660ad8b5f9 files/0.5-hald.rc 537
 MD5 ada3b2801b82813b4f10fd6f6caf9d6f files/digest-hal-0.4.5-r2 62
 MD5 3031a9fe74f43859c313d5f3076e68cd files/digest-hal-0.4.7-r2 62
@@ -21,5 +21,5 @@ MD5 2cf5b3c9219c87b1d9aee01f4f5f19bb hal-0.4.5-r2.ebuild 3118
 MD5 1a146b79d18a689bbc8a96b81f74c7f6 hal-0.4.7-r2.ebuild 3455
 MD5 8420501e80e55b313d30f4e0309c08dd hal-0.4.8.ebuild 3419
 MD5 4b5c3135d20b391903d7a8e2626313dd hal-0.5.4.ebuild 3443
-MD5 8240c1a46e10dc67faf264db7c2f7871 hal-0.5.5.1.ebuild 3602
+MD5 c587e7d02a20b445d6b164a8c71fc1da hal-0.5.5.1.ebuild 3937
 MD5 a60767d83157413d549c69b98fac962c metadata.xml 303
index 12fdd1faf77c029e81267d157a0f5b0b61047139..1867de89dc043c566c64e644d26522aa1b0a8b2d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.5.1.ebuild,v 1.1 2005/11/22 01:26:43 compnerd Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.5.1.ebuild,v 1.2 2005/11/27 06:10:37 compnerd Exp $
 
 inherit eutils linux-info
 
@@ -30,12 +30,26 @@ DEPEND="${RDEPEND}
 ## HAL Daemon drops privledges so we need group access to read disks
 HALDAEMON_GROUPS="haldaemon,disk,cdrom,cdrw,floppy,usb"
 
+function notify_uevent() {
+       eerror
+       eerror "You must enable Kernel Userspace Events in your kernel."
+       eerror "This can be set under 'General Setup'.  It is marked as"
+       eerror "CONFIG_KOBJECT_UEVENT in the config file."
+       eerror
+       ebeep 5
+
+       die "KOBJECT_UEVENT is not set"
+}
+
 pkg_setup() {
        linux-info_pkg_setup
 
        kernel_is ge 2 6 13 \
                || die "You need a 2.6.13 or newer kernel to run this package"
 
+       linux_chkconfig_present KOBJECT_UEVENT \
+               || notify_uevent
+
        if use acpi ; then
                linux_chkconfig_present PROC_FS \
                        || die "ACPI support requires PROC_FS support in kernel"