Bug 6047

Summary: Poky core-image-minimal fails to build with package_deb
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jeremy Powell <jeremy>
Component: deploymentAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact: Andra Necula <andrax.g.necula>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, bogdanx.a.voiculescu, richard.purdie
Version: 1.6   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Fix various issues in package_manager.py for DpkgIndexer none

Description Jeremy Powell 2014-03-26 11:19:49 UTC
Created attachment 1861 [details]
Fix various issues in package_manager.py for DpkgIndexer

Default local.conf file except:
PACKAGE_CLASSES ?= "package_deb"

Build fails due to a few issues in DpkgIndexer.

My colleague and I have created a patch to resolve the issue which is attached, although we don't really know that much about Python/Yocto so somebody probably wants to review this!
Comment 1 Jeremy Powell 2014-03-26 11:41:11 UTC
So problems with the DpkgIndexer as I see them (which the attached patch resolves) are:

1. The arguments to apt-ftparchive to create the "Packages" file are incorrect (path argument is missing.
2. The arguments to apt-ftparchive to create the "Release" file are incorrect (path argument is missing.
3. The arguments to gzip were incorrect are incorrect for the version of gzip being used (pigz)
4. The commands appear to being run in parallel, which seems to be incorrect

Problems 1 and 2 mean that the output is incorrect
Problems 3 causes the build to fail
Problem 4 might cause incorrect results and/or the build to fail
Comment 2 Richard Purdie 2014-03-26 12:12:55 UTC
Please see the patch set I sent to the mailing list, it keeps the benefit of the parallelism but should resolve the issues you're seeing.
Comment 4 Andra Necula 2014-08-29 08:07:51 UTC
Verified on
poky 2d1660112e54653f7bb763939d0416472c49fe01
Ubuntu 14.04, x86_64
Cheers! Andra