I am running fedora 26 and having a problem with the mock builds for for epel7. Here is what I think is the relevant information:
cppad>git branch | grep epel7 * epel7
cppad>sudo fedpkg mockbuild ... snip ... File "/usr/lib64/python3.6/subprocess.py", line 1344, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/yum-builddep': '/usr/bin/yum-builddep' Could not execute mockbuild: Command '['mock', '-r', u'epel-7-x86_64', '--resultdir', u'/home/bradbell/fedora/cppad/results_cppad/20180000.0/1.el7', '--rebuild', u'/home/bradbell/fedora/cppad/cppad-20180000.0-1.el7.src.rpm']' returned non-zero exit status 1
I have set /etc/mock/site-defaults.cfg to not cleanup on success or failure. It appears that the mock root directory for epel7 is /var/lib/mock/epel-7-x86_64/root
For example cppad>ls /var/lib/mock/epel-7-x86_64/root/usr/bin | grep gcc | wc -l 5
It also appears there is no file or directory named yum-builddep in relative to the mock root cppad>ls /var/lib/mock/epel-7-x86_64/root/usr/bin | grep yum | wc -l 0
On Tue, 2018-01-02 at 06:25 -0700, Brad Bell wrote:
No such file or directory: '/usr/bin/yum-builddep'
rpm -qf /usr/bin/yum-builddep yum-utils-1.1.31-512.fc26.noarch
seems you need yum-utils or in /etc/mock/site-defaults.cfg use :
config_opts['package_manager'] = 'dnf'
Cheers,
On 2018-01-02 14:07, Sérgio Basto wrote:
On Tue, 2018-01-02 at 06:25 -0700, Brad Bell wrote:
No such file or directory: '/usr/bin/yum-builddep'
rpm -qf /usr/bin/yum-builddep yum-utils-1.1.31-512.fc26.noarch
seems you need yum-utils or in /etc/mock/site-defaults.cfg use :
config_opts['package_manager'] = 'dnf'
As an aside, in Fedora 27 /usr/bin/yum-builddep is provided by dnf-utils and is of course based on dnf, so you get dnf resolving build dependencies even if you have config_opts['package_manager'] = 'yum'.
Paul.
On Fri, Jan 5, 2018 at 10:56 AM, Paul Howarth paul@city-fan.org wrote:
On 2018-01-02 14:07, Sérgio Basto wrote:
On Tue, 2018-01-02 at 06:25 -0700, Brad Bell wrote:
No such file or directory: '/usr/bin/yum-builddep'
rpm -qf /usr/bin/yum-builddep yum-utils-1.1.31-512.fc26.noarch
seems you need yum-utils or in /etc/mock/site-defaults.cfg use :
config_opts['package_manager'] = 'dnf'
As an aside, in Fedora 27 /usr/bin/yum-builddep is provided by dnf-utils and is of course based on dnf, so you get dnf resolving build dependencies even if you have config_opts['package_manager'] = 'yum'.
It's not supposed to use yum-builddep when you set yum in Fedora 27, it's supposed to use yum-builddep-deprecated.
I fixed that a while back: https://github.com/rpm-software-management/mock/commit/39e795a096315b653184e...
But, yum-utils has to be installed for that to work.
On Fri, 5 Jan 2018 11:11:26 -0500 Neal Gompa ngompa13@gmail.com wrote:
On Fri, Jan 5, 2018 at 10:56 AM, Paul Howarth paul@city-fan.org wrote:
On 2018-01-02 14:07, Sérgio Basto wrote:
On Tue, 2018-01-02 at 06:25 -0700, Brad Bell wrote:
No such file or directory: '/usr/bin/yum-builddep'
rpm -qf /usr/bin/yum-builddep yum-utils-1.1.31-512.fc26.noarch
seems you need yum-utils or in /etc/mock/site-defaults.cfg use :
config_opts['package_manager'] = 'dnf'
As an aside, in Fedora 27 /usr/bin/yum-builddep is provided by dnf-utils and is of course based on dnf, so you get dnf resolving build dependencies even if you have config_opts['package_manager'] = 'yum'.
It's not supposed to use yum-builddep when you set yum in Fedora 27, it's supposed to use yum-builddep-deprecated.
I fixed that a while back: https://github.com/rpm-software-management/mock/commit/39e795a096315b653184e...
But, yum-utils has to be installed for that to work.
And you can't install that because it conflicts with dnf-utils.
Error: Transaction check error: file /usr/bin/debuginfo-install from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/find-repos-of-install from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/package-cleanup from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repo-graph from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repoclosure from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repomanage from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repoquery from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/reposync from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repotrack from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yum-builddep from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yum-config-manager from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yum-debug-dump from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yum-debug-restore from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yumdownloader from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch
I don't really want to uninstall dnf-utils.
Paul.
On Sun, Jan 7, 2018 at 7:05 AM, Paul Howarth paul@city-fan.org wrote:
On Fri, 5 Jan 2018 11:11:26 -0500 Neal Gompa ngompa13@gmail.com wrote:
On Fri, Jan 5, 2018 at 10:56 AM, Paul Howarth paul@city-fan.org wrote:
On 2018-01-02 14:07, Sérgio Basto wrote:
On Tue, 2018-01-02 at 06:25 -0700, Brad Bell wrote:
No such file or directory: '/usr/bin/yum-builddep'
rpm -qf /usr/bin/yum-builddep yum-utils-1.1.31-512.fc26.noarch
seems you need yum-utils or in /etc/mock/site-defaults.cfg use :
config_opts['package_manager'] = 'dnf'
As an aside, in Fedora 27 /usr/bin/yum-builddep is provided by dnf-utils and is of course based on dnf, so you get dnf resolving build dependencies even if you have config_opts['package_manager'] = 'yum'.
It's not supposed to use yum-builddep when you set yum in Fedora 27, it's supposed to use yum-builddep-deprecated.
I fixed that a while back: https://github.com/rpm-software-management/mock/commit/39e795a096315b653184e...
But, yum-utils has to be installed for that to work.
And you can't install that because it conflicts with dnf-utils.
Error: Transaction check error: file /usr/bin/debuginfo-install from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/find-repos-of-install from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/package-cleanup from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repo-graph from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repoclosure from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repomanage from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repoquery from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/reposync from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/repotrack from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yum-builddep from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yum-config-manager from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yum-debug-dump from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yum-debug-restore from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch file /usr/bin/yumdownloader from install of yum-utils-1.1.31-513.fc27.noarch conflicts with file from package dnf-utils-2.1.5-1.fc27.noarch
I don't really want to uninstall dnf-utils.
Paul.
Oh, this means someone forgot to apply the yum-utils-deprecated patch to the Fedora yum-utils... I deployed this change to Mageia (which has DNF too), and it works fine...
sön 2018-01-07 klockan 12:05 +0000 skrev Paul Howarth:
I don't really want to uninstall dnf-utils.
Hi!
For me building in mock for EPEL works fine without yum and yum-utils. I use dnf-yum and dnf-utils instead and it works fine. I know this is not the way that is recommended since dnf-yum and dnf-utils uses dnf to re-implement /usr/bin/yum and /usr/bin/yum-builddep, so they could potentially give different results in some cases. But with the introduction of the bootstrap changeroot, only the bootstrap changeroot is created using these dnf based tools. The proper build changeroot is created inside the bootstrap changeroot which has the proper yum version from RHEL, so the risk for mishaps is smaller now.
There used to be a bug in mock that prevented this from working out of the box (it needed a small edit to one of mock's python files), but it was fixed in the latest mock update (1.4.8).
# dnf list dnf dnf-utils dnf-yum yum yum-utils mock Last metadata expiration check: 0:48:17 ago on Mon Jan 8 08:07:29 2018. Installed Packages dnf.noarch 2.7.5-2.fc27 @updates dnf-utils.noarch 2.1.5-1.fc27 @fedora dnf-yum.noarch 2.7.5-2.fc27 @updates mock.noarch 1.4.8-1.fc27 @updates Available Packages yum.noarch 3.4.3-513.fc27 fedora yum-utils.noarch 1.1.31-513.fc27 fedora
Mattias
Dne 8.1.2018 v 09:00 Mattias Ellert napsal(a):
For me building in mock for EPEL works fine without yum and yum-utils. I use dnf-yum and dnf-utils instead and it works fine. I know this is not the way that is recommended since dnf-yum and dnf-utils uses dnf to re-implement /usr/bin/yum and /usr/bin/yum-builddep, so they could potentially give different results in some cases. But with the introduction of the bootstrap changeroot, only the bootstrap changeroot is created using these dnf based tools. The proper build changeroot is created inside the bootstrap changeroot which has the proper yum version from RHEL, so the risk for mishaps is smaller now.
There used to be a bug in mock that prevented this from working out of the box (it needed a small edit to one of mock's python files), but it was fixed in the latest mock update (1.4.8).
Yes. The bootstrap solve those problems. For those who does not follow mock development see:
https://github.com/rpm-software-management/mock/wiki/Release-Notes-1.4.1#boo...
But because too many bugs related to bootstrap (plugins, custom changes) it is disabled by default now. So you have to:
config_opts['use_bootstrap_container'] = True
If you do not have too much customization to your default config it will work.
Mirek
packaging@lists.fedoraproject.org