Bug 198585

Summary: hard-coded references to buildsys-build
Product: [Retired] Fedora Hosted Projects Reporter: Ralf Corsepius <rc040203>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dcantrell, extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-18 14:03:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ralf Corsepius 2006-07-12 03:34:21 UTC
Description of problem:

/usr/bin/mock contains this:
..
    config_opts['chroot_setup_cmd'] = 'install buildsys-build'
..
i.e. a hard-coded reference to buildsys-build*.rpm

The same can be found in /etc/mock/defaults.cfg:
..
config_opts['chroot_setup_cmd'] = 'install buildsys-build'
..


As of today, http://fedoraproject.org/buildgroups however only provides
buildsys-build rpms for FC >= 3, while FE-mock ships configurations
(/etc/mock/*.cfg) to support distros < FC3.

=> This can't work.

AFAIS, as a minimal requirement to get mock working for older distros, either
* buildsys-build rpms will have to be added to fedoraproject.org/buildgroups,
 or
* config_opts['chroot_setup_cmd'] in /etc/mock/*.cfg will have to be setup
differently.

Version-Release number of selected component (if applicable):
mock-0.6-4.fc5

Comment 1 Clark Williams 2006-08-16 16:32:37 UTC
buildsys-build RPMs have been generated for all supported distros. Has this
resolved your issue?



Comment 2 Ralf Corsepius 2006-08-17 01:50:56 UTC
(In reply to comment #1)
> buildsys-build RPMs have been generated for all supported distros. Has this
> resolved your issue?
Well, you've fixed the symptoms ("supported distros"), but you've not fixed the
cause (An incorrect default in "default.cfg").

Comment 3 Clark Williams 2006-08-17 14:07:19 UTC
I don't see what you mean. We've generated buildsys-build rpms for all supported
distros (rhl[79] for legacy, FC[1-5] and development), so that any target config
that does an install wil find a buildsys-build, download it and install it for
dependencies. 

Are you saying that the symlink that is default.cfg is pointing to an incorrect
file, or that the contents of the .cfg file referenced by default.cfg is
incorrect? If the latter, then what precisely do you find incorrect?

Comment 4 Ralf Corsepius 2006-08-18 03:53:14 UTC
(In reply to comment #3)
> I don't see what you mean.
Sorry, my last comment wasn't entirely correct.

I was referring to the default config_opts in /usr/bin/mock, not default.cfg:

    config_opts['chroot_setup_cmd'] = 'install buildsys-build'

This causes mock to fail for all distros you don't have under your control.

I.e. the bug is mock using this line above as default.

Comment 5 Clark Williams 2006-08-18 14:03:47 UTC
As I was writing another, "but I don't understand!" reply, I realized what the
problem is. You don't have a way to build a buildsys-build package for say Bob's
Linux (or Ralf's Linux, in this case). 

That is being corrected in the next release, since the buildsys-build.spec file
will be included in /usr/share/doc/mock. With this you should be able to tailor
the contents of a buildsys-build package for your distro.