| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
| |
This cause the test to always report failure
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
| |
Pass in boolean 'selinux' via keyword arguments that tells
rmtree whether to do retry logic with selinux attributes
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
| |
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 <williams@redhat.com>
|
|
|
|
|
|
| |
Allow "--target noarch" to be specified.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
| |
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 <williams@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The order of execution of umounts is the reverse of the order of
the mounts, so as to deal with a hierarchy of mounts correctly.
The ordering is reversed by _umountall but was being left in the
reversed state so that the next time _umountall was called, it
attempted to unmount filesystems in the wrong order, leading to
build failures due to being unable to unmount for example /proc
whilst /proc/filesystems was still mounted. This change reverses
the order of umount commands back again before _umountall exits
so as to maintain the ordering.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
| |
This is needed not only to target the legacy Fedora 11 32-bit release
but also the still-current SLES-11 32-bit and possibly others too.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
| |
f14 is prerelease so turn off the updates-released repository
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
| |
Modified the release instructions to deal with needing the
fedora-packager package and how to use fedpkg.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
| |
The new selinux plugin fakes SELinux being turned *off* in the chroot
by bind-mounting a fake /proc/filesystems in the chroot. If this
plugin is enabled, we should *not* do any SELinux attribute operations
in the chroot. Setup this state correctly at init time.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
| |
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 <williams@redhat.com>
|
|
|
|
|
|
|
|
| |
If /usr/bin/rpmbuild-md5 exists, then use it, otherwise
use rpmbuild. This helps when testing older distro configs
such as for el4 and el5
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 <williams@redhat.com>
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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 <williams@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| |
| |
| |
| | |
Mock originally takes just a directory for the argument to --sources;
expand this to allow for a single file or a directory.
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| |
| |
| | |
Modified trap logic in runtests.sh to exit on SIGINT
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Added a symlink in the chroot from /proc/self/fd to /dev/fd. Only
do this for EPEL5+ and FC hosts since the 2.6.9 kernel for EPEL4
does not support this.
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| |
| |
| |
| | |
Moved test infrastructure into the tests directory and broke
component tests out into individual scripts.
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| |
| |
| | |
Added i686 architecture to arch checking logic in py/mock.py
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| |
| |
| |
| | |
Updated to use fedora-13 for testing and added a header function
to make start of new tests more visible in the test output.
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 <williams@redhat.com>
|
| |
| |
| |
| |
| |
| |
| | |
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 <williams@redhat.com>
|
| |
| |
| |
| |
| |
| |
| | |
Added --excludes to tar comand line to exclude proc, sys and dev
files when creating root cache.
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Modified py/mock.py to dectect invalid build combinations
(e.g. trying to build x86_64 packages on an i386 host) and to throw
an InvalidArchitecture exception when detected. Added the above
exception to py/mock/execption.py
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
| |
| |
| |
| |
| |
| | |
added description of how a user may add themselves to the mock
group to the mock man page.
Signed-off-by: Clark Williams <williams@redhat.com>
|
|/
|
|
|
|
|
|
|
|
|
| |
Added the command line option:
--scrub=[all,chroot,cache,root-cache,c-cache,yum-cache]
which allows selective cleanup of the various cache's maintained
by mock (on on mock's behalf).
Also added logic to umountall() to umount in reverse order of mount.
Signed-off-by: Clark Williams <williams@redhat.com>
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
Without this fix, only files within directories pre-created as part
of the chroot "skeleton" can be created using config_opts['files'],
as the attempt to create the file fails with "No such file or directory".
This patch allows for creation of files in arbitrary directories.
Signed-off-by: Clark Williams <williams@redhat.com>
(cherry picked from commit 0c4254573261bd1c9144b9fd03693572eb3ba036)
|
|
|
|
|
|
|
|
| |
Yum uses .sqlite files, but the plugin was looking for .sqllite. Remove
one 'l'.
Reported-by: Seth Vidal <skvidal@fedoraproject.org>
Signed-off-by: Clark Williams <williams@redhat.com>
|
|\ |
|
| |
| |
| |
| |
| | |
Cleans up an error message when getenforce is not installed, and fixes wrong
outcome from selinuxEnabled() when SELinux is additionally disabled.
|
| |
| |
| |
| | |
Requires yum > 3.2.27 to work, shouldn't hurt with other versions.
|