summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Merge branch 'master' of /var/ftp/pub/Applications/git/mockMichael E Brown2007-12-217-53/+63
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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-243-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-242-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | redo exclude= lines yet again to work around what looks like python ↵Michael E Brown2008-01-225-5/+5
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | fnmatch() bug handling [!x] and/or [^x]
* | | | | | get rid of one level of shell indirection where possible.Michael E Brown2008-01-202-10/+15
| | | | | |
* | | | | | revert accidental comment-out of test cleanup that I was using to debug tar ↵Michael E Brown2008-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | problem.
* | | | | | add back in dropped '.' to tar cvf command that is causing root cache ↵Michael E Brown2008-01-203-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | creation to fail. Add debug logging for running commands.
* | | | | | convert mock.util.do() to use subprocess.Popen() rather than raw ↵Michael E Brown2008-01-206-156/+150
| | | | | | | | | | | | | | | | | | | | | | | | 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.Michael E Brown2008-01-201-4/+6
| | | | | |
* | | | | | mount everything when running chroot command.Michael E Brown2008-01-181-1/+5
| | | | | |
* | | | | | updated change logmock-0.9.6Clark Williams2008-01-161-0/+8
| | | | | |
* | | | | | Merge branch 'master' of ↵Clark Williams2008-01-161-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
| * | | | | | update manpage with new site-defaults ref.Michael E Brown2008-01-151-2/+2
| | | | | | |
* | | | | | | added compat symlinksClark Williams2008-01-161-0/+11
| | | | | | |
* | | | | | | version bumpClark Williams2008-01-161-2/+2
|/ / / / / /
* | | | | | the great config file rename.Michael E Brown2008-01-158-1/+1
| | | | | |
* | | | | | some manpage clarifications and arrangements.Michael E Brown2008-01-101-41/+53
| | | | | |
* | | | | | clarify info message to make it obvious that root cache is being unpacked.Michael E Brown2008-01-091-1/+1
| | | | | |
* | | | | | cleanup trailing whitespace.Michael E Brown2008-01-085-14/+14
| | | | | |
* | | | | | cleanup trailing whitespace.Michael E Brown2008-01-086-9/+9
| | | | | |
* | | | | | add ability to conditionally enable tmpfs based on minimum ram availability.Michael E Brown2008-01-083-3/+12
| | | | | |
* | | | | | add initfailed hook so tmpfs plugin can properly unmount tmpfs on failure. ↵Michael E Brown2008-01-082-2/+12
| |_|_|_|/ |/| | | | | | | | | | | | | | make sure we call postbuild hooks even on failure.
* | | | | fix 'make srpm' to only build srpm and not also binary rpm.Michael E Brown2008-01-041-1/+1
| | | | |
* | | | | update docs for --arch and --target.Michael E Brown2008-01-042-3/+6
| |_|_|/ |/| | |
* | | | fix syntax error from personality move by using config_opt directly.Michael E Brown2008-01-041-1/+1
| |_|/ |/| |
* | | split up --target and --arch cmdline options.Michael E Brown2008-01-042-5/+13
| | |
* | | get rid of personality() calls in sub do() calls because it is set at top ↵Michael E Brown2008-01-041-6/+2
| | | | | | | | | | | | level now.
* | | added --print-root-path optionClark Williams2008-01-041-0/+11
| | |
* | | paul howarth's request to change from -l to --login on bash invocationsClark Williams2008-01-041-2/+2
| | |
* | | Merge branch 'master' of ↵Clark Williams2008-01-041-0/+1
|\ \ \ | | | | | | | | | | | | git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
| * | | use the right mkdev argumentJesse Keating2008-01-031-1/+1
| | | |
| * | | Create the dev/full device, some packages use it during make check.Jesse Keating2008-01-031-0/+1
| | | |
* | | | Merge branch 'master' of ↵Clark Williams2008-01-020-0/+0
|\| | | | | | | | | | | | | | | git+ssh://jcwillia@git.fedoraproject.org/git/hosted/mock
| * | | add ia64 and alpha to personality_defsDoug Chapman2007-12-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch to quiet the "Unable to find predefined setarch personality" warnings seen on ia64. I added alpha as well while I was at it. Signed-off-by: Doug Chapman <doug.chapman@hp.com> ---- Signed-off-by: Michael E Brown <mebrown@michaels-house.net>
| * | | Patch from Doug Chapman <doug.chapman@hp.com>Michael E Brown2007-12-312-2/+2
| | |/ | |/| | | | | | | | | | | | | Fix up mock ctypes libc usage so that it doesnt directly specify libc soname, which can change on different arches. Instead use "None", which should resolve to use already-loaded global scope. -- signed off by: Michael Brown <mebrown@michaels-house.net>
* | | Doug Chapman's ia64 personality warning fixClark Williams2007-12-221-0/+1
| | |
* | | Roland McGrath's fix for ctypes LoadLibrary on ia64Clark Williams2007-12-222-2/+2
|/ /
* | /usr/sbin/mock no longer needs to be owned by group mock.Michael E Brown2007-12-211-1/+1
| |
* | Merge branch 'master' of ssh://mebrown@git.fedorahosted.org/git/mockMichael E Brown2007-12-217-52/+62
|\ \ | |/ |/|
| * remove unused debugging code.Michael E Brown2007-12-201-8/+0
| |
| * version bump and changelogmock-0.9.5Michael E Brown2007-12-202-2/+5
| |
| * fix privs for yum resolvdep, needs to be root to download addl filelists.Michael E Brown2007-12-201-19/+19
| |
| * fixup release instructions so that tags properly pushed.Michael E Brown2007-12-191-2/+3
| |
| * update changelog prior to release.mock-0.9.4Michael E Brown2007-12-191-0/+7
| |
| * bump version. add comment about making sure to fix both version defs.Michael E Brown2007-12-191-4/+3
| |
| * cleanup from unit tests if they are interrupted or end prematurely.Michael E Brown2007-12-191-2/+10
| |
| * fix resultdir for --uniqueext builds without resultdir specified. try to ↵Michael E Brown2007-12-191-8/+7
| | | | | | | | standardize on single-quotes for indexing hashes.
| * we are now noarch, fix unit tests.Michael E Brown2007-12-191-2/+2
| |
| * add tmpfs plugin to installation list.Michael E Brown2007-12-191-0/+1
| |