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 1510938

Summary: [RFE] yum-builddep fails to recognize nosrc.rpm
Product: Red Hat Enterprise Linux 7 Reporter: Michal Domonkos <mdomonko>
Component: yum-utilsAssignee: Michal Domonkos <mdomonko>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: extras-qa, Frodox, goetz.waschk, jdisnard, mebrown, msuchy, packaging-team-maint, praiskup, vmukhame, williams
Target Milestone: rcKeywords: FutureFeature, Patch, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1298632 Environment:
Last Closed: 2019-02-12 08:16:49 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:
Bug Depends On: 1298632    
Bug Blocks:    

Description Michal Domonkos 2017-11-08 13:09:39 UTC
+++ This bug was initially created as a clone of Bug #1298632 +++

Description of problem:
I am trying to use mock to build a nosrc rpm as follows.

1) mock -r fedora-23-x86_64 init

2) mock -r fedora-23-x86_64 --copyin Mathematica_10.2.0_LINUX.sh /builddir/build/SOURCES/

3) mock -v -r fedora-23-x86_64 --no-clean --rebuild Mathematica-10.2.0-1.fc23.nosrc.rpm


where the spec file has

Source0:        Mathematica_%{version}_LINUX.sh
NoSource:       0


However, this bails at:

DEBUG: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-23-x86_64/root/proc'] with env {'HOSTNAME': 'mock', 'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'SHELL': '/bin/sh'} and shell False
DEBUG: Child return code was: 0
ERROR: Command failed: 
 # /usr/bin/yum-builddep --installroot /var/lib/mock/fedora-23-x86_64/root/ --releasever 23 /var/lib/mock/fedora-23-x86_64/root//builddir/build/SRPMS/Mathematica-10.2.0-1.fc23.nosrc.rpm


even though:
$ ls -l /var/lib/mock/fedora-23-x86_64/root/builddir/build/SRPMS/Mathematica-10.2.0-1.fc23.nosrc.rpm 
-rw-rw-r--. 1 jgu mock 10101 Jan 14 15:16 /var/lib/mock/fedora-23-x86_64/root/builddir/build/SRPMS/Mathematica-10.2.0-1.fc23.nosrc.rpm


I'm not quite sure why it's breaking therefore.


Version-Release number of selected component (if applicable):
mock-1.2.14-1.fc23.noarch

--- Additional comment from Jonathan Underwood on 2016-01-18 16:01:52 EST ---

Ooops, didn't paste all of the error mesage. It is:

DEBUG: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-23-x86_64/root/sys'] with env {'SHELL': '/bin/sh', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'LANG': 'en_GB.UTF-8'} and shell False
DEBUG: Child return code was: 0
DEBUG: child environment: None
DEBUG: Executing command: ['/bin/umount', '-n', '-l', '/var/lib/mock/fedora-23-x86_64/root/proc'] with env {'SHELL': '/bin/sh', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'LANG': 'en_GB.UTF-8'} and shell False
DEBUG: Child return code was: 0
ERROR: Command failed: 
 # /usr/bin/yum-builddep --installroot /var/lib/mock/fedora-23-x86_64/root/ --releasever 23 /var/lib/mock/fedora-23-x86_64/root//builddir/build/SRPMS/Mathematica-10.2.0-1.fc23.nosrc.rpm

Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


fedora/23/x86_64/metalink                                                                                                                     |  24 kB  00:00:00     
updates/23/x86_64/metalink                                                                                                                    |  24 kB  00:00:00     
No such package(s): /var/lib/mock/fedora-23-x86_64/root//builddir/build/SRPMS/Mathematica-10.2.0-1.fc23.nosrc.rpm

--- Additional comment from Miroslav Suchý on 2016-06-09 11:13:05 EDT ---

This is coming from yum-builddep

sudo /usr/bin/yum-builddep --installroot /var/lib/mock/fedora-23-x86_64/root/ --releasever 23 /var/lib/mock/fedora-2386_64/root//builddir/build/SRPMS/battle-chess-1994-1.fc23.nosrc.rpm
Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


fedora/23/x86_64/metalink                                                                                                        |  24 kB  00:00:00     
updates/23/x86_64/metalink                                                                                                       |  20 kB  00:00:00     
No such package(s): /var/lib/mock/fedora-23-x86_64/root//builddir/build/SRPMS/battle-chess-1994-1.fc23.nosrc.rpm

$ ls -l /var/lib/mock/fedora-23-x86_64/root//builddir/build/SRPMS/battle-chess-1994-1.fc23.nosrc.rpm
-rw-rw-r--. 1 msuchy mock 7323  9. čen 16.05 /var/lib/mock/fedora-23-x86_64/root//builddir/build/SRPMS/battle-chess-1994-1.fc23.nosrc.rpm

For testing you can download the nosrc.rpm from:
http://miroslav.suchy.cz/copr/battle-chess-1994-1.fc20.nosrc.rpm

This used to work, so I'm marking this as regression.

$ rpm -qf /usr/bin/yum-builddep
yum-utils-1.1.31-509.fc24.noarch

--- Additional comment from Fedora End Of Life on 2016-11-24 09:56:44 EST ---

This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

--- Additional comment from Vit Ry on 2016-12-09 03:56:07 EST ---

I create Pull Request to fix it in RHEL/CentOS though :)

https://github.com/rpm-software-management/yum-utils/pull/15

--- Additional comment from Fedora End Of Life on 2016-12-20 12:53:44 EST ---

Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 2 Michal Domonkos 2017-11-15 16:34:40 UTC
Upstream PR:
https://github.com/rpm-software-management/yum-utils/pulls

Comment 3 Michal Domonkos 2017-11-15 16:35:01 UTC
Correction: https://github.com/rpm-software-management/yum-utils/pull/15

Comment 9 Daniel Mach 2019-02-12 08:16:49 UTC
There is no plan to fix this bug during RHEL 7 life cycle.
If you still consider the issue important, please contact your support representative.