Bug 6047 - Poky core-image-minimal fails to build with package_deb
Summary: Poky core-image-minimal fails to build with package_deb
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.6 M5
Assignee: Richard Purdie
QA Contact: Andra Necula
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-03-26 11:19 UTC by Jeremy Powell
Modified: 2014-08-29 08:07 UTC (History)
3 users (show)

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


Attachments
Fix various issues in package_manager.py for DpkgIndexer (3.36 KB, patch)
2014-03-26 11:19 UTC, Jeremy Powell
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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