Docker patches
The following changes since commit 063833a6ec2a6747e27c5f9866bb44c7e8de1265:
Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into staging (2017-10-19 18:42:51 +0100)
are available in the git repository at:
git://github.com/famz/qemu.git tags/docker-pull-request
for you to fetch changes up to 6a2e11974fa6c4eaee6b2b156b1b4e03ca983bab:
docker: Fix PATH for ccache (2017-10-20 14:28:50 +0800)
----------------------------------------------------------------
----------------------------------------------------------------
Fam Zheng (2):
docker: Don't allocate tty unless DEBUG=1
docker: Fix PATH for ccache
Greg Kurz (1):
docker: fix out-of-tree 'make docker-test-build@debian-powerpc-cross'
Paolo Bonzini (1):
docker: allow running from srcdir != builddir build
Peter Xu (1):
docker: cleanup temp directory after test
tests/docker/Makefile.include | 12 +++++++----- tests/docker/run | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-)
Signature · 1 line
2.13.5
[Qemu-devel] [PULL 2/5] docker: cleanup temp directory after test
From: Peter Xu <[email protected]>
There are temp directories named "docker-src.*" after doing docker tests. I don't see much point in keeping that (it only contains the qemu.tar which is exactly current tree, and the copied "run" file). Let's remove it after test finished.
Message-Id: <[email protected]>
--- tests/docker/Makefile.include | 2 ++ 1 file changed, 2 insertions(+)
tests/docker/Makefile.include +2 -0
@@ -151,6 +151,8 @@ docker-run: docker-qemu-src $(IMAGE) \ /var/tmp/qemu/run \ $(TEST), " RUN $(TEST) in ${IMAGE}") + $(call quiet-command, rm -r $(DOCKER_SRC_COPY), \ + " CLEANUP $(DOCKER_SRC_COPY)") # Run targets: #
Signature · 1 line
2.13.5
[Qemu-devel] [PULL 1/5] docker: Don't allocate tty unless DEBUG=1
In reply to Fam ZhengThe existence of tty in the container seems to urge gcc into colorizing the errors, but the escape chars will clutter the report once turned into email replies on patchew. Move -t to debug mode.
Message-Id: <[email protected]>
--- tests/docker/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/docker/Makefile.include +2 -2
@@ -134,10 +134,10 @@ docker-run: docker-qemu-src " COPYING $(EXECUTABLE) to $(IMAGE)")) $(call quiet-command, \ $(SRC_PATH)/tests/docker/docker.py run \ - $(if $(NOUSER),,-u $(shell id -u)) -t \ + $(if $(NOUSER),,-u $(shell id -u)) \ --security-opt seccomp=unconfined \ $(if $V,,--rm) \ - $(if $(DEBUG),-i,) \ + $(if $(DEBUG),-ti,) \ $(if $(NETWORK),$(if $(subst $(NETWORK),,1),--net=$(NETWORK)),--net=none) \ -e TARGET_LIST=$(TARGET_LIST) \ -e EXTRA_CONFIGURE_OPTS="$(EXTRA_CONFIGURE_OPTS)" \
Signature · 1 line
2.13.5
[Qemu-devel] [PULL 3/5] docker: allow running from srcdir != builddir build
In reply to Fam ZhengFrom: Paolo Bonzini <[email protected]>
The new script uses "git submodule", which is picky about being invoked from the top of the git checkout. Invoke the script from $(SRC_PATH) to avoid git's wrath.
Message-Id: <[email protected]>
--- tests/docker/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/docker/Makefile.include +2 -2
@@ -18,11 +18,11 @@ TESTS ?= % IMAGES ?= % CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$) -DOCKER_SRC_COPY := docker-src.$(CUR_TIME) +DOCKER_SRC_COPY := $(BUILD_DIR)/docker-src.$(CUR_TIME) $(DOCKER_SRC_COPY): @mkdir $@ - $(call quiet-command, $(SRC_PATH)/scripts/archive-source.sh $@/qemu.tar, \ + $(call quiet-command, cd $(SRC_PATH) && scripts/archive-source.sh $@/qemu.tar, \ "GEN", "$@/qemu.tar") $(call quiet-command, cp $(SRC_PATH)/tests/docker/run $@/run, \ "COPY","RUNNER")
Signature · 1 line
2.13.5
[Qemu-devel] [PULL 4/5] docker: fix out-of-tree 'make docker-test-build@debian-powerpc-cross'
In reply to Fam ZhengFrom: Greg Kurz <[email protected]>
Without this patch, it fails with:
IOError: [Errno 2] No such file or directory:
'tests/docker/dockerfiles/debian-apt-fake.sh'
Message-Id: <[email protected]>
--- tests/docker/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/Makefile.include +1 -1
@@ -44,7 +44,7 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker $(if $(EXECUTABLE),--include-executable=$(EXECUTABLE)),\ "BUILD","$*") -docker-image-debian-powerpc-cross: EXTRA_FILES:=tests/docker/dockerfiles/debian-apt-fake.sh +docker-image-debian-powerpc-cross: EXTRA_FILES:=$(SRC_PATH)/tests/docker/dockerfiles/debian-apt-fake.sh # Enforce dependancies for composite images docker-image-debian: docker-image-debian9
Signature · 1 line
2.13.5
[Qemu-devel] [PULL 5/5] docker: Fix PATH for ccache
In reply to Fam ZhengBefore bcd7f06f57fb6f780a3e2f7a46c22b6f6c8238aa we source /etc/profile so the PATH included the right paths to ccache binaries. Now we need to update $PATH explicitly from run script.
Keep the old /usr/lib around just so that in the future, ccache from 32 bit images will just work.
Message-Id: <[email protected]>
--- tests/docker/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/run +1 -1
@@ -18,7 +18,7 @@ fi BASE="$(dirname $(readlink -e $0))" # Prepare the environment -export PATH=/usr/lib/ccache:$PATH +export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH if test -n "$J"; then export MAKEFLAGS="$MAKEFLAGS -j$J"
Signature · 1 line
2.13.5
Peter Maydell
AppliedQuoted 8 lines · Fam Zheng
The following changes since commit
063833a6ec2a6747e27c5f9866bb44c7e8de1265:Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into staging (2017-10-19 18:42:51 +0100)
are available in the git repository at:
git://github.com/famz/qemu.gittags/docker-pull-request
Quoted 7 lines
for you to fetch changes up to
6a2e11974fa6c4eaee6b2b156b1b4e03ca983bab:docker: Fix PATH for ccache (2017-10-20 14:28:50 +0800)
----------------------------------------------------------------
----------------------------------------------------------------
Applied, thanks.
-- PMM