Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8
build
_service:gitpkg:0017-Pass-additional-variables-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:gitpkg:0017-Pass-additional-variables-to-sb2-build-even-if-VM_TY.patch of Package build
From bb791e514ef9cd77c1e7863a15147dd80f42be4c Mon Sep 17 00:00:00 2001 From: Oleg Girko <oleg.girko@jolla.com> Date: Mon, 13 Jan 2014 01:02:11 +0000 Subject: [PATCH] Pass additional variables to sb2 build even if VM_TYPE is not sb2. This can happen when building with sb2 using kvm virtualisation. In this case VM_TYPE variable will be equal to "kvm", so we detect sb2 build by presence of BUILD_SB2FLAGS non-empty variable. Signed-off-by: Oleg Girko <oleg.girko@jolla.com> --- build-vm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-vm b/build-vm index f747a4e..e405eff 100644 --- a/build-vm +++ b/build-vm @@ -801,7 +801,7 @@ vm_first_stage() { # put our config into .build/build.data Q="'\''" echo "RECIPEFILE='${RECIPEFILE//"'"/$Q}'" > $BUILD_ROOT/.build/build.data - if test "$VM_TYPE" = lxc -o "VM_TYPE" = docker -o "$VM_TYPE" = sb2; then + if test "$VM_TYPE" = lxc -o "VM_TYPE" = docker -o "$VM_TYPE" = sb2 -o -n "$BUILD_SB2FLAGS"; then # abuild user equivalence is useful echo "ABUILD_UID='${ABUILD_UID//"'"/$Q}'" >> $BUILD_ROOT/.build/build.data echo "ABUILD_GID='${ABUILD_GID//"'"/$Q}'" >> $BUILD_ROOT/.build/build.data -- 2.14.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor