This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 1980717 - Missing git dependency in BuildRequires in source rpm
Summary: Missing git dependency in BuildRequires in source rpm
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: librsvg2
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Tomas Popela
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-09 11:24 UTC by Jesus Checa
Modified: 2023-06-20 10:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-20 10:46:51 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-637 0 None None None 2023-06-20 10:46:50 UTC

Description Jesus Checa 2021-07-09 11:24:11 UTC
Description of problem:
Trying to build the source rpm (librsvg2-2.42.7-4.el8.src.rpm) fails in %prep stage due to a missing dependency with git:
[root@ibm-z-118 ~]# rpmbuild -bb rpmbuild/SPECS/librsvg2.spec 
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Vxa6WO
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf librsvg-2.42.7
+ /usr/bin/xz -dc /root/rpmbuild/SOURCES/librsvg-2.42.7.tar.xz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd librsvg-2.42.7
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/git init -q
/var/tmp/rpm-tmp.Vxa6WO: line 45: /usr/bin/git: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Vxa6WO (%prep)


Version-Release number of selected component (if applicable):
librsvg2-2.42.7-4.el8.src.rpm

How reproducible:
100%

Steps to Reproduce:
1. Get the source rpm librsvg2-2.42.7-4.el8.src.rpm
2. rpm -ivh librsvg2-2.42.7-4.el8.src.rpm
3. yum-builddep librsvg2-2.42.7-4.el8.src.rpm
4. rpmbuild -bb ~/rpmbuild/SPECS/librsvg2.spec

Actual results:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Vxa6WO
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf librsvg-2.42.7
+ /usr/bin/xz -dc /root/rpmbuild/SOURCES/librsvg-2.42.7.tar.xz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd librsvg-2.42.7
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/git init -q
/var/tmp/rpm-tmp.Vxa6WO: line 45: /usr/bin/git: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Vxa6WO (%prep)

Expected results:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FUnimu
+ umask 022             
+ cd /root/rpmbuild/BUILD                                                                                              
+ cd /root/rpmbuild/BUILD                         
+ rm -rf librsvg-2.42.7
+ /usr/bin/xz -dc /root/rpmbuild/SOURCES/librsvg-2.42.7.tar.xz              
+ /usr/bin/tar -xof -    
+ STATUS=0                          
+ '[' 0 -ne 0 ']'                                                                                                                                                                                                                              
+ cd librsvg-2.42.7                                                                                                                                                                                                                            + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .                                                                                                                                                                                                        + /usr/bin/git init -q
+ /usr/bin/git config user.name rpm-build                                                                              
+ /usr/bin/git config user.email '<rpm-build>'   
+ /usr/bin/git add .                                    
+ /usr/bin/git commit -q --allow-empty -a --author 'rpm-build <rpm-build>' -m 'librsvg2-2.42.7 base'
+ /usr/bin/cat /root/rpmbuild/SOURCES/CVE-2019-20446.patch
+ /usr/bin/git apply --index -p1 -                    
+ /usr/bin/git commit -q -m CVE-2019-20446.patch --author 'rpm-build <rpm-build>'
+ /usr/bin/cat /root/rpmbuild/SOURCES/fix-cssparser-build.patch
+ /usr/bin/git apply --index -p1 -                  
+ /usr/bin/git commit -q -m fix-cssparser-build.patch --author 'rpm-build <rpm-build>'
+ sed -i -e '/profile.release/a debug = true' Cargo.toml                                                               
+ exit 0   
(Continues to the next stage).

Additional info:
Tested only on RHEL 8.5 on s390x. I assume it will reproduce in all supported archs as well.

I noticed that the version tested introduced a difference in the %prep stage in the .spec file.
librsvg2-2.42.7-4.el8.src.rpm:
%prep
%autosetup -n librsvg-%{version} -p1 -S git
librsvg2-2.42.7-3.el8.src.rpm:
%prep
%autosetup -n librsvg-%{version} -p1

Comment 2 RHEL Program Management 2023-01-09 07:27:37 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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