<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mock.git/py/mock/plugins, branch master</title>
<subtitle>Dennis's mock patches, likely mostly config files for secondary arches</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/'/>
<entry>
<title>Update packages after unpacking root cache</title>
<updated>2010-08-12T15:58:21+00:00</updated>
<author>
<name>Paul Howarth</name>
<email>paul@city-fan.org</email>
</author>
<published>2010-08-11T10:54:01+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=59020475e4b76f324298a6c719b55f7435d33ac9'/>
<id>59020475e4b76f324298a6c719b55f7435d33ac9</id>
<content type='text'>
Fix problem introduced in commit 3bc5fb958deb809fc04d6a74ce6688e093f5831a
where the buildroot is no longer updated after unpacking the root cache.

http://bugzilla.redhat.com/557526

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix problem introduced in commit 3bc5fb958deb809fc04d6a74ce6688e093f5831a
where the buildroot is no longer updated after unpacking the root cache.

http://bugzilla.redhat.com/557526

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Exclude bind-mounted cache dirs from root cache</title>
<updated>2010-08-12T15:57:35+00:00</updated>
<author>
<name>Paul Howarth</name>
<email>paul@city-fan.org</email>
</author>
<published>2010-08-11T10:53:59+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=942b94cd6b1345ce7c2373a6c0cd5e689fd22dcf'/>
<id>942b94cd6b1345ce7c2373a6c0cd5e689fd22dcf</id>
<content type='text'>
Including the ccache directory /tmp/ccache and the yum cache directory
/var/cache/yum in the root cache is unnecessary and can lead to the
root cache tarball being an order of magnitude larger and taking 10
minutes or more to tar and compress even on a fast PC.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Including the ccache directory /tmp/ccache and the yum cache directory
/var/cache/yum in the root cache is unnecessary and can lead to the
root cache tarball being an order of magnitude larger and taking 10
minutes or more to tar and compress even on a fast PC.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>append rather than insert umount of /proc/filesystems (BZ# 620825)</title>
<updated>2010-08-03T17:43:47+00:00</updated>
<author>
<name>Clark Williams</name>
<email>williams@redhat.com</email>
</author>
<published>2010-08-03T17:36:21+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=967fdcadf16782edea28f4e6a8a735cd3acb7348'/>
<id>967fdcadf16782edea28f4e6a8a735cd3acb7348</id>
<content type='text'>
since the umount commands are reversed before being executed, just
append the umount of /proc/filesystems in the selinux plugin so
that it will happen in the correct order.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
since the umount commands are reversed before being executed, just
append the umount of /proc/filesystems in the selinux plugin so
that it will happen in the correct order.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>add selinux plugin</title>
<updated>2010-07-30T21:14:55+00:00</updated>
<author>
<name>Jan Vcelak</name>
<email>jvcelak@redhat.com</email>
</author>
<published>2010-07-30T21:14:55+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=0aac2d3d8804271eaca33f93650b04f1bd8b249c'/>
<id>0aac2d3d8804271eaca33f93650b04f1bd8b249c</id>
<content type='text'>
This patch adds an selinux plugin that sets up an environment with
selinux turned *off* in the build chroot. How does this work? From the
author's description:

It is done the same as the patch sent by Thomas Liu in bz 614440 does.
Actually, this proceeding was suggested by Dan Walsh in bz 573111.

1.) Fake /proc/filesystems is created in conf["cachedir"]. It includes the
same content as the same file in host environment, except line with selinuxfs.
This file is bind mounted into build environment.

2.) Option '--setopt=tsflags=nocontext' is added to yum commands. This is done
by wrapping mock.util.do with _selinuxDoYum in "preyum" hook. This function
just adds the option and passes the command to original mock.util.do function.
The wrapping is removed in "postyum" hook.
I didn't find cleaner method, without modifying main code.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds an selinux plugin that sets up an environment with
selinux turned *off* in the build chroot. How does this work? From the
author's description:

It is done the same as the patch sent by Thomas Liu in bz 614440 does.
Actually, this proceeding was suggested by Dan Walsh in bz 573111.

1.) Fake /proc/filesystems is created in conf["cachedir"]. It includes the
same content as the same file in host environment, except line with selinuxfs.
This file is bind mounted into build environment.

2.) Option '--setopt=tsflags=nocontext' is added to yum commands. This is done
by wrapping mock.util.do with _selinuxDoYum in "preyum" hook. This function
just adds the option and passes the command to original mock.util.do function.
The wrapping is removed in "postyum" hook.
I didn't find cleaner method, without modifying main code.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>patch that allows specifying max tmpfs size to tmpfs plugin</title>
<updated>2010-07-30T16:51:14+00:00</updated>
<author>
<name>Kalev Lember</name>
<email>kalev@smartlink.ee</email>
</author>
<published>2010-07-30T16:51:14+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=2eb48d066ec3144b9e564c2d2ad1c445706aa112'/>
<id>2eb48d066ec3144b9e564c2d2ad1c445706aa112</id>
<content type='text'>
Add a 'max_fs_size' parameter to the tmpfs plugin that allows
specification of sizes greater than default (50% of RAM).

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a 'max_fs_size' parameter to the tmpfs plugin that allows
specification of sizes greater than default (50% of RAM).

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix cachefile generation filtering logic</title>
<updated>2010-07-27T18:58:29+00:00</updated>
<author>
<name>Clark Williams</name>
<email>williams@redhat.com</email>
</author>
<published>2010-07-14T21:51:16+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=4e19a85f36119b370e4b579d458450834ab8f4d6'/>
<id>4e19a85f36119b370e4b579d458450834ab8f4d6</id>
<content type='text'>
The original fix to generating a cache file without /proc, /sys, and /dev
entries failed due to the --exclude=sys filtering out /usr/include/sys (a
bad thing). Changed the filtering excludes to include a './' prefix to
avoid that little problem.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The original fix to generating a cache file without /proc, /sys, and /dev
entries failed due to the --exclude=sys filtering out /usr/include/sys (a
bad thing). Changed the filtering excludes to include a './' prefix to
avoid that little problem.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>moved rpmdb clean block so that it works with --offline</title>
<updated>2010-07-27T18:58:23+00:00</updated>
<author>
<name>Clark Williams</name>
<email>williams@redhat.com</email>
</author>
<published>2010-07-14T18:16:17+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=077a09ea6bb5a0e2ac0861210f6df528f531f6f7'/>
<id>077a09ea6bb5a0e2ac0861210f6df528f531f6f7</id>
<content type='text'>
previous fix for rpmdb issues was under a "if online:" block. Move it
out so rpmdb cleanup occurs in both cases.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
previous fix for rpmdb issues was under a "if online:" block. Move it
out so rpmdb cleanup occurs in both cases.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>filter out proc,sys,and dev from cache file creation</title>
<updated>2010-07-27T18:58:10+00:00</updated>
<author>
<name>Clark Williams</name>
<email>williams@redhat.com</email>
</author>
<published>2010-07-14T18:15:07+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=4fbf9c511c34ac65d5603aeffb8cfb0cbf7e7940'/>
<id>4fbf9c511c34ac65d5603aeffb8cfb0cbf7e7940</id>
<content type='text'>
Added --excludes to tar comand line to exclude proc, sys and dev
files when creating root cache.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added --excludes to tar comand line to exclude proc, sys and dev
files when creating root cache.

Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>yum made/makes an rpmdb cache dir in $cachedir/installed for a while</title>
<updated>2010-05-09T07:58:11+00:00</updated>
<author>
<name>Seth Vidal</name>
<email>skvidal@fedoraproject.org</email>
</author>
<published>2010-05-09T07:31:33+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=426b2ae54daa2d5177fd3cc17e9aab0f1576578c'/>
<id>426b2ae54daa2d5177fd3cc17e9aab0f1576578c</id>
<content type='text'>
things can go wrong in a specific mock case if this happened. So just
nuke the installed dir and the files in it. Problem solved.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
things can go wrong in a specific mock case if this happened. So just
nuke the installed dir and the files in it. Problem solved.
</pre>
</div>
</content>
</entry>
<entry>
<title>correct mispelling of sqlite extension in yum_cache.py</title>
<updated>2010-05-05T17:36:59+00:00</updated>
<author>
<name>Clark Williams</name>
<email>williams@redhat.com</email>
</author>
<published>2010-05-05T17:36:59+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ausil/public_git/mock.git/commit/?id=78cce7c8b9d299367c7f8d8e23a63ca777a90c26'/>
<id>78cce7c8b9d299367c7f8d8e23a63ca777a90c26</id>
<content type='text'>
Yum uses .sqlite files, but the plugin was looking for .sqllite. Remove
one 'l'.

Reported-by: Seth Vidal &lt;skvidal@fedoraproject.org&gt;
Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Yum uses .sqlite files, but the plugin was looking for .sqllite. Remove
one 'l'.

Reported-by: Seth Vidal &lt;skvidal@fedoraproject.org&gt;
Signed-off-by: Clark Williams &lt;williams@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
