Bug 1228751 - Document the meaning of config_opts
Summary: Document the meaning of config_opts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1230749 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-05 15:07 UTC by Radek Holy
Modified: 2015-10-06 02:14 UTC (History)
7 users (show)

Fixed In Version: mock-1.2.12-1.fc21
Clone Of:
Environment:
Last Closed: 2015-08-03 04:28:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rholy dnf-stack-ci issues 70 0 None closed Improve the documentation of the program options 2020-11-17 17:41:38 UTC

Description Radek Holy 2015-06-05 15:07:51 UTC
Although most of the people may consider it obvious, I'd like to see the description of the config_opts['target_arch'] option somewhere in an official documentation. So far, if my program uses Mock, the only thing I can tell about one of its options is that it sets the value of "config_opts['target_arch']". This is not very user-friendly.

Comment 1 Radek Holy 2015-06-29 12:42:24 UTC
Let's make the request broader. I miss the documentation of at least these options:

config_opts['root']
config_opts['target_arch']
config_opts['yum.conf']

Comment 2 Radek Holy 2015-06-29 12:42:56 UTC
*** Bug 1230749 has been marked as a duplicate of this bug. ***

Comment 3 Jan Kurik 2015-07-15 14:03:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 4 Miroslav Suchý 2015-07-22 12:25:04 UTC
I commit 27d1518 I added:
+# Contains content of yum.conf or dnf.conf. If DNF is used and dnf.conf is not set, then content of yum.conf is
+# used to populate dnf.conf
 # config_opts['yum.conf'] = ''
 # or
 # config_opts['dnf.conf'] = ''

Comment 5 Radek Holy 2015-07-22 14:07:22 UTC
Could it be the whole path (e.g. $CHROOT/etc/yum/yum.conf), please?

Comment 6 Miroslav Suchý 2015-07-22 14:14:14 UTC
In commit e9f16de I added:
+# Mock will set architecture to 'target_arch' using personality(2) syscall.
 # config_opts['target_arch'] = 'i386'
+# When host system architecture is not in 'legal_host_arches' list, mock will refuse to switch to
+# 'target_arch' and will raise error.
+# config_opts['legal_host_arches'] = ('i386', 'i586', 'i686', 'x86_64')

Comment 7 Miroslav Suchý 2015-07-22 14:20:50 UTC
(In reply to Radek Holy from comment #5)
> Could it be the whole path (e.g. $CHROOT/etc/yum/yum.conf), please?

Clified in commit 8e546e1

Comment 8 Radek Holy 2015-07-22 14:23:52 UTC
Thank you! Looks good so far!

Comment 9 Fedora Update System 2015-07-23 19:51:00 UTC
mock-1.2.12-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/mock-1.2.12-1.fc21

Comment 10 Fedora Update System 2015-07-23 19:51:16 UTC
mock-1.2.12-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/mock-1.2.12-1.fc22

Comment 11 Fedora Update System 2015-07-23 19:51:29 UTC
mock-1.2.12-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/mock-1.2.12-1.el6

Comment 12 Fedora Update System 2015-07-23 19:51:43 UTC
mock-1.2.12-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/mock-1.2.12-1.el7

Comment 13 Fedora Update System 2015-07-27 23:11:24 UTC
Package mock-1.2.12-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 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.12-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-7359/mock-1.2.12-1.el6
then log in and leave karma (feedback).

Comment 14 Radek Holy 2015-07-28 08:44:58 UTC
So, you are not going to document the 'root' option? I have no idea what could 'name-of-yum-build-dir' mean.

Comment 15 Fedora Update System 2015-08-03 04:28:52 UTC
mock-1.2.12-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-08-17 19:03:50 UTC
mock-1.2.12-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 17 Fedora Update System 2015-08-17 19:08:20 UTC
mock-1.2.12-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.

Comment 18 Fedora Update System 2015-08-18 05:24:23 UTC
mock-1.2.12-1.fc21 has been pushed to the Fedora 21 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.