Bug 1196248 - Unable to build package for rawhide (f22)
Summary: Unable to build package for rawhide (f22)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-25 14:59 UTC by Jaroslav Škarvada
Modified: 2015-06-20 21:13 UTC (History)
9 users (show)

Fixed In Version: mock-1.2.10-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-01 16:51:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Škarvada 2015-02-25 14:59:18 UTC
Description of problem:
After recent mock update it is not possible to build any package in mock for rawhide (f22).

Version-Release number of selected component (if applicable):
mock-1.1.41-3

How reproducible:
Always

Steps to Reproduce:
1. mock -r fedora-rawhide-x86_64 grep-2.21-3.fc23.src.rpm

Actual results:
No such command: builddep. Please use /usr/bin/dnf --help
It could be a DNF plugin command.
ERROR: Exception(grep-2.21-3.fc23.src.rpm) Config(fedora-rawhide-x86_64) 1 minutes 6 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed. See logs for output.
 # /usr/bin/dnf builddep --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever 23 /var/lib/mock/fedora-rawhide-x86_64/root//builddir/build/SRPMS/grep-2.21-3.fc23.src.rpm --setopt=tsflags=nocontexts
[

Expected results:
No error

Additional info:
It works correctly with mock-1.2.7-1.fc21. Note "/usr/bin/dnf builddep", AFAIK it was previously yum-builddep.

Comment 1 Jaroslav Škarvada 2015-02-25 16:15:08 UTC
(In reply to Jaroslav Škarvada from comment #0)
> Version-Release number of selected component (if applicable):
> mock-1.1.41-3
> 
Sorry changed the numbers :)

Bad version:
mock-1.2.7-1.fc21.noarch

Good version:
mock-1.1.41-3.fc21.noarch

Comment 2 Mikhail Campos 2015-02-26 10:34:35 UTC
I have a similar problem with dnf: 

[plageat@localhost srpms]$ mock -r fedora-rawhide-x86_64 xorg-x11-xtrans-devel-1.3.5-1.fc22.src.rpm
INFO: mock.py version 1.2.6 starting (python version = 2.7.5)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(xorg-x11-xtrans-devel-1.3.5-1.fc22.src.rpm)  Config(fedora-rawhide-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled ccache
Mock Version: 1.2.6
INFO: Mock Version: 1.2.6
Start: dnf install
determining the fastest mirror (11 hosts).. done.
fedora                                          366 kB/s |  41 MB     01:55    
No package @buildsys-build available.
Error: Nothing to do
ERROR: Exception(xorg-x11-xtrans-devel-1.3.5-1.fc22.src.rpm) Config(fedora-rawhide-x86_64) 2 minutes 26 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed. See logs for output.
 # /usr/bin/dnf --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever 23 install @buildsys-build

Commenting config_opts['package_manager'] = 'dnf' in config for rawhide fixes the problem.

Comment 3 Radek Holy 2015-02-26 14:06:44 UTC
The problem is that the new mock miss "Requires: dnf" and moreover "Requires: dnf-plugins-core". From what I understood, this is intentional (see https://lists.fedoraproject.org/pipermail/devel/2015-February/207685.html).

If it's really intentional, the only correct fix is probably to install "dnf-plugins-core" manually (please note that the package should be installed into the host, not into the chroot). But Mock should at least write an advice to do so.

Comment 4 Mikhail Campos 2015-02-26 17:23:41 UTC
(In reply to Radek Holy from comment #3)
> the only correct fix is probably to install
> "dnf-plugins-core" manually

Ok, it helped. This is marked in mock.spec as 'Recommends':

%if 0%{?fedora} > 21
Recommends: dnf
Recommends: dnf-plugins-core
%endif

+ 1 for outputting some warning message and continue building with yum

Comment 5 Miroslav Suchý 2015-02-28 21:58:23 UTC
Mock could not require DNF, because
  a) it is not present on EL{6,7}, which we still support
  b) it is actually not needed unless you build for rawhide

Therefore it is tagged only as "Recommends" and you should manually select it for installation.

Another solutions is to run:
  mock -r fedora-rawhide-x86_64 --yum some.src.rpm
where you explicitly state "I'm fine with building with something else than official too".

This is basically feature. But I will leave this open and try to provide better error to give user hint. Something like.
  "Error: builddep command is missing. You should install dnf-plugins-core package."

Comment 6 Jaroslav Škarvada 2015-03-03 10:20:45 UTC
I installed dnf-plugins-core, but it still doesn't work (f23):

Start: dnf install
fedora                                           28 MB/s |  41 MB     00:01    
Using metadata from Tue Mar  3 11:01:13 2015
Dependencies resolved.
================================================================================
 Group                        Packages                                         
================================================================================
Marking installed:
 Buildsystem building group   tar              xz             sed              
                              findutils        bzip2          redhat-rpm-config
                              make             shadow-utils   coreutils        
                              which            gcc-c++        unzip            
                              fedora-release   cpio           gawk             
                              gcc              util-linux     bash             
                              info             grep           diffutils        
                              patch            rpm-build      gzip             
Complete!
[Errno 2] No such file or directory: u'/var/lib/mock/fedora-rawhide-x86_64/root/var/lib/dnf/groups.json'
ERROR: Exception(./hpl-2.1-5.fc21.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 36 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed. See logs for output.
 # /usr/bin/dnf --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever 23 install @buildsys-build --setopt=tsflags=nocontexts

Comment 7 Radek Holy 2015-03-03 10:36:33 UTC
I hit this problem too. But I was too lazy to debug it and because I run out of the disk space at the same time, freeing the space (including the mock cache) and reinitialization of mock helped to me. But this was just a workaround.

Comment 8 Miroslav Suchý 2015-04-16 14:16:03 UTC
Fixed in:
* 573f767  suggest user to install dnf-plugins-core [RHBZ#1196248]

The error is now:
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: builddep command missing.
Please install package dnf-plugins-core.

Comment 9 Fedora Update System 2015-04-29 13:16:49 UTC
mock-1.2.8-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc22

Comment 10 Fedora Update System 2015-04-29 13:17:13 UTC
mock-1.2.8-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc21

Comment 11 Fedora Update System 2015-04-29 13:18:19 UTC
mock-1.2.8-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/mock-1.2.8-1.fc20

Comment 12 Fedora Update System 2015-04-29 13:19:18 UTC
mock-1.2.8-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/mock-1.2.8-1.el7

Comment 13 Fedora Update System 2015-04-29 13:25:58 UTC
mock-1.2.8-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/mock-1.2.8-1.el6

Comment 14 Fedora Update System 2015-04-29 19:19:01 UTC
Package mock-1.2.8-1.el7:
* should fix your issue,
* was pushed to the Fedora EPEL 7 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing mock-1.2.8-1.el7'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6057/mock-1.2.8-1.el7
then log in and leave karma (feedback).

Comment 15 Fedora Update System 2015-05-01 16:51:06 UTC
mock-1.2.8-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2015-05-02 18:08:45 UTC
mock-1.2.8-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2015-05-12 20:46:48 UTC
mock-1.2.8-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2015-06-04 11:41:52 UTC
mock-1.2.10-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/mock-1.2.10-1.el7

Comment 19 Fedora Update System 2015-06-04 11:43:01 UTC
mock-1.2.10-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/mock-1.2.10-1.el6

Comment 20 Fedora Update System 2015-06-20 21:10:43 UTC
mock-1.2.10-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2015-06-20 21:13:15 UTC
mock-1.2.10-1.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.


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