Bug 11087 - Inheriting sign_rpm causes build to fail.
Summary: Inheriting sign_rpm causes build to fail.
Status: RESOLVED DUPLICATE of bug 11069
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 2.2.1
Hardware: All Multiple
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-02-20 11:57 UTC by christrobridge
Modified: 2017-02-23 15:54 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
Patch to sign one rpm file at a time. (1.47 KB, patch)
2017-02-20 11:57 UTC, christrobridge
no flags Details | Diff

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