Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2] udev: add runtime dependencies for udev-cache
@ 2016-02-04 20:12 Ricardo Neri
  2016-02-04 21:01 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Neri @ 2016-02-04 20:12 UTC (permalink / raw)
  To: openembedded-core, Richard Purdie, Saul Wold

udev-cache uses find and xargs, which are provided by findutils. It also
uses gzip, which is provided by gzip. These utilities need to be present
when udev-cache runs. Thus, add them as RDEPENDSs.

Otherwise, if busybox is not included in the built image, the following
errors could be observed when booting if such packages are not present:

    /etc/rcS.d/S36udev-cache: line 66: xargs: command not found
    /etc/rcS.d/S36udev-cache: line 65: find: command not found
    /etc/rcS.d/S36udev-cache: line 67: gzip: command not found

Cc: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
---
Changes since v1:
 * Narrow the dependency only to udev-cache
 * Reword the commit message to mention that the issue is only
   reproducible if busybox is not included in the image.
---
 meta/recipes-core/udev/udev.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index 93d7369..4e8e758 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -38,6 +38,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
 
 inherit autotools pkgconfig update-rc.d ptest
 RDEPENDS_${PN}-ptest += "make perl python"
+RDEPENDS_${PN}-cache += "gzip findutils"
 
 libexecdir = "${base_libdir}"
 EXTRA_OECONF = "--disable-introspection \
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-04 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 20:12 [PATCH v2] udev: add runtime dependencies for udev-cache Ricardo Neri
2016-02-04 21:01 ` Khem Raj
2016-02-04 21:10   ` Phil Blundell
2016-02-04 21:59     ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox