Bug 165244
Summary: | rpmbuild -ba --sign or rpm --resign fail to sign package | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve Willoughby <n9oec> |
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> |
Status: | CLOSED NOTABUG | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-08-09 13:17:52 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Steve Willoughby
2005-08-05 19:37:25 UTC
What is the contents of your ~/.rpmmacros? Do you have the gpg settings in place eg: %_signature gpg %_gpg_path /home/pauln/.gnupg %_gpg_name Paul Nasrat <pauln> rpmbuild -bb --sign --target i386 dummy.spec Enter pass phrase: Pass phrase is good. Building target platforms: i386 Building for target i386 Processing files: dummy-1.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/dummy-root Generating signature: 1005 Wrote: /home/pauln/rpm/RPMS/dummy-1.0-1.noarch.rpm As regards you upgrade issues - did you upgrade using anaconda? You put your finger on the problem - the .rpmmacros file was missing. I copied over from another system and modified to match the secret key I wanted to use and signing worked! Would be nice is the RPMBUILD man page had more info on the minimum entries in .rpmmacros to make signing work as well as the fact that this is the main place for that info to live. An explicit pointer in the RPMBUILD man page pointing to the USING GPG TO SIGN PACKAGES section in the RPM man page might have helped. I figured this out over three years ago looking at the time stamp on the .rpmmacros file and it's worked ever since. I just missed the critical info when pouring through the man pages trying to troubleshoot the problem. The upgrade was done through the anaconda installer - instead of installing one of the template configurations or custom, I chose to upgrade an existing installation. |