Bug 2474

Summary: eglibc do_package_write_deb fails
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Darren Hart <dvhart>
Component: coreAssignee: Saul Wold <sgw>
Status: RESOLVED OBSOLETE QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, josh, meta.mr.watcher, meta.watcher
Version: 1.2   
Target Milestone: 1.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Potential fix
none
Rootfs failure log with patch applied none

Description Darren Hart 2012-05-18 15:59:32 UTC
Autobuilder failure on nightly-x86

Building qemux86 core-image-sato core-image-sato-dev core-image-sato-sdk core-image-minimal core-image-minimal-dev failed 

http://autobuilder.yoctoproject.org:8010/builders/nightly-x86/builds/487

Build Configuration:
BB_VERSION        = "1.15.2"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.2+snapshot-20120517"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-yocto        = "stage/master_under_test:394b91510c6272d87f2bdf238e54c71e5b80ba41"
meta-qt3          = "master:f8475d5c5935695d4d1dfff1d7be30f49e162094"


ERROR: Logfile of failure stored in: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/eglibc-2.15-r10+svnr17386/temp/log.do_package_write_deb.539
Log data follows:
| dpkg-deb: building package `libc6-dbg' in `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/eglibc-2.15-r10+svnr17386/deploy-debs/i586/libc6-dbg_2.15-r10+svnr17386_i386.deb'.
| dpkg-deb: warning: parsing file '/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/eglibc-2.15-r10+svnr17386/packages-split/eglibc/DEBIAN/control' near line 15 package 'libc6':
|  `Provides' field, reference to `rtld':
|  implicit exact match on version number, suggest using `=' instead
| dpkg-deb: error: parsing file '/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/eglibc-2.15-r10+svnr17386/packages-split/eglibc/DEBIAN/control' near line 15 package 'libc6':
|  'Provides' field, reference to 'rtld': error in version: version number does not start with digit
| ERROR: Function failed: dpkg-deb execution failed
Comment 1 Darren Hart 2012-05-18 16:01:53 UTC
Also occurs for nightly arm:
http://autobuilder.yoctoproject.org:8010/builders/nightly-arm/builds/427
Comment 2 Joshua Lock - Disabled 2012-05-18 16:19:58 UTC
Caused by the following change:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2fa80ef30e8f806c4604f87fce84df6a5402a05b

I'm nervous as the commit log talks about RPM only but clearly this affects other package manager back ends.

It looks like dpkg mandates a version number that starts with a digit:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620566

Newer dpkg has a --force-bad-version to ignore this:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620566#172

We can likely backport this change:

http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=commit;h=6d50a5ac6ae54f4374070e5849070530a6d57a49

If needed in Denzil, or just update dpkg?
Comment 3 Joshua Lock - Disabled 2012-05-18 23:36:33 UTC
Created attachment 520 [details]
Potential fix

The attached patch is a back-port from a change upstream which looks to address this issue.

With the patch applied I can build the eglibc deb package but a do_rootfs fails... I'm not yet certain if this is a by-product of the patch or not.
Comment 4 Joshua Lock - Disabled 2012-05-18 23:38:20 UTC
Created attachment 521 [details]
Rootfs failure log with patch applied

This is my do_rootfs log for a core-image-minimal with the dpkg change applied.
Comment 5 Jessica 2013-03-07 16:13:32 UTC
This is against an old release that no longer being supported, please open new bugs against latest releases if it still an issue