summaryrefslogtreecommitdiffstats
path: root/py
Commit message (Collapse)AuthorAgeFilesLines
* Don't automatically update the chroot in a --no-clean scenarioJesse Keating2009-08-111-3/+2
| | | | | | 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.
* fixed stupid typo in last updateClark Williams2009-07-081-1/+1
| | | | Signed-off-by: Clark Williams <williams@redhat.com>
* reworked /dev/pts mount command to lookup 'tty' group id andClark Williams2009-07-081-1/+6
| | | | | | | to use the 'newinstance' mount option if the kernel version is >= 2.6.29 Signed-off-by: Clark Williams <williams@redhat.com>
* Add directory and infrastructure that will allow dbus to start in chroot.Clark Williams2009-07-081-0/+11
| | | | | | BZ# 460574 Signed-off-by: Clark Williams <williams@redhat.com>
* added code to raise exception when --shell specified for uninitializedClark Williams2009-07-081-0/+2
| | | | | | chroot. BZ# 506288 Signed-off-by: Clark Williams <williams@redhat.com>
* Patch from Jakub Jelinek (jakub@redhat.com) to fix incorrect mode andClark Williams2009-07-081-1/+1
| | | | | | group for /dev/pts mounted in chroot (BZ# 510183) Signed-off-by: Clark Williams <williams@redhat.com>
* Support configurable root cache compressionLubomir Rintel2009-03-272-4/+12
| | | | | | | | | | | | | 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.
* Be able to resolve hostnameLubomir Rintel2009-03-272-7/+17
| | | | | Copy /etc/hosts from host when resolver configuration is being copied, otherwise add hostname as a loopback alias.
* Copy the hosts tzdata (/etc/localtime) into the chrootJesse Keating2009-02-051-0/+7
|
* commented out dropPrivsForever() in copyin logicClark Williams2009-02-021-1/+1
|
* buildsrpm: some additional sanity checking, and removing an unnecessary globMike Bonnet2009-02-011-6/+6
|
* HOME environment variable is now set globally to match chroot homedirMike Bonnet2009-02-011-1/+0
|
* Merge branch 'master' into clarkClark Williams2009-02-012-0/+102
|\
| * Merge branch 'buildsrpm'Michael E Brown2009-01-232-0/+102
| |\ | | | | | | | | | | | | | | | | | | | | | * 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.
| | * unlink->rmdirMichael E Brown2009-01-081-1/+1
| | |
| | * another srpm -> spec change in buildsrpm. add state for building srpm.Michael E Brown2009-01-082-1/+2
| | |
| | * cant use srpm var, use spec file instead. its ofr info only.Michael E Brown2009-01-081-5/+5
| | |
| | * initial work to copy spec/sources and build srpm.Michael E Brown2009-01-082-0/+101
| | |
* | | set HOME environment variable to be the chroot homeClark Williams2009-02-012-3/+1
| | |
* | | Merge branch 'master' into clarkClark Williams2009-02-014-5/+27
|\ \ \
| * | | Merge branch 'master' of ↵Clark Williams2009-01-083-2/+22
| |\| | | | | | | | | | | | | | git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
| | * | add new exception for result dir not being accessible and print nice ↵Michael E Brown2008-11-183-2/+22
| | |/ | | | | | | | | | friendly error message.
| * | removed import of popen2 from py/mock/util.py (gets rid of deprecated warning)Clark Williams2008-12-191-1/+0
| | |
| * | added version variable; added Mock Version banner to all logsClark Williams2008-12-191-0/+2
| | |
| * | added version key to config options; moved cache_topdir to /var/cache/mock; ↵Clark Williams2008-12-191-2/+3
| |/ | | | | | | removed trailing slash from basedir
* / Signed-off-by: Mike McLean <mikem redhat com>Mike McLean2008-11-111-2/+10
|/
* added panu's fix for strange rpm behaviorClark Williams2008-10-151-2/+4
|
* internal setarch support for s390/s390xMike McLean2008-10-141-0/+1
| | | | Signed-off-by: Mike McLean <mikem@redhat.com>
* workaround new rpm issues by deleting rpmdb temp files after unpacking root ↵Clark Williams2008-08-291-7/+13
| | | | cache
* create BUILDROOT dir required by new rpmbuildClark Williams2008-08-291-1/+1
|
* Merge branch 'master' of ↵Clark Williams2008-04-143-8/+24
|\ | | | | | | git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
| * fix typo which causes exception in command-timeout code (which was trying to ↵Michael E Brown2008-03-311-1/+1
| | | | | | | | raise exception)
| * add support for shmMichael E Brown2008-03-091-7/+12
| |
| * handle idiots with grace and poise.Michael E Brown2008-03-071-0/+11
| |
* | changed default chroot_setup_cmd to be "groupinstall"Clark Williams2008-03-071-1/+1
|/
* log child return code for debugging.Michael E Brown2008-03-041-0/+1
|
* modify rootcache logic to rebuild cache if config files have newer timestampClark Williams2008-02-293-1/+15
|
* add fcntl importMichael E Brown2008-01-301-0/+1
|
* Merge ssh://mock/var/ftp/pub/Applications/git/mockMichael E Brown2008-01-293-29/+34
|\ | | | | | | | | | | | | * 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
| * updates to mock.util.do(): 1) nonblocking read, 2) dont leave zombies (waitpid).Michael E Brown2008-01-291-12/+32
| |
| * Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2008-01-229-183/+206
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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.
| * | we now run /etc/profile, so no need to manually do ccache stuff.Michael E Brown2008-01-221-16/+1
| | |
| * | Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2008-01-071-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | * '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.
| * \ \ Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2008-01-041-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * 'master' of /var/ftp/pub/Applications/git/mock: fix syntax error from personality move by using config_opt directly.
| * \ \ \ Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2008-01-044-13/+30
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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
| * \ \ \ \ Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2007-12-212-37/+28
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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.
| * | | | | | use makeChrootPath() functionality rather than obscure string interpolationMichael E Brown2007-12-211-1/+1
| | | | | | |
* | | | | | | set the current working directory in the chrootMike Bonnet2008-01-242-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | add --unpriv option to drop privileges when running a command with --chrootMike Bonnet2008-01-241-1/+7
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | get rid of one level of shell indirection where possible.Michael E Brown2008-01-202-10/+15
| | | | | |