Bug 1483864

Summary: Cannot build packages with old-chroot
Product: [Fedora] Fedora Reporter: Lukas Slebodnik <lslebodn>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jdisnard, mebrown, msimacek, msuchy, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-23 11:21:00 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 Lukas Slebodnik 2017-08-22 07:24:55 UTC
Description of problem:
I tried to rebuild some packages in mock on rawhide and it failed
due to missing package dnf-plugins-core

Version-Release number of selected component (if applicable):
sh#  rpm -q dnf dnf-plugins-core mock
dnf-2.6.3-2.fc28.noarch
dnf-plugins-core-2.1.3-2.fc27.noarch
mock-1.4.3-1.fc27.noarch


How reproducible:
Deterministic

Steps to Reproduce:
1. docker run -ti --rm --privileged docker.io/fedora:rawhide bash
   //rest run within  rawhide container
2. dnf install --nogpgcheck --best -y mock
3. curl -O https://kojipkgs.fedoraproject.org//packages/lftp/4.8.0/3.fc27/src/lftp-4.8.0-3.fc27.src.rpm
4. mock --old-chroot --resultdir . --rebuild ./lftp-4.8.0-3.fc27.src.rpm

Actual results:
...

Complete!
Finish: dnf install
Start: creating root cache
Finish: creating root cache
Finish: chroot init
INFO: Installed packages:
Start: build phase for lftp-4.8.0-3.fc27.src.rpm
Start: build setup for lftp-4.8.0-3.fc27.src.rpm
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/lftp-4.8.0-3.fc28.src.rpm
No such command: builddep. Please use /usr/bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(builddep)'"
ERROR: Exception(./lftp-4.8.0-3.fc27.src.rpm) Config(fedora-rawhide-x86_64) 2 minutes 0 seconds
INFO: Results and/or logs in: .
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Finish: clean chroot
ERROR: builddep command missing.
Please install package dnf-plugins-core.


Expected results:
src.rpm pacakge rebuilt without any problem.

Comment 1 Lukas Slebodnik 2017-08-22 08:14:30 UTC
It is the same problem as in https://bugzilla.redhat.com/show_bug.cgi?id=1483342

It works well with following packages:
dnf-2.6.3-3.fc28.noarch
dnf-plugins-core-2.1.3-2.fc27.noarch
mock-1.4.3-1.fc27.noarch

Comment 2 Miroslav Suchý 2017-08-23 11:21:00 UTC

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