lvm2-udevrules: Add ALLOW_EMPTY
PATCH 1/1 lvm2-udevrules: Add ALLOW_EMPTY
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
..
--- meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb +1 -0
@@ -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"
Signature · 1 line
2.17.1
Quoted 11 lines · Ovidiu Panait
When lvm2 is configured without udev feature, the lvm2-udevrules package is empty, so
do_rootfswill 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
Quoted 25 lines
Signed-off-by Ovidiu Panait <[email protected]>--- meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-support/lvm2/lvm2_2.02.177.bb +1
-1@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel