Bug 6795 - Pkgdata is generated for empty packages
Summary: Pkgdata is generated for empty packages
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: Undecided critical
Target Milestone: 1.7
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-10-03 15:48 UTC by Otavio Salvador
Modified: 2014-10-07 15:34 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Otavio Salvador 2014-10-03 15:48:37 UTC
> [12:42] < otavio> rburton: I am debugging the mesa failure in fsl-arm
> [12:42] < otavio> and it looks to be a bug in pkgdata. It is generating the files for 'empty' packages. In the mesa case, openvg is already disabled in mesa and it outputs the pkgdata anyway

The mesa failure I were debugging is: 

https://autobuilder.yoctoproject.org/main/builders/nightly-fsl-arm/builds/59/steps/BuildImages/logs/stdio

and it seems to be a failure in core as the package is empty in mesa.
Comment 1 Richard Purdie 2014-10-03 16:22:09 UTC
So, to put the info into the bug, the error is:

ERROR: The recipe mesa is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-arm/build/build/tmp/sysroots/imx53qsb/pkgdata/runtime-reverse/libopenvg-dev
   Matched in manifest-imx53qsb-amd-gpu-x11-bin-mx51.packagedata
Please verify which recipe should provide the above files.

and those files are created in packages.bbclass, the part which says "Symlinks needed for reverse lookups". I have a suspicion we need to move this generation of some of these links into that end if statement (if g or allow_empty)...
Comment 2 Saul Wold 2014-10-07 15:34:48 UTC
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=533a852eddb9a5e77a15001756f03b929a1d0a0b

May require an additional bug filed