┌─[ symbianflo @ abfonly ] - [ Mandrivausers.ro ]
└─[ MRB:aint-no-shit $]: mock-urpm --help
Usage:
usage:
mock-urpm [options]
{--init|--clean|--scrub=[all,chroot,cache,root-cache,c-cache]}
mock-urpm [options] [--rebuild] /path/to/srpm(s)
mock-urpm [options] --buildsrpm {--spec /path/to/spec
--sources /path/to/src|--scm-enable [--scm-option key=value]}
mock-urpm [options] {--shell|--chroot} <cmd>
mock-urpm [options] --installdeps {SRPM|RPM}
mock-urpm [options] --install PACKAGE
mock-urpm [options] --copyin path [..path] destination
mock-urpm [options] --readdrepo
mock-urpm [options] --copyout path [..path] destination
mock-urpm [options] --scm-enable [--scm-option key=value]
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--rebuild rebuild the specified SRPM(s)
--buildsrpm Build a SRPM from spec (--spec ...) and sources
(--sources ...) or from SCM
--shell run the specified command interactively within the
chroot. Default command: /bin/sh
--chroot run the specified command noninteractively
within the
chroot.
--clean completely remove the specified chroot
--scrub=[all|chroot|cache|root-cache|c-cache]
completely remove the specified chroot or cache
dir or
all of the chroot and cache
--init initialize the chroot, do not build anything
--installdeps install build dependencies for a specified SRPM
--install install packages using urpmi
--update update installed packages using urpmi
--orphanskill Kill all processes using specified buildroot.
--copyin Copy file(s) into the specified chroot
--readdrepo Add repositories from default config from scratch
--copyout Copy file(s) from the specified chroot
-r CHROOT, --root=CHROOT
chroot name/config file name default: default
--no-clean do not clean chroot before building
--cleanup-after Clean chroot after building. Use with --resultdir.
Only active for 'rebuild'.
--no-cleanup-after Dont clean chroot after building. If automatic
cleanup
is enabled, use this to disable.
--arch=ARCH Sets kernel personality().
--target=RPMBUILD_ARCH
passed to rpmbuild as --target
-D 'MACRO EXPR', --define='MACRO EXPR'
define an rpm macro (may be used more than once)
--with=option enable configure option for build (may be used more
than once)
--without=option disable configure option for build (may be used
more
than once)
--resultdir=RESULTDIR
path for resulting files to be put
--uniqueext=UNIQUEEXT
Arbitrary, unique extension to append to buildroot
directory name
--configdir=CONFIGDIR
Change where config files are found
--rpmbuild_timeout=RPMBUILD_TIMEOUT
Fail build if rpmbuild takes longer than 'timeout'
seconds
--unpriv Drop privileges before running command when using
--chroot
--cwd=DIR Change to the specified directory (relative to the
chroot) before running command when using --chroot
--spec=SPEC Specifies spec file to use to build an SRPM
(used only
with --buildsrpm)
--sources=SOURCES Specifies sources (either a single file or a
directory
of files)to use to build an SRPM (used only with
--buildsrpm)
-v, --verbose verbose build
-q, --quiet quiet build
--trace Enable internal mock-urpm tracing output.
--enable-plugin=ENABLED_PLUGINS
Enable plugin. Currently-available plugins:
['tmpfs',
'root_cache', 'bind_mount', 'ccache', 'selinux']
--disable-plugin=DISABLED_PLUGINS
Disable plugin. Currently-available plugins:
['tmpfs',
'root_cache', 'bind_mount', 'ccache', 'selinux']
--print-root-path print path to chroot root
--scm-enable build from SCM repository
--scm-option=SCM_OPTS
define an SCM option (may be used more than once)
$ man mock-urpm would be more detailed .
Il 09/02/2015 14:21, Jeffrey Johnson ha scritto:
On Feb 8, 2015, at 1:21 PM, Denis Silakov wrote:
08.02.2015 21:11, Jeffrey Johnson пишет:
(aside)
I do know that a version of mock+urpmi exists because I dir the port.
Yes, mock-urpm is the tool used by ABF:
http://wiki.rosalab.ru/en/index.php/Mock-urpm
You might wish to provide simple examples of the 2-3 commands to use
mock-urpmi
to create and enter a chroot at that page.
73 de Jeff
_______________________________________________
OM-Cooker mailing list
[email protected]
http://ml.openmandriva.org/listinfo.cgi/om-cooker-openmandriva.org
_______________________________________________
OM-Cooker mailing list
[email protected]
http://ml.openmandriva.org/listinfo.cgi/om-cooker-openmandriva.org