| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This causes largely unnecessary yum runs and delays builds.
The new behavior would just skip the yum call all together, unless
the chroot was cleaned, in which case the setup command is called.
|
|
|
|
| |
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
| |
to use the 'newinstance' mount option if the kernel version
is >= 2.6.29
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
| |
BZ# 460574
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
| |
chroot. BZ# 506288
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
| |
group for /dev/pts mounted in chroot (BZ# 510183)
Signed-off-by: Clark Williams <williams@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds configuration options that influence how is the root
cache compressed:
config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "gzip"
config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz"
Motivation to do this was to be able to use lzma compression. While it
takes a long time to compress, for me it was more than two times faster
than gzip when decompressing. Since I only seldom regenerate the root cache
while doing a lot of builds, I was able to gain a considerable speed up.
|
|
|
|
|
| |
Copy /etc/hosts from host when resolver configuration is being
copied, otherwise add hostname as a loopback alias.
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* buildsrpm:
unlink->rmdir
another srpm -> spec change in buildsrpm. add state for building srpm.
cant use srpm var, use spec file instead. its ofr info only.
initial work to copy spec/sources and build srpm.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \ |
|
| |\| |
| | | |
| | | |
| | | | |
git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
|
| | |/
| | |
| | |
| | | |
friendly error message.
|
| | | |
|
| | | |
|
| |/
| |
| |
| | |
removed trailing slash from basedir
|
|/ |
|
| |
|
|
|
|
| |
Signed-off-by: Mike McLean <mikem@redhat.com>
|
|
|
|
| |
cache
|
| |
|
|\
| |
| |
| | |
git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
|
| |
| |
| |
| | |
raise exception)
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
* ssh://mock/var/ftp/pub/Applications/git/mock:
updates to mock.util.do(): 1) nonblocking read, 2) dont leave zombies (waitpid).
we now run /etc/profile, so no need to manually do ccache stuff.
use makeChrootPath() functionality rather than obscure string interpolation
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 'master' of /var/ftp/pub/Applications/git/mock:
get rid of one level of shell indirection where possible.
revert accidental comment-out of test cleanup that I was using to debug tar problem.
add back in dropped '.' to tar cvf command that is causing root cache creation to fail. Add debug logging for running commands.
convert mock.util.do() to use subprocess.Popen() rather than raw fork/exec.\nThis cleans up the code considerably. Also, start reducing the places where we use a shell in the subcommand.
better unit test error message.
mount everything when running chroot command.
updated change log
added compat symlinks
version bump
update manpage with new site-defaults ref.
the great config file rename.
some manpage clarifications and arrangements.
clarify info message to make it obvious that root cache is being unpacked.
cleanup trailing whitespace.
cleanup trailing whitespace.
add ability to conditionally enable tmpfs based on minimum ram availability.
add initfailed hook so tmpfs plugin can properly unmount tmpfs on failure. make sure we call postbuild hooks even on failure.
|
| | | |
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | | |
* 'master' of /var/ftp/pub/Applications/git/mock:
fix 'make srpm' to only build srpm and not also binary rpm.
update docs for --arch and --target.
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
* 'master' of /var/ftp/pub/Applications/git/mock:
fix syntax error from personality move by using config_opt directly.
|
| |\ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* 'master' of /var/ftp/pub/Applications/git/mock:
split up --target and --arch cmdline options.
get rid of personality() calls in sub do() calls because it is set at top level now.
added --print-root-path option
paul howarth's request to change from -l to --login on bash invocations
use the right mkdev argument
Create the dev/full device, some packages use it during make check.
add ia64 and alpha to personality_defs
Patch from Doug Chapman <doug.chapman@hp.com>
Doug Chapman's ia64 personality warning fix
Roland McGrath's fix for ctypes LoadLibrary on ia64
|
| |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
* 'master' of /var/ftp/pub/Applications/git/mock:
/usr/sbin/mock no longer needs to be owned by group mock.
remove unused debugging code.
version bump and changelog
fix privs for yum resolvdep, needs to be root to download addl filelists.
fixup release instructions so that tags properly pushed.
update changelog prior to release.
bump version. add comment about making sure to fix both version defs.
cleanup from unit tests if they are interrupted or end prematurely.
fix resultdir for --uniqueext builds without resultdir specified. try to standardize on single-quotes for indexing hashes.
we are now noarch, fix unit tests.
add tmpfs plugin to installation list.
requires usermode due to new userhelper stuff.
fix use of tabs in spec file to make rpmlint happy.
Run rpmbuild in a login shell in the chroot.
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This patch allows you to set the current working directory (in the
chroot) before running a command with --chroot. This avoids the need to
pass shell snippets ('cd /some/path && /run/cmd') to mock when running a
command that expects to executed from a certain directory. It's useful
when using --copyin to setup the environment before running a command.
>From e4071d1d41a62ccf4461dfab958f9325edf30c97 Mon Sep 17 00:00:00 2001
From: Mike Bonnet <mikeb@redhat.com>
Date: Thu, 24 Jan 2008 17:09:06 -0500
Subject: [PATCH] optionally set the current working directory (in the chroot) before running command with --chroot
Signed-off-by: Michael E Brown <mebrown@michaels-house.net>
|
| |_|_|_|_|/
|/| | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
On Thu, 2008-01-24 at 16:04 -0500, Mike Bonnet wrote:
> On Thu, 2008-01-24 at 15:42 -0500, Mike Bonnet wrote:
> > This patch adds a --unpriv option that will cause privileges to be
> > dropped before running a command with --chroot. This can be used to
> > more closely simulate the environment used when running rpmbuilds.
>
> Let me try that again...
Ok, the attachments are getting stripped off for some reason, trying
inline...
>From 85e14d38aec32cf20d7f2bbdc77044d41c32a0a2 Mon Sep 17 00:00:00 2001
From: Mike Bonnet <mikeb@redhat.com>
Date: Thu, 24 Jan 2008 15:37:15 -0500
Subject: [PATCH] optionally drop privileges when running a command with --chroot
Signed-off-by: Michael E Brown <mebrown@michaels-house.net>
|
| | | | | | |
|