gpsd-machine-conf: allow creation of an empty package
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Fabien Parent
gpsd-machine-conf is an empty recipe that does not ship any files on the rootfs. This recipe is targeted to be extended by a bbappend that will provide the gpsd machine configuration.
In the case where gpsd-machine-conf is included into an image, and if no layers is providing the machine configuration, the build fails with the following error:
Quoted 6 lines
No match for argument: gpsd-machine-conf
Error: Unable to find a match: gpsd-machine-confThis error is because no package was created for gpsd-machine-conf since the recipe does not install any files.
It is worth mentioning that this is a new/recent issue which has been around since June 7 in our CI. Looks like it came after we upgraded opkg to 0.6.0 [1], and the opkg 0.6.0 release notes [2] have this item:
- libsolv will now return a solver error if the user asks to install a package which does not exist in the feeds.
So it might impact other recipes in case this 'pattern' is used elsewhere.
[1] 1e08da6a4387 (opkg: upgrade to version 0.6.0)
[2] http://downloads.yoctoproject.org/releases/opkg/opkg-0.6.0.release-notes
Quoted 24 lines
This commit allows the creation of an empty package in order to avoid the
do_rootfsfailure when this package is included into an image.Signed-off-by Fabien Parent <[email protected]>--- meta-oe/recipes-navigation/gpsd/gpsd-machine-conf_1.0.bb | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-navigation/gpsd/gpsd-machine-conf_1.0.bb +0
-0@@ -5,3 +5,4 @@ LIC_FILES_CHKSUM ="file://${COREBASE}/meta/files/common-licenses/BSD-3-Clause;m
# empty by default # BSP layers can add stuff like meta-openmoko example: # +ALLOW_EMPTY:${PN} = "1" -- 2.36.1