From patchwork Wed Jan 9 01:52:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fam X-Patchwork-Id: 10753363 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 1BDE713BF for ; Wed, 9 Jan 2019 01:55:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AC272899B for ; Wed, 9 Jan 2019 01:55:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2FDD28D8D; Wed, 9 Jan 2019 01:55:23 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 94A5D2899B for ; Wed, 9 Jan 2019 01:55:23 +0000 (UTC) Received: from localhost ([127.0.0.1]:38502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh35W-0003PB-SB for patchwork-qemu-devel@patchwork.kernel.org; Tue, 08 Jan 2019 20:55:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh346-00028S-0k for qemu-devel@nongnu.org; Tue, 08 Jan 2019 20:53:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gh345-00062Q-1h for qemu-devel@nongnu.org; Tue, 08 Jan 2019 20:53:53 -0500 Received: from sender2-op-o12.zoho.com.cn ([163.53.93.243]:17776 helo=sender1.zoho.com.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh344-00060v-Fb for qemu-devel@nongnu.org; Tue, 08 Jan 2019 20:53:52 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1546998770; cv=none; d=zoho.com.cn; s=zohoarc; b=XqEqiY4Up4aabQnZLfFJGt35SIgJaKc2VGY7/gtJcz3CGSFQwLVrzytxSDVP+RLZQ2gRL6OsJCjr6Ny4gxw8YpkXObxQHqucb5n+/qrN+paiQVuUR1HA1RoUZsrGoxvI4urldtWhuRh791asmDwVp3coSQfJQB3WqA7wWq03jFo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1546998770; 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=Pp3n9MBHlbcBSSvtBoIlvsGbVo8pcN+SUACUQDprQXO7FKWSTe6qwt9faGDkh6wMxZAmw7X824IbJ52XXrizG8Ax/c4dSPpht1OV5+7pc8xUkkY72aBV4ePsLCp2rlNwE836mBgV5kgpbhHkNlN2mQhcJOul+0P7xT+rdOKJRo4= 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=1546998770; 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=N3Nw/Tgh4Dh2Vwom+Gbgij7wSHti+4YYSMRPvOZIQPs8VPVfdf9v5RoidYx29tgG 0Upy+o/cPs06DGIPrs31Ww+7ayf8Zidsy68bgyeqnnNXmFSPVHzc38kvoo1a175P02c 2Og3dK2TSJUWigwj1jn8zC0eC74o3QW3ZZIo0Njs= Received: from localhost (120.52.147.52 [120.52.147.52]) by mx.zoho.com.cn with SMTPS id 1546998769687569.379257302775; Wed, 9 Jan 2019 09:52:49 +0800 (CST) From: Fam Zheng To: qemu-devel@nongnu.org Message-ID: <20190109015240.2116-3-fam@euphon.net> Date: Wed, 9 Jan 2019 09:52:40 +0800 X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190109015240.2116-1-fam@euphon.net> References: <20190109015240.2116-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] X-Received-From: 163.53.93.243 Subject: [Qemu-devel] [PULL 2/2] 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