Search
SailfishOS Open Build Service
>
Projects
>
home:plfiorini
:
maui:devel
:
x86_64
>
build
> _service:tar_git:0007-initial-support-for-chroot-only.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:0007-initial-support-for-chroot-only.patch of Package build
From 9d37d9a4fb233891d20d133c6a2c238b1825abfb Mon Sep 17 00:00:00 2001 From: David Greaves <david@dgreaves.com> Date: Wed, 6 Jun 2012 17:43:27 +0100 Subject: [PATCH] initial support for --chroot-only --- build | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/build b/build index e92ba71..c4df161 100755 --- a/build +++ b/build @@ -52,6 +52,7 @@ ABUILD_UID=399 ABUILD_GID=399 DO_INIT=true +DO_BUILD=true DO_LINT= DO_CHECKS=true CLEAN_BUILD= @@ -155,6 +156,10 @@ Known Parameters: --no-init Skip initialization of build root and start with build immediately. + --chroot-only + Exit once the chroot has been setup and before the build + starts. Useful for making development root filesystems. + --no-checks Do not run post-build checks --lint Run rpmlint after build. @@ -294,7 +299,7 @@ Remember to have fun! EOT } usage () { - echo "Usage: `basename $0` [--no-init|--clean|--rpms path|--verify|--help] [dir-to-build|spec-to-build]" + echo "Usage: `basename $0` [--no-init|--chroot-only|--clean|--rpms path|--verify|--help] [dir-to-build|spec-to-build]" cleanup_and_exit 1 } @@ -832,6 +837,9 @@ while test -n "$1"; do *-no*init) DO_INIT=false ;; + *-chroot-only) + DO_BUILD=false + ;; *-no*checks) DO_CHECKS=false ;; @@ -2106,6 +2114,10 @@ for SPECFILE in "${SPECFILES[@]}" ; do fi fi + if test "$DO_BUILD" = false ; then + continue + fi + if test "$BUILDTYPE" = spec ; then test -z "$BUILD_RPM_BUILD_STAGE" && BUILD_RPM_BUILD_STAGE=-ba -- 1.7.10.3