From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53E17C433F5 for ; Thu, 9 Sep 2021 17:06:24 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F28B061104 for ; Thu, 9 Sep 2021 17:06:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F28B061104 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xenproject.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:33302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mONVH-0006Kt-2U for qemu-devel@archiver.kernel.org; Thu, 09 Sep 2021 13:06:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mONTF-0004xi-G9 for qemu-devel@nongnu.org; Thu, 09 Sep 2021 13:04:18 -0400 Received: from mail.xenproject.org ([104.130.215.37]:42344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mONTD-0006Ni-FV for qemu-devel@nongnu.org; Thu, 09 Sep 2021 13:04:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=References:In-Reply-To:Subject:Cc:To:Date :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:From; bh=Br91uh8E0NvBoHS022PXFOhYm0jRF4W2cYdOJwl1NQU=; b=jbOb8A7xr8S35Dw4U/rygCcwTi OgKsRgZ0J8r78l+jmtkJ9NoZYXdySnm7xBg4wVe6TlyDi9BDswplss1HE2ZFjvTLGDjnV8MqkTbye tPTwie2MMJXMECmhIbI1WrCmI7AZs7LxM0zNVSBL+97rNWh4CuMo/v8KoE0o2JNGinMM=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mONTC-0002gh-QW for qemu-devel@nongnu.org; Thu, 09 Sep 2021 17:04:14 +0000 Received: from iwj (helo=mariner.uk.xensource.com) by xenbits.xenproject.org with local-bsmtp (Exim 4.92) (envelope-from ) id 1mONTC-00078N-P1 for qemu-devel@nongnu.org; Thu, 09 Sep 2021 17:04:14 +0000 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.89) (envelope-from ) id 1mONT6-0006yy-EK; Thu, 09 Sep 2021 18:04:08 +0100 From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <24890.16008.223866.916605@mariner.uk.xensource.com> Date: Thu, 9 Sep 2021 18:04:08 +0100 To: Daniel P. =?iso-8859-1?Q?Berrang=E9?= Subject: Re: [RFC v3 13/32] rust: use vendored-sources In-Reply-To: References: <20210907121943.3498701-1-marcandre.lureau@redhat.com> <20210907121943.3498701-14-marcandre.lureau@redhat.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) Received-SPF: pass client-ip=104.130.215.37; envelope-from=iwj@xenproject.org; helo=mail.xenproject.org X-Spam_score_int: -63 X-Spam_score: -6.4 X-Spam_bar: ------ X-Spam_report: (-6.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.975, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , QEMU Developers , Markus Armbruster , =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , Stefan Hajnoczi , Paolo Bonzini Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Daniel P. Berrangé writes ("Re: [RFC v3 13/32] rust: use vendored-sources"): > On Thu, Sep 09, 2021 at 08:29:58PM +0400, Marc-André Lureau wrote: > > True, at least on Fedora, there is machinery to package "regular" Rust > > programs/crates in an automated way. Vendoring dependencies should work > > equally, but may not conform with distro policies, so they have extra work > > eventually (it seems vendoring is more and more common though, with go > > projects for example) > > I wouldn't assume that we're going to be able to use that RPM support > for rust, if we bundle our rust code inside the QEMU tarball and hidden > behind meson. It generally only works well in single language projects > using the preferred build tool exclusively (Cargo in this case). I can't speak to RPM, but Debian's arrangements for avoiding crates.io downloads at packag-ebuild-time will work just fine even if it the cargo calls are buried inside meson. All that would be needed is a way to disable any source replacement done by qemu (see previous mail) so that Debian's source replacement takes effect. Ian.