qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: cota@braap.org, berrange@redhat.com, f4bug@amsat.org,
	richard.henderson@linaro.org, balrogg@gmail.com,
	aurelien@aurel32.net, agraf@suse.de, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v5 43/49] docker: move debian-powerpc-cross to sid based build
Date: Mon, 28 May 2018 17:06:11 +0800	[thread overview]
Message-ID: <20180528090611.GA4599@lemon.usersys.redhat.com> (raw)
In-Reply-To: <20180525141915.6497-4-alex.bennee@linaro.org>

On Fri, 05/25 15:19, Alex Bennée wrote:
> The original Jessie based cross builder hasn't worked for a while. The
> state of the libraries is still perilous for cross-building QEMU but
> we can use it for building TCG tests.
> 
> The debian-apt-fake.sh script can also be dropped as it is no longer
> used.
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>  tests/docker/Makefile.include                 |  4 +-
>  tests/docker/dockerfiles/debian-apt-fake.sh   | 46 -------------------
>  .../dockerfiles/debian-powerpc-cross.docker   | 39 +++-------------
>  tests/docker/dockerfiles/debian8.docker       |  3 --
>  4 files changed, 7 insertions(+), 85 deletions(-)
>  delete mode 100755 tests/docker/dockerfiles/debian-apt-fake.sh
> 
> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
> index 36779645d7..d59314ee65 100644
> --- a/tests/docker/Makefile.include
> +++ b/tests/docker/Makefile.include
> @@ -46,8 +46,6 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker
>  		$(if $(EXECUTABLE),--include-executable=$(EXECUTABLE)),\
>  		"BUILD","$*")
>  
> -docker-image-debian-powerpc-cross: EXTRA_FILES:=$(SRC_PATH)/tests/docker/dockerfiles/debian-apt-fake.sh
> -
>  # Enforce dependencies for composite images
>  docker-image-debian: docker-image-debian9
>  docker-image-debian8-mxe: docker-image-debian8
> @@ -57,7 +55,6 @@ docker-image-debian-armhf-cross: docker-image-debian9
>  docker-image-debian-arm64-cross: docker-image-debian9
>  docker-image-debian-mips-cross: docker-image-debian9
>  docker-image-debian-mips64el-cross: docker-image-debian9
> -docker-image-debian-powerpc-cross: docker-image-debian8
>  docker-image-debian-ppc64el-cross: docker-image-debian9
>  docker-image-debian-s390x-cross: docker-image-debian9
>  docker-image-debian-win32-cross: docker-image-debian8-mxe
> @@ -69,6 +66,7 @@ docker-image-debian-sh4-cross: docker-image-debian-sid
>  docker-image-debian-sparc64-cross: docker-image-debian-sid
>  docker-image-debian-mips64-cross: docker-image-debian-sid
>  docker-image-debian-riscv64-cross: docker-image-debian-sid
> +docker-image-debian-powerpc-cross: docker-image-debian-sid
>  docker-image-travis: NOUSER=1
>  
>  # Expand all the pre-requistes for each docker image and test combination
> diff --git a/tests/docker/dockerfiles/debian-apt-fake.sh b/tests/docker/dockerfiles/debian-apt-fake.sh
> deleted file mode 100755
> index 2ec0fdf47a..0000000000
> --- a/tests/docker/dockerfiles/debian-apt-fake.sh
> +++ /dev/null
> @@ -1,46 +0,0 @@
> -#! /bin/sh
> -#
> -# Generate fake debian package to resolve unimportant unmet dependencies held
> -# by upstream multiarch broken packages.
> -#
> -# Copyright (c) 2017 Philippe Mathieu-Daudé <f4bug@amsat.org>
> -#
> -# This work is licensed under the terms of the GNU GPL, version 2
> -# or (at your option) any later version. See the COPYING file in
> -# the top-level directory.
> -
> -test $1 = "install" && shift 1
> -
> -fake_install()
> -{
> -    echo "Generating fake $2 $1 $3 ..."
> -    (cd /var/cache/apt/archives
> -        (cat << 'EOF'
> -Section: misc
> -Priority: optional
> -Standards-Version: 3.9.2
> -
> -Package: NAME
> -Version: VERSION
> -Maintainer: qemu-devel@nongnu.org
> -Architecture: any
> -Multi-Arch: same
> -Description: fake NAME
> -EOF
> -        ) | sed s/NAME/$2/g | sed s/VERSION/$3/g > $2.control
> -        equivs-build -a $1 $2.control 1>/dev/null 2>/dev/null
> -        dpkg -i --force-overwrite $2_$3_$1.deb
> -    )
> -}
> -
> -try_install()
> -{
> -    name=$(echo $1|sed "s/\(.*\):\(.*\)=\(.*\)/\1/")
> -    arch=$(echo $1|sed "s/\(.*\):\(.*\)=\(.*\)/\2/")
> -    vers=$(echo $1|sed "s/\(.*\):\(.*\)=\(.*\)/\3/")
> -    apt-get install -q -yy $1 || fake_install $arch $name $vers
> -}
> -
> -for package in $*; do
> -    try_install $package
> -done
> diff --git a/tests/docker/dockerfiles/debian-powerpc-cross.docker b/tests/docker/dockerfiles/debian-powerpc-cross.docker
> index a5dd46b4ac..5e62ca0df1 100644
> --- a/tests/docker/dockerfiles/debian-powerpc-cross.docker
> +++ b/tests/docker/dockerfiles/debian-powerpc-cross.docker
> @@ -1,40 +1,13 @@
>  #
>  # Docker powerpc cross-compiler target
>  #
> -# This docker target builds on the debian Jessie base image.
> +# This docker target builds on the debian sid base image which
> +# contains cross compilers for Debian "ports" targets. The original
> +# Jessie based no longer builds.
>  #
> -FROM qemu:debian8
> -MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
> +FROM qemu:debian-sid
>  
> -# Add the foreign architecture we want and install dependencies
> -RUN dpkg --add-architecture powerpc
> -RUN apt-get update
>  RUN DEBIAN_FRONTEND=noninteractive eatmydata \
>      apt-get install -y --no-install-recommends \
> -        crossbuild-essential-powerpc
> -
> -# <kludge> to fix "following packages have unmet dependencies" ...
> -ADD debian-apt-fake.sh /usr/local/bin/apt-fake
> -RUN apt-get install -y --no-install-recommends \
> -        equivs \
> -        pkg-config
> -RUN apt-fake install \
> -        pkg-config:powerpc=0.28-1.1-fake && \
> -    ln -s pkg-config /usr/bin/powerpc-linux-gnu-pkg-config
> -ENV PKG_CONFIG_PATH /usr/lib/powerpc-linux-gnu/pkgconfig
> -# </kludge>
> -
> -# Specify the cross prefix for this image (see tests/docker/common.rc)
> -ENV QEMU_CONFIGURE_OPTS --cross-prefix=powerpc-linux-gnu-
> -
> -RUN DEBIAN_FRONTEND=noninteractive eatmydata \
> -    apt-get build-dep -yy -a powerpc qemu
> -RUN DEBIAN_FRONTEND=noninteractive \
> -    apt-get install -y --no-install-recommends \
> -        glusterfs-common:powerpc \
> -        libbz2-dev:powerpc \
> -        liblzo2-dev:powerpc \
> -        libncursesw5-dev:powerpc \
> -        libnfs-dev:powerpc \
> -        librdmacm-dev:powerpc \
> -        libsnappy-dev:powerpc
> +        gcc-powerpc-linux-gnu \
> +        libc6-dev-powerpc-cross || { echo "Failed to build - see debian-sid.docker notes"; exit 1; }
> diff --git a/tests/docker/dockerfiles/debian8.docker b/tests/docker/dockerfiles/debian8.docker
> index 1bcf2e3d2f..52945631cd 100644
> --- a/tests/docker/dockerfiles/debian8.docker
> +++ b/tests/docker/dockerfiles/debian8.docker
> @@ -32,6 +32,3 @@ RUN DEBIAN_FRONTEND=noninteractive eatmydata \
>          pkg-config \
>          python-minimal
>  
> -# Setup Emdebian [emdebian-archive-keyring]
> -RUN echo "deb http://emdebian.org/tools/debian/ jessie main" > /etc/apt/sources.list.d/emdebian.list && \
> -    curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
> -- 
> 2.17.0
> 

Nice clean up!

Reviewed-by: Fam Zheng <famz@redhat.com>

  reply	other threads:[~2018-05-28  9:06 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-25 13:38 [Qemu-devel] [PATCH v5 00/49] fix buildings of tests/tcg Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 01/49] docker: add "probe" command for configure Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 02/49] configure: add test for docker availability Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 03/49] configure: add support for --cross-cc-FOO Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 04/49] configure: move i386_cc to cross_cc_i386 Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 05/49] configure: allow user to specify --cross-cc-cflags-foo= Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 06/49] configure: set cross_cc_FOO for host compiler Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 07/49] Makefile: Rename TARGET_DIRS to TARGET_LIST Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 08/49] docker: Add "cc" subcommand Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 09/49] docker: extend "cc" command to accept compiler Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 10/49] docker: allow "cc" command to run in user context Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 11/49] docker: Makefile.include introduce DOCKER_SCRIPT Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 12/49] tests/tcg: move architecture independent tests into subdir Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 13/49] tests/tcg/multiarch: Build fix for linux-test Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 14/49] tests/tcg/multiarch: enable additional linux-test tests Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 15/49] tests/tcg/multiarch: move most output to stdout Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 16/49] tests/tcg: move i386 specific tests into subdir Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 17/49] docker: Add fedora-i386-cross image Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 18/49] tests/tcg: enable building for i386 Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 19/49] tests/tcg/i386: Build fix for hello-i386 Alex Bennée
2018-05-25 13:38 ` [Qemu-devel] [PATCH v5 20/49] tests/tcg/i386: fix test-i386 Alex Bennée
2018-05-25 14:18 ` [Qemu-devel] [PATCH v5 22/49] tests/tcg/x86_64: add Makefile.target Alex Bennée
2018-05-25 14:18   ` [Qemu-devel] [PATCH v5 23/49] tests/tcg/i386/test-i386: use modern vector_size attributes Alex Bennée
2018-05-25 14:18   ` [Qemu-devel] [PATCH v5 24/49] tests/tcg/i386/test-i386: fix printf format Alex Bennée
2018-05-25 14:18   ` [Qemu-devel] [PATCH v5 25/49] tests/tcg: move ARM specific tests into subdir Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 26/49] tests/tcg: enable building for ARM Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 27/49] tests/tcg/arm: fix up test-arm-iwmmxt test Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 28/49] tests/tcg: enable building for AArch64 Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 29/49] tests/tcg/arm: add fcvt test cases for AArch32/64 Alex Bennée
2018-05-25 14:19 ` [Qemu-devel] [PATCH v5 30/49] tests/tcg: move MIPS specific tests into subdir Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 31/49] tests/tcg: enable building for MIPS Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 32/49] tests/tcg/mips: include common mips hello-mips Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 33/49] tests/tcg: enable building for s390x Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 34/49] tests/tcg: enable building for ppc64 Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 35/49] tests/tcg: enable building for Alpha Alex Bennée
2018-05-26  5:49     ` Philippe Mathieu-Daudé
2018-05-29 12:51       ` Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 36/49] tests/tcg/alpha: add Alpha specific tests Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 37/49] tests/tcg: enable building for HPPA Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 38/49] tests/tcg: enable building for m68k Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 39/49] tests/tcg: enable building for sh4 Alex Bennée
2018-05-25 14:19 ` [Qemu-devel] [PATCH v5 40/49] tests/tcg: enable building for sparc64 Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 41/49] tests/tcg: enable building for mips64 Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 42/49] tests/tcg: enable building for RISCV64 Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 43/49] docker: move debian-powerpc-cross to sid based build Alex Bennée
2018-05-28  9:06     ` Fam Zheng [this message]
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 44/49] tests/tcg: enable building for PowerPC Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 45/49] tests/tcg/Makefile: update to be called from Makefile.target Alex Bennée
2018-05-26  6:04     ` Philippe Mathieu-Daudé
2018-05-29 12:49       ` Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 46/49] Makefile.target: add (clean-/build-)guest-tests targets Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 47/49] tests/Makefile.include: add [build|clean|check]-tcg targets Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 48/49] tests/tcg: override runners for broken tests Alex Bennée
2018-05-25 14:19   ` [Qemu-devel] [PATCH v5 49/49] tests/tcg: add run, diff, and skip helper macros Alex Bennée
2018-05-25 15:05     ` [Qemu-devel] [PATCH v5.1 " Alex Bennée
2018-05-25 15:04 ` [Qemu-devel] [PATCH v5.1 21/49] tests/tcg/i386: add runner for test-i386-fprem Alex Bennée
2018-05-25 15:15 ` [Qemu-devel] [PATCH v5 00/49] fix buildings of tests/tcg Alex Bennée

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180528090611.GA4599@lemon.usersys.redhat.com \
    --to=famz@redhat.com \
    --cc=agraf@suse.de \
    --cc=alex.bennee@linaro.org \
    --cc=aurelien@aurel32.net \
    --cc=balrogg@gmail.com \
    --cc=berrange@redhat.com \
    --cc=cota@braap.org \
    --cc=f4bug@amsat.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).