mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-05 10:58:07 +01:00
Shortened build
help and add debug prints
Debug prints are needed for troubleshooting ARCH selection problem in https://github.com/openSUSE/osc/pull/241#issuecomment-1203463612
This commit is contained in:
parent
43337afdf5
commit
0b6039025f
@ -6380,6 +6380,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
arg_repository, arg_arch, arg_descr = args
|
arg_repository, arg_arch, arg_descr = args
|
||||||
|
|
||||||
arg_arch = arg_arch or osc.build.hostarch
|
arg_arch = arg_arch or osc.build.hostarch
|
||||||
|
if self.options.debug:
|
||||||
|
print("hostarch: ", osc.build.hostarch)
|
||||||
|
print("arg_arch: ", arg_arch)
|
||||||
|
|
||||||
repositories = []
|
repositories = []
|
||||||
# store list of repos for potential offline use
|
# store list of repos for potential offline use
|
||||||
@ -6621,12 +6624,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
def do_build(self, subcmd, opts, *args):
|
def do_build(self, subcmd, opts, *args):
|
||||||
"""${cmd_name}: Build a package on your local machine
|
"""${cmd_name}: Build a package on your local machine
|
||||||
|
|
||||||
You need to call the command inside a package directory, which should be a
|
The command works from a package checkout (local changes are fine).
|
||||||
buildsystem checkout. (Local modifications are fine.)
|
|
||||||
|
|
||||||
The arguments REPOSITORY and ARCH can be taken from the first two columns
|
You can use `osc repos` to look up REPOSITORY and ARCH arguments. If
|
||||||
of the 'osc repos' output. BUILD_DESCR is either a RPM spec file, or a
|
they are not set, `osc` choses suitable at random. BUILD_DESCR is
|
||||||
Debian dsc file.
|
either a RPM spec file, or a Debian dsc file.
|
||||||
|
|
||||||
The command honors packagecachedir, build-root and build-uid
|
The command honors packagecachedir, build-root and build-uid
|
||||||
settings in oscrc, if present. You may want to set su-wrapper = 'sudo'
|
settings in oscrc, if present. You may want to set su-wrapper = 'sudo'
|
||||||
@ -6637,10 +6639,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
is usually the fastest option.
|
is usually the fastest option.
|
||||||
|
|
||||||
If the package doesn't exist on the server please use the --local-package
|
If the package doesn't exist on the server please use the --local-package
|
||||||
option.
|
option. If the project of the package doesn't exist on the server use the
|
||||||
If the project of the package doesn't exist on the server please use the
|
--alternative-project <alternative-project> option. Example:
|
||||||
--alternative-project <alternative-project> option:
|
|
||||||
Example:
|
|
||||||
osc build [OPTS] --alternative-project openSUSE:10.3 standard i586 BUILD_DESCR
|
osc build [OPTS] --alternative-project openSUSE:10.3 standard i586 BUILD_DESCR
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
@ -6652,28 +6652,23 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
osc build [OPTS] BUILD_DESCR (REPOSITORY = build_repository (config option), ARCH = hostarch)
|
osc build [OPTS] BUILD_DESCR (REPOSITORY = build_repository (config option), ARCH = hostarch)
|
||||||
osc build [OPTS] (REPOSITORY = build_repository (config option), ARCH = hostarch, BUILD_DESCR is detected automatically)
|
osc build [OPTS] (REPOSITORY = build_repository (config option), ARCH = hostarch, BUILD_DESCR is detected automatically)
|
||||||
|
|
||||||
For debugging purposes you can run after a build the following to jump inside of of
|
For debugging after a build you can jump into the build environment:
|
||||||
the build environemnt:
|
|
||||||
|
|
||||||
osc shell [OPTS] REPOSITORY ARCH
|
osc shell [OPTS] REPOSITORY ARCH
|
||||||
|
|
||||||
Run a single command inside of the build environment:
|
Run a single command inside of the build environment:
|
||||||
osc shell --shell-cmd=COMMAND [OPTS] REPOSITORY ARCH
|
osc shell --shell-cmd=COMMAND [OPTS] REPOSITORY ARCH
|
||||||
|
|
||||||
OPTS may be
|
Useful `shell` OPTS
|
||||||
|
|
||||||
--noinit # for faster run
|
--noinit # for faster run
|
||||||
--shell-cmd=COMMAND
|
--shell-cmd=COMMAND
|
||||||
--shell-after-fail
|
--shell-after-fail
|
||||||
--extra-pkgs=PACKAGE # install additional packages
|
--extra-pkgs=PACKAGE # install additional packages
|
||||||
|
|
||||||
To clean up the build environment run
|
To clean up the build environment run
|
||||||
|
|
||||||
osc wipe [OPTS]
|
osc wipe [OPTS]
|
||||||
osc wipe [OPTS] REPOSITORY ARCH
|
osc wipe [OPTS] REPOSITORY ARCH
|
||||||
|
|
||||||
You may set the used VM type in oscrc already, but you can also overwrite it for example
|
If you've set the used VM type in oscrc, it can be also overridden here
|
||||||
with
|
|
||||||
|
|
||||||
--vm-type=chroot # for faster, but uncleaner and unsecure build
|
--vm-type=chroot # for faster, but uncleaner and unsecure build
|
||||||
--vm-type=kvm # for clean and secure build
|
--vm-type=kvm # for clean and secure build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user