All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] lvm2-udevrules: Add ALLOW_EMPTY
@ 2018-07-31 10:40 Ovidiu Panait
  2018-08-02  8:18 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Ovidiu Panait @ 2018-07-31 10:40 UTC (permalink / raw)
  To: openembedded-devel

When lvm2 is configured without udev feature, the lvm2-udevrules package
is empty, so do_rootfs will fail to install any other packages that
rdepend on it. (e.g. cryptsetup with meta-secure-core layer since commit
https://github.com/jiazhang0/meta-secure-core/commit/afc3939):

..
Problem: conflicting requests
 - nothing provides lvm2-udevrules needed by cryptsetup
..

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
---
 meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb b/meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb
index 1d9de3d94..388e89117 100644
--- a/meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb
+++ b/meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb
@@ -46,6 +46,7 @@ FILES_${PN}-scripts = " \
 # Specified explicitly for the udev rules, just in case that it does not get picked
 # up automatically:
 FILES_${PN}-udevrules = "${nonarch_base_libdir}/udev/rules.d"
+ALLOW_EMPTY_${PN}-udevrules = "1"
 RDEPENDS_${PN}_append_class-target = " libdevmapper"
 RDEPENDS_${PN}_append_class-nativesdk = " libdevmapper"
 
-- 
2.17.1



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

* Re: [meta-oe][PATCH] lvm2-udevrules: Add ALLOW_EMPTY
  2018-07-31 10:40 [meta-oe][PATCH] lvm2-udevrules: Add ALLOW_EMPTY Ovidiu Panait
@ 2018-08-02  8:18 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2018-08-02  8:18 UTC (permalink / raw)
  To: Ovidiu Panait; +Cc: openembeded-devel

On Tue, Jul 31, 2018 at 3:50 AM Ovidiu Panait
<ovidiu.panait@windriver.com> wrote:
>
> When lvm2 is configured without udev feature, the lvm2-udevrules package
> is empty, so do_rootfs will fail to install any other packages that
> rdepend on it. (e.g. cryptsetup with meta-secure-core layer since commit
> https://github.com/jiazhang0/meta-secure-core/commit/afc3939):
>
> ..
> Problem: conflicting requests
>  - nothing provides lvm2-udevrules needed by cryptsetup
> ..
>

I think this is a good thing to get this error during build, since
package depends on it at runtime, having
empty content will just defer the error until the system is booted and
then its harder to debug the failures

> Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
> ---
>  meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb b/meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb
> index 1d9de3d94..388e89117 100644
> --- a/meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb
> +++ b/meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb
> @@ -46,6 +46,7 @@ FILES_${PN}-scripts = " \
>  # Specified explicitly for the udev rules, just in case that it does not get picked
>  # up automatically:
>  FILES_${PN}-udevrules = "${nonarch_base_libdir}/udev/rules.d"
> +ALLOW_EMPTY_${PN}-udevrules = "1"
>  RDEPENDS_${PN}_append_class-target = " libdevmapper"
>  RDEPENDS_${PN}_append_class-nativesdk = " libdevmapper"
>
> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

end of thread, other threads:[~2018-08-02  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-31 10:40 [meta-oe][PATCH] lvm2-udevrules: Add ALLOW_EMPTY Ovidiu Panait
2018-08-02  8:18 ` 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.