RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1165414 - mark rpmbuild --sign option as deprecated
Summary: mark rpmbuild --sign option as deprecated
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Florian Festi
QA Contact: Karel Srot
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-18 22:18 UTC by Robert Locke
Modified: 2023-09-14 02:51 UTC (History)
4 users (show)

Fixed In Version: rpm-4.11.3-10.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 11:58:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2138 0 normal SHIPPED_LIVE rpm bug fix and enhancement update 2015-11-19 10:39:52 UTC

Description Robert Locke 2014-11-18 22:18:44 UTC
Description of problem:
Running rpmbuild ... --sign --define '_gpg_name XXXXXXXX' fails asking to have the %_gpg_name defined in rpmmacros.

Version-Release number of selected component (if applicable):
$ rpm -qa rpm\*
rpm-python-4.11.1-16.el7.x86_64
rpm-4.11.1-16.el7.x86_64
rpm-build-libs-4.11.1-16.el7.x86_64
rpm-build-4.11.1-16.el7.x86_64
rpm-sign-4.11.1-16.el7.x86_64
rpmlint-1.5-4.el7.noarch
rpm-libs-4.11.1-16.el7.x86_64


How reproducible:
Always. This same Makefile/command sequence worked just fine in RHEL 6.5

Steps to Reproduce:
1. Empty ~/.rpmmacros
2. rpmbuild -D "version $(VERSION)" -D "release $(RELEASE)" -ta --clean --sign --define '_gpg_name XXXXXXXX' file.tar.gz

Actual results:
You must set "%_gpg_name" in your macro file


Expected results:
Should prompt for passphrase and sign the package.

Additional info:

If I break the command in two:
rpmbuild -D "version $(VERSION)" -D "release $(RELEASE)" -ta --clean file.tar.gz
rpmsign --addsign --define '_gpg_name XXXXXXXX' $(BUILDDIR)/RPMS/$(ARCH)/$(FULLNAME).$(ARCH).rpm

It works.

I am presuming that the --define is not "passed" from rpmbuild to rpmsign when this is combined? If so, this is a regression from RHEL 6.

Comment 3 Ľuboš Kardoš 2015-03-27 10:03:34 UTC
Signing support was removed from rpmbuild deliberately. "rpmbuild --sign" is just popt alias to allow basic stuff to work. But it can be removed in the future. You should use command rpmsign for signing of rpm packages. We will add a deprecation warning to the description of "--sign" in output of "rpmbuild --help".

I add devel_ack for this deprecation warning.

Comment 6 Karel Srot 2015-07-09 09:24:07 UTC
Lubos, 
should I clone this bug also for RHEL-6? Would you add the same warning to RHEL 6 too?

Comment 8 errata-xmlrpc 2015-11-19 11:58:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2138.html

Comment 9 Red Hat Bugzilla 2023-09-14 02:51:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.