From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UFG3OGgopWGuZwAAgWs5BA (envelope-from ) for ; Mon, 29 Nov 2021 20:22:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +PpGNGgopWGSOwAAB5/wlQ (envelope-from ) for ; Mon, 29 Nov 2021 19:22:16 +0000 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 aspmx1.migadu.com (Postfix) with ESMTPS id A6400ACB4 for ; Mon, 29 Nov 2021 20:22:16 +0100 (CET) Received: from localhost ([::1]:47668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrmEB-0007J6-PN for larch@yhetil.org; Mon, 29 Nov 2021 14:22:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrm99-0001kg-5X for bug-guix@gnu.org; Mon, 29 Nov 2021 14:17:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrm98-0001JS-JB for bug-guix@gnu.org; Mon, 29 Nov 2021 14:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrm98-0000iN-Ev for bug-guix@gnu.org; Mon, 29 Nov 2021 14:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52181: [core-update-frozen] many rust package can't build because them source file-name use ".crate" suffix. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 29 Nov 2021 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52181 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Z572 <873216071@qq.com>, 52181@debbugs.gnu.org Received: via spool by 52181-submit@debbugs.gnu.org id=B52181.16382133932706 (code B ref 52181); Mon, 29 Nov 2021 19:17:02 +0000 Received: (at 52181) by debbugs.gnu.org; 29 Nov 2021 19:16:33 +0000 Received: from localhost ([127.0.0.1]:39417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrm8f-0000ha-FV for submit@debbugs.gnu.org; Mon, 29 Nov 2021 14:16:33 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:39676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrm8d-0000hQ-DY for 52181@debbugs.gnu.org; Mon, 29 Nov 2021 14:16:32 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id QKGV2600L4UW6Th01KGV4a; Mon, 29 Nov 2021 20:16:29 +0100 Message-ID: From: Maxime Devos Date: Mon, 29 Nov 2021 19:16:29 +0000 In-Reply-To: <87o863owrp.fsf@qq.com> References: <87o863owrp.fsf@qq.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1638213389; bh=EIqUx/gOpcaXoLDnAtykThJBng4Hvin0OTA5CBG7NyY=; h=Subject:From:To:Date:In-Reply-To:References; b=ngx4mulbpeE8rglWGQW4rRsqbwoIQ6QXFGRpSKQoCfzwtVImW8y7OYDl4DsrFJHvV XUop4Tc/pPKNllcRaD+4yHP1xKzElliQ7sbmmQ0ZQo2gV/31Uy06lG6b1xU+IoO6RZ FMbUFUobDc4V3rVJirGVMEMd+lCl5oIR2tDSzui8e2zXY/KFuOd4iTJavavTCaz0dx yrLgs6VCZAykAxGZgD9T0FhCiQqr3av9nwMtavmP6CAfGWK24V7/fYFW7OZ9hKHAKS GcRC/eMTxSX7AGXaIUGcOoP09eA/9pW5YWso0J7BNajsdC9aj0NtvFQN4lBxgh+Dnh k427dwK3qvouw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638213736; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EIqUx/gOpcaXoLDnAtykThJBng4Hvin0OTA5CBG7NyY=; b=Kkn65iC36fXwVaBw2Ixwc76A95tzpjgpyqgCAvC0JeRc5OjKlSPPM8uBjC5rp0jHtHrMOP GxsrXYrhkBCPzIcOsWM/uT3ptqez/T7cFrZFdAMj+Edxtml1tWfmwL7vXFQpfHxu5jQ86u 2bCE4xeucYyxdDduWW2PmkWoADdy0c+V1xcHkQurO+P6l+tJLiF/SrLVBYd8xAPLOKz199 pvp8cGLhNo6eIZyOdYc7rz35FNpMjU2YN30TGSiyzUZdwT+Xc7CPtJXUIpBL5/ItHewpw+ PZVkb88gCU12CJI4Yp8fpOXjggO5+WBQZDP9d59yUXoF667bCHEB9QM+8cybCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638213736; a=rsa-sha256; cv=none; b=L28rxaHg0XcUf7/oo/EomPmzgR1aNbrdVxxRLqwfYlD3NyEKg8dlphY54fHfHIPUCNrUzy puHTYD3qKFSM6PkRt14Fzyl6XhCz1wpQCpdQviH54cAhcDvlnBezClzBysynqjT90V/MdS c6C60U47/6V/AaGkry1BgUpy1r6HE1OSUHyb9yMBZSJyhA3tUpo2bdXgFBY1bDD8WTp2sW YOFrrwmmEfPpENX45w0/pcyfZJoA22hZBaN4VAeBoeMDQzhW/v5woP7RmKgUKE9pTTfBzB sTgsDrBz2TRoSGa80eAJJ19Xg4uTug9jR4TZs9O4MXusrYfiH10rAk1QdphsrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=ngx4mulb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=ngx4mulb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A6400ACB4 X-Spam-Score: -1.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: c/Njx5f8D9/x Z572 via Bug reports for GNU Guix schreef op ma 29-11-2021 om 22:31 [+0800]: > I think have 2 option: > >  1. change suffix from ".crate" to ".tar.gz". >  2. maybe let "tarball?" check file like command-line program "file", > no >  just check filename suffix. A third option: let tarball? recognise ".crate" suffixes. A hacky fourth option (to avoid a full world-rebuild): in cargo-build, do: ;; Untested, might not work due to inlining. ;; XXX: modify tarball? on the next world-rebuild (define tarball?/fixed (let ((tarball?/old tarball?)) (lambda (filename) (or (tarball? filename) (string-suffix? ".crate" filename))))) (define* (cargo-build ...) (set! tarball? tarball?/fixed) (apply gnu:gnu-build ...)) The second option would be a bit complicated to do efficiently, because the tar would be wrapped inside a gzip/xzip/..., unless it is acceptable for tarball? to assume that every gzipped/... file is a gzipped/... tarball. Greetings, Maxime.