Skip to contentSkip to conversation

lvm2-udevrules: Add ALLOW_EMPTY

PATCH In review Ovidiu Panait 2 participants 2 messages Jul 31, 2018 – Aug 2, 2018

lore
Share & tools
lore
#0 lore raw

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
index 1d9de3d94..388e89117 100644
@@ -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
#1 lore raw
Quoted 11 lines · Ovidiu Panait

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

Quoted 25 lines
---
 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
index 1d9de3d94..388e89117 100644
@@ -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