* [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
* Re: [PATCH v2] udev: add runtime dependencies for udev-cache
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
0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2016-02-04 21:01 UTC (permalink / raw)
To: Ricardo Neri; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1741 bytes --]
> On Feb 4, 2016, at 12:12 PM, Ricardo Neri <ricardo.neri-calderon@linux.intel.com> wrote:
>
> 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”
are they individually packaged ipks even with busybox ?
if not then this fix is insufficient
>
> libexecdir = "${base_libdir}"
> EXTRA_OECONF = "--disable-introspection \
> --
> 1.9.1
>
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] udev: add runtime dependencies for udev-cache
2016-02-04 21:01 ` Khem Raj
@ 2016-02-04 21:10 ` Phil Blundell
2016-02-04 21:59 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Phil Blundell @ 2016-02-04 21:10 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On Thu, 2016-02-04 at 13:01 -0800, Khem Raj wrote:
> > On Feb 4, 2016, at 12:12 PM, Ricardo Neri <ricardo.neri-calderon@linux.intel.com> wrote:
> > inherit autotools pkgconfig update-rc.d ptest
> > RDEPENDS_${PN}-ptest += "make perl python"
> > +RDEPENDS_${PN}-cache += "gzip findutils”
>
> are they individually packaged ipks even with busybox ?
> if not then this fix is insufficient
They don't have to be individually packaged, it would suffice for
busybox to RPROVIDE them. (But it doesn't, so I think you are correct
that the patch as it stands will break builds with busybox.)
p.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] udev: add runtime dependencies for udev-cache
2016-02-04 21:10 ` Phil Blundell
@ 2016-02-04 21:59 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2016-02-04 21:59 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 985 bytes --]
> On Feb 4, 2016, at 1:10 PM, Phil Blundell <pb@pbcl.net> wrote:
>
> On Thu, 2016-02-04 at 13:01 -0800, Khem Raj wrote:
>>> On Feb 4, 2016, at 12:12 PM, Ricardo Neri <ricardo.neri-calderon@linux.intel.com> wrote:
>>> inherit autotools pkgconfig update-rc.d ptest
>>> RDEPENDS_${PN}-ptest += "make perl python"
>>> +RDEPENDS_${PN}-cache += "gzip findutils”
>>
>> are they individually packaged ipks even with busybox ?
>> if not then this fix is insufficient
>
> They don't have to be individually packaged, it would suffice for
> busybox to RPROVIDE them.
yes thats what I was expecting to be ensured.
> (But it doesn't, so I think you are correct
> that the patch as it stands will break builds with busybox.)
I never said it will break for that matter original patch is fine too its just redundantly bringing in packages
when a system primarily using busybox for core utilities may be able to use busybox for, what I said was that it is insufficient.
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
^ permalink raw reply [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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.