From Fedora Project Wiki

No edit summary
(SELinux)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
The following metadata was found in MoinMoin that could not be converted
The following metadata was found in MoinMoin that could not be converted
to a useful value in MediaWiki:
to a useful value in MediaWiki:
Line 9: Line 8:


There's no such mock-helper, shouldn't it be /usr/sbin/mach-helper ?
There's no such mock-helper, shouldn't it be /usr/sbin/mach-helper ?
== obsolete section on SELinux? ==
Is the section:
http://fedoraproject.org/wiki/Using_Mock_to_test_package_builds#Using_mock_under_SELinux
now obsolete?  Somebody said it was on #fedora-devel because this functionality is now integrated into mock out of the box.  If so, it should probably be removed/modified. --[[User:Alexlan|Alexlan]] 20:59, 5 September 2010 (UTC)
On Fedora 13 at least the SELinux section still applies.
After compiling the local policy it must indeed be loaded with <code>sudo /usr/sbin/semodule -i /root/selinux.local/mock.pp</code> before running the restorecon command.
--[[User:M8ram|M8ram]] 19:36, 29 August 2011 (UTC)
On RHEL 7 the SELinux section is still mostly correct but insufficient.
1. /usr/bin/mock is now linked to consolehelper, thus you need to allow some from consolehelp
2. After following the instruction, you still need to do much more for staff_selinux
--[[User:Dchen|dchen]] 1:40, 21 Apr 2016 (UTC)
== Building packages that depend on packages not in a repository ==
I have never used the --copyin method. After installing the required dependencies I just did a
<code>mock -r MOCK_CONFIG --no-clean /path/to/SRPM</code>
and it's always worked.
== Setting up local mirror ==
'''If you want to set up a local mirror, refer Docs/Drafts/MockSetupUsingLocalMirror'''
Well, how do I know if I want to set up a local mirror?  A local mirror of what?  A little basic context would help here.

Latest revision as of 01:40, 21 April 2016

The following metadata was found in MoinMoin that could not be converted to a useful value in MediaWiki:

  • : semodule -i mock.pp}}}


/usr/sbin/mock-helper yum --installroot /var/lib/mock/<config-name>/root install <your packages>

There's no such mock-helper, shouldn't it be /usr/sbin/mach-helper ?

obsolete section on SELinux?

Is the section:

http://fedoraproject.org/wiki/Using_Mock_to_test_package_builds#Using_mock_under_SELinux

now obsolete? Somebody said it was on #fedora-devel because this functionality is now integrated into mock out of the box. If so, it should probably be removed/modified. --Alexlan 20:59, 5 September 2010 (UTC)

On Fedora 13 at least the SELinux section still applies. After compiling the local policy it must indeed be loaded with sudo /usr/sbin/semodule -i /root/selinux.local/mock.pp before running the restorecon command. --M8ram 19:36, 29 August 2011 (UTC)

On RHEL 7 the SELinux section is still mostly correct but insufficient.

1. /usr/bin/mock is now linked to consolehelper, thus you need to allow some from consolehelp

2. After following the instruction, you still need to do much more for staff_selinux --dchen 1:40, 21 Apr 2016 (UTC)

Building packages that depend on packages not in a repository

I have never used the --copyin method. After installing the required dependencies I just did a

mock -r MOCK_CONFIG --no-clean /path/to/SRPM

and it's always worked.

Setting up local mirror

If you want to set up a local mirror, refer Docs/Drafts/MockSetupUsingLocalMirror

Well, how do I know if I want to set up a local mirror? A local mirror of what? A little basic context would help here.