Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1688849

Summary: rpmbuild --sign fails when --quiet is used
Product: Red Hat Enterprise Linux 8 Reporter: Karel Srot <ksrot>
Component: rpmAssignee: Pavlina Moravcova Varekova <pmoravco>
Status: CLOSED ERRATA QA Contact: Jan Blazek <jblazek>
Severity: unspecified Docs Contact: Marie Hornickova <mdolezel>
Priority: medium    
Version: 8.2CC: dmach, mjahoda, mpershin, pasik, pmoravco
Target Milestone: rcKeywords: Documentation, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Deprecated Functionality
Doc Text:
.`rpmbuild --sign` is deprecated The `rpmbuild --sign` command is deprecated since RHEL 8.1. Using this command in future releases of Red Hat Enterprise Linux can result in an error. It is recommended that you use the `rpmsign` command instead.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 22:22:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Srot 2019-03-14 15:14:01 UTC
Description of problem:

I am reporting this despite using rpmbuild --sign is already documented as deprecated.


# rpm -q rpm rpm-sign
rpm-4.14.2-9.el8.x86_64
rpm-sign-4.14.2-9.el8.x86_64

$ rpmbuild --quiet -bb --sign /mnt/tests/CoreOS/rpm/Regression/rpmbuild-ignores-sign-if-quiet-is-used/bz1293483pkg.spec
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: rpmsign: no arguments given

while

$ rpmbuild -v -bb --sign /mnt/tests/CoreOS/rpm/Regression/rpmbuild-ignores-sign-if-quiet-is-used/bz1293483pkg.spec
+ umask 022
+ cd /home/bz1293483user/rpmbuild/BUILD
+ touch /tmp/bz1293483pkg.tmp
+ cp /tmp/bz1293483pkg.tmp .
+ exit 0
+ umask 022
+ cd /home/bz1293483user/rpmbuild/BUILD
+ '[' /home/bz1293483user/rpmbuild/BUILDROOT/bz1293483pkg-1.0-1.x86_64 '!=' / ']'
+ rm -rf /home/bz1293483user/rpmbuild/BUILDROOT/bz1293483pkg-1.0-1.x86_64
++ dirname /home/bz1293483user/rpmbuild/BUILDROOT/bz1293483pkg-1.0-1.x86_64
+ mkdir -p /home/bz1293483user/rpmbuild/BUILDROOT
+ mkdir /home/bz1293483user/rpmbuild/BUILDROOT/bz1293483pkg-1.0-1.x86_64
+ mkdir -p /home/bz1293483user/rpmbuild/BUILDROOT/bz1293483pkg-1.0-1.x86_64/usr/local/
+ mv bz1293483pkg.tmp /home/bz1293483user/rpmbuild/BUILDROOT/bz1293483pkg-1.0-1.x86_64/usr/local/
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile 1
+ /usr/lib/rpm/brp-python-hardlink
+ PYTHON3=/usr/libexec/platform-python
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ umask 022
+ cd /home/bz1293483user/rpmbuild/BUILD
+ /usr/bin/rm -rf /home/bz1293483user/rpmbuild/BUILDROOT/bz1293483pkg-1.0-1.x86_64
+ exit 0
/home/bz1293483user/rpmbuild/RPMS/noarch/bz1293483pkg-1.0-1.noarch.rpm:
Enter passphrase: 

built rpm file should be signed even when --quiet option is used.

This is similar although possibly not related to bug 1293483.

Comment 13 errata-xmlrpc 2019-11-05 22:22:32 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://access.redhat.com/errata/RHBA-2019:3584