From patchwork Sun Jan 6 05:34:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fam X-Patchwork-Id: 10749455 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F308A13BF for ; Sun, 6 Jan 2019 05:36:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E314C2880A for ; Sun, 6 Jan 2019 05:36:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D63372883A; Sun, 6 Jan 2019 05:36:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from listsout.gnu.org (listsout.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7417328834 for ; Sun, 6 Jan 2019 05:36:36 +0000 (UTC) Received: from localhost ([127.0.0.1]:48108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gg16w-0001km-Gc for patchwork-qemu-devel@patchwork.kernel.org; Sun, 06 Jan 2019 00:36:34 -0500 Received: from eggsout.gnu.org ([209.51.188.92]:46069 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gg15z-0000uu-41 for qemu-devel@nongnu.org; Sun, 06 Jan 2019 00:35:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gg15u-0004IP-75 for qemu-devel@nongnu.org; Sun, 06 Jan 2019 00:35:35 -0500 Received: from sender2-op-o12.zoho.com.cn ([163.53.93.243]:17745 helo=sender1.zoho.com.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gg15r-00044p-Hx for qemu-devel@nongnu.org; Sun, 06 Jan 2019 00:35:29 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1546752874; cv=none; d=zoho.com.cn; s=zohoarc; b=HeH11AbKP92CB0pfh7C38Xawn2+MSNLWsj3UGewpW1T9uXS1odEkbkqAdZJ8n60sHQEYtCPqXmJ8gn9SHE+KSbkBEjV4Pi1myp7l6rHsz3OFWL+h+CYyv5ubpPZCl/1gIuk+lEsN96jWrkO91AY9WuV3O0cRD0h83UZAs8uTb4M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1546752874; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=jhq38tiZy+crr84voA/EAyFCLFGDmK1s91zaM9ARFC8=; b=kqEzFHGYvYIuoIGK2V8Z+g2tbYvvLOnJG21L4MJ9LgImLZCotlXYbVcxz9KOUoAfvfISuh5AGLmIUtePTpI/X2FC9mKsrkwBk1/tyhrcnO0NxE7/3dWUhuPtx+wOenH3hzyy2S1HAVb97X0K8NBzbLQRFBSRJDL+gva1t/35eIU= ARC-Authentication-Results: i=1; mx.zoho.com.cn; dkim=pass header.i=euphon.net; spf=pass smtp.mailfrom=fam@euphon.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1546752874; s=zoho; d=euphon.net; i=fam@euphon.net; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; l=2301; bh=jhq38tiZy+crr84voA/EAyFCLFGDmK1s91zaM9ARFC8=; b=BHjv8qfBiutnK8eQfLV8RDp4NKCviv0AhPB4yKhz2xOeBUocOJ/A9wiL+Zj6Rgqe jA0GeMgZLaMLPbNlRh6eAqLRaCD+tbVdrNYNa9vBS+Elus5WncfwGew3I0sP7EckH3+ LCs+fGscPE1H4mKwPtPXQs8U/D78j5/o3tRiSYlE= Received: from localhost (120.52.147.48 [120.52.147.48]) by mx.zoho.com.cn with SMTPS id 1546752872855226.77217624459809; Sun, 6 Jan 2019 13:34:32 +0800 (CST) From: Fam Zheng To: qemu-devel@nongnu.org Message-ID: <20190106053409.10712-3-fam@euphon.net> Date: Sun, 6 Jan 2019 13:34:08 +0800 X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190106053409.10712-1-fam@euphon.net> References: <20190106053409.10712-1-fam@euphon.net> MIME-Version: 1.0 X-ZohoCNMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 163.53.93.243 Subject: [Qemu-devel] [PULL 2/3] docker: Use a stable snapshot for Debian Sid X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Philippe Mathieu-Daudé The Debian Sid repository is not garanteed to be stable, as his 'unstable' name suggest :) To allow quick testing, Debian maintainers might push packages various time a day. Sometime package dependencies might break, which is annoying when using this repository for stable development (which is not recommended, but Sid provides edge packages we use for testing). Debian provides repositories snapshots which are suitable for our use. Pick a recent date that works. When required, update to newer releases will be easy. This fixes current issues with this image: $ make docker-image-debian-sid [...] The following packages have unmet dependencies: build-essential : Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed git : Depends: perl but it is not going to be installed Depends: liberror-perl but it is not going to be installed pkg-config : Depends: libdpkg-perl but it is not going to be installed texinfo : Depends: perl (>= 5.26.2-6) but it is not going to be installed Depends: libtext-unidecode-perl but it is not going to be installed Depends: libxml-libxml-perl but it is not going to be installed E: Unable to correct problems, you have held broken packages. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20181101183705.5422-1-philmd@redhat.com> Signed-off-by: Fam Zheng --- tests/docker/dockerfiles/debian-sid.docker | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/docker/dockerfiles/debian-sid.docker b/tests/docker/dockerfiles/debian-sid.docker index 9a3d168705..4e4cda0ba5 100644 --- a/tests/docker/dockerfiles/debian-sid.docker +++ b/tests/docker/dockerfiles/debian-sid.docker @@ -13,6 +13,10 @@ FROM debian:sid-slim +# Use a snapshot known to work (see http://snapshot.debian.org/#Usage) +ENV DEBIAN_SNAPSHOT_DATE "20181030" +RUN sed -i "s%^deb \(https\?://\)deb.debian.org/debian/\? \(.*\)%deb [check-valid-until=no] \1snapshot.debian.org/archive/debian/${DEBIAN_SNAPSHOT_DATE} \2%" /etc/apt/sources.list + # Duplicate deb line as deb-src RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list