Bug 11087

Summary: Inheriting sign_rpm causes build to fail.
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: christrobridge
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Undecided CC: markus.lehtonen, poky.bs.watcher, poky.watcher
Version: 2.2.1   
Target Milestone: ---   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Patch to sign one rpm file at a time. none

Description christrobridge 2017-02-20 11:57:02 UTC
Created attachment 3636 [details]
Patch to sign one rpm file at a time.

Inheriting sign_rpm causes meta/lib/oe/gpg_sign.py to be called in do_package_write_rpm to sign all the rpms generated by each recipe.

This works fine except for certain recipes (linux-yocto and glibc-locale) that generate a huge number of packages.

The code in sign_rpms() puts all the package file names in one command line, which overflows and causes the sign command to fail.

I patched the code to sign one file at a time (attached) and the build succeeded.

As discussed on the yocto list, the ideal solution may lie in between the extremes of signing all files at once versus one at a time.
Comment 1 Markus Lehtonen 2017-02-23 15:54:20 UTC
Duplicate of bug 11069. A fix is on the way.

*** This bug has been marked as a duplicate of bug 11069 ***