From: Elan Ruusamäe Date: Sun, 27 Aug 2017 21:30:16 +0000 (+0300) Subject: fix nodim_gz patch, builds now X-Git-Tag: auto/th/gitlab-runner-10.0.2-1~4^2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fgitlab-runner.git;a=commitdiff_plain;h=ac49da7 fix nodim_gz patch, builds now --- diff --git a/gitlab-ci-multi-runner.spec b/gitlab-ci-multi-runner.spec index 9a6c76b..3a1c009 100644 --- a/gitlab-ci-multi-runner.spec +++ b/gitlab-ci-multi-runner.spec @@ -1,7 +1,7 @@ Summary: The official GitLab CI runner written in Go Name: gitlab-ci-multi-runner Version: 9.5.0 -Release: 0.1 +Release: 1 License: MIT Group: Development/Building Source0: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/repository/archive.tar.gz?ref=v%{version}&/%{name}-%{version}.tar.gz @@ -58,7 +58,7 @@ install -d src/$(dirname %{import_path}) mv gitlab-ci-multi-runner-* src/%{import_path} cd src/%{import_path} -#%patch0 -p1 +%patch0 -p5 %patch1 -p1 # avoid docker being used even if executable found diff --git a/nodim_gz.patch b/nodim_gz.patch index 5de4cb0..1dc643b 100644 --- a/nodim_gz.patch +++ b/nodim_gz.patch @@ -4,9 +4,9 @@ Bug-Upstream: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1504 Author: Dmitry Smirnov Description: do not incorporate Docker image into executable. ---- gitlab-ci-multi-runner/executors/docker/executor_docker.go~ 2017-05-02 13:12:18.000000000 +0300 -+++ gitlab-ci-multi-runner/executors/docker/executor_docker.go 2017-05-16 08:08:28.042038918 +0300 -@@ -228,16 +228,11 @@ +--- gitlab-ci-multi-runner-9.5.0/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/docker/executor_docker.go 2017-08-22 16:20:43.000000000 +0300 ++++ gitlab-ci-multi-runner-9.5.0/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/docker/executor_docker.go 2017-08-28 00:25:29.417833457 +0300 +@@ -222,17 +222,11 @@ return &image, nil } @@ -20,7 +20,8 @@ Description: do not incorporate Docker image into executable. ref := prebuiltImageName source := types.ImageImportSource{ - Source: bytes.NewBuffer(data), -+ Source: "/var/lib/gitlab-runner/prebuilt-" + architecture + ".tar.xz", - SourceName: "-", +- SourceName: "-", ++ SourceName: "/var/lib/gitlab-runner/prebuilt-" + architecture + ".tar.xz", } options := types.ImageImportOptions{ + Tag: architecture + "-" + common.REVISION,