Bug 1160612

Summary: [rfe] builddep : add --installroot option
Product: [Fedora] Fedora Reporter: Miroslav Suchý <msuchy>
Component: dnf-plugins-coreAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 23CC: akozumpl, jmracek, jsilhan, jzeleny, mluscon, packaging-team-maint, pnemade, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-13 14:53:36 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: 1163028    
Bug Blocks:    

Description Miroslav Suchý 2014-11-05 09:06:52 UTC
Description of problem:
When you run:
  dnf builddep --installroot /var/lib/mock/fedora-20-x86_64/root --releasever 20 copr-ping-1-1.fc20.src.rpm
The command will use host yum repositories instead of those located in /var/lib/mock/fedora-20-x86_64/root/etc/yum.repos.d/

Version-Release number of selected component (if applicable):
dnf-plugins-core-0.1.3-1.fc21.noarch

How reproducible:
always

Steps to Reproduce:
1. dnf builddep --installroot /var/lib/mock/fedora-20-x86_64/root --releasever 20 copr-ping-1-1.fc20.src.rpm

Actual results:
[root@dri//home/msuchy/projects/mock{master}]# dnf builddep --installroot /var/lib/mock/fedora-20-x86_64/root --releasever 20 /var/lib/mock/fedora-20-x86_64/root//builddir/build/SRPMS/copr-ping-1-1.fc20.src.rpm
Ruby193 - epel-7-x86_64                                                                                            99 kB/s | 468 kB     00:04    
rhts                                                                                                               15 kB/s |  14 kB     00:00    
Fedora 20 - x86_64                                                                                                167 kB/s |  36 MB     03:39    
RPM Fusion for Fedora Rawhide - Free                                                                              173 kB/s | 530 kB     00:03    
RPM Fusion for Fedora 20 - Free - Updates                                                                         172 kB/s | 425 kB     00:02    
RPM Fusion for Fedora 20 - Nonfree - Updates                                                                      121 kB/s | 127 kB     00:01    
RPM Fusion for Fedora 20 - Free                                                                                   165 kB/s | 487 kB     00:02    
rhpkg for Fedora 20                                                                                               7.8 kB/s | 3.5 kB     00:00    
Fedora 20 - x86_64 - Updates - Debug                                                                              6.9 MB/s | 6.3 MB     00:00    
RPM Fusion for Fedora Rawhide - Nonfree                                                                           120 kB/s | 179 kB     00:01    
Fedora 20 - x86_64 - Updates                                                                                       10 MB/s |  28 MB     00:02    
Copr repo for mock-dev owned by msuchy                                                                            2.1 kB/s | 2.9 kB     00:01    
OpenStack Icehouse Repository                                                                                     178 kB/s | 2.0 MB     00:11    
RPM Fusion for Fedora 20 - Nonfree                                                                                115 kB/s | 289 kB     00:02    
Fedora 20 - x86_64 - Test Updates                                                                                 4.9 MB/s | 3.2 MB     00:00    
google-musicmanager                                                                                                11 kB/s | 1.7 kB     00:00    
Beaker Client - Fedora20                                                                                           11 kB/s |  20 kB     00:01    
Error: no package matched



[root@dri//home/msuchy/projects/mock{master}]# /usr/bin/yum-builddep --installroot /var/lib/mock/fedora-20-x86_64/root --releasever 20 /var/lib/mock/fedora-20-x86_64/root//builddir/build/SRPMS/copr-ping-1-1.fc20.src.rpm
fedora/20/x86_64/metalink                                                                                                  |  20 kB  00:00:00     
fedora                                                                                                                     | 3.8 kB  00:00:00     
updates/20/x86_64/metalink                                                                                                 |  17 kB  00:00:00     
updates                                                                                                                    | 4.9 kB  00:00:00     
(1/4): fedora/20/x86_64/group_gz                                                                                           | 394 kB  00:00:04     
(2/4): updates/20/x86_64/group_gz                                                                                          | 395 kB  00:00:06     
(3/4): updates/20/x86_64/primary_db                                                                                        |  12 MB  00:00:01     
(4/4): fedora/20/x86_64/primary_db                                                                                         |  18 MB  00:02:01     
(1/2): updates/20/x86_64/updateinfo                                                                                        | 1.6 MB  00:00:00     
(2/2): updates/20/x86_64/pkgtags                                                                                           | 1.3 MB  00:00:00     
Getting requirements for copr-ping-1-1.fc20.src
Error: No Package found for bar
Error: No Package found for foo



# ls -l /var/lib/mock/fedora-20-x86_64/root/etc/yum.repos.d/
total 12
-rw-r--r-- 1 root root 1254 Feb 19  2014 fedora.repo
-rw-r--r-- 1 root root 1213 Feb 19  2014 fedora-updates.repo
-rw-r--r-- 1 root root 1271 Feb 19  2014 fedora-updates-testing.repo

Comment 1 Honza Silhan 2014-11-10 12:27:43 UTC
Thanks for the report.

Comment 2 Miroslav Suchý 2015-09-02 10:36:33 UTC
Can you please give it higher priority?

Comment 3 Miroslav Suchý 2015-10-15 20:22:37 UTC
Please can you provide the fix? Koji started using DNF in rawhide and this will cause some problem sooner rather then later.

Comment 4 Jaroslav Mracek 2016-01-13 14:50:12 UTC
The problem should be fixed by pull-request https://github.com/rpm-software-management/dnf/pull/428 .

Comment 5 Jaroslav Mracek 2016-01-13 14:53:36 UTC

*** This bug has been marked as a duplicate of bug 1279185 ***