From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OAqkHtzspGFgVgAAgWs5BA (envelope-from ) for ; Mon, 29 Nov 2021 16:08:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8IiUGtzspGHKEQAAB5/wlQ (envelope-from ) for ; Mon, 29 Nov 2021 15:08:12 +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 42E0411CFF for ; Mon, 29 Nov 2021 16:08:12 +0100 (CET) Received: from localhost ([::1]:46198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mriGJ-00006K-Cm for larch@yhetil.org; Mon, 29 Nov 2021 10:08:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mriGA-0008S4-EX for bug-guix@gnu.org; Mon, 29 Nov 2021 10:08:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mriGA-0008A2-6M for bug-guix@gnu.org; Mon, 29 Nov 2021 10:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mriG9-0005w0-UM for bug-guix@gnu.org; Mon, 29 Nov 2021 10:08:01 -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: Z572 <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 29 Nov 2021 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52181 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52181@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163819842322739 (code B ref -1); Mon, 29 Nov 2021 15:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Nov 2021 15:07:03 +0000 Received: from localhost ([127.0.0.1]:38883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mriFD-0005uf-EX for submit@debbugs.gnu.org; Mon, 29 Nov 2021 10:07:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:46378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1mriFB-0005uG-1F for submit@debbugs.gnu.org; Mon, 29 Nov 2021 10:07:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <873216071@qq.com>) id 1mriFA-0007Rs-TX for bug-guix@gnu.org; Mon, 29 Nov 2021 10:07:00 -0500 Received: from xmbg7.mail.qq.com ([101.91.43.96]:47461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <873216071@qq.com>) id 1mriF2-0007s6-H7 for bug-guix@gnu.org; Mon, 29 Nov 2021 10:06:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1638198403; bh=2gruRk8UoBtmFZeIVtRJLhZ+XNnLJh+6bpzg2FBjOu0=; h=From:To:Subject:Date; b=g6OfaC+qERpDo60g8SRnSIBp33naz/F39vZUDpQZrf9mzXT8hMZiH7rc9TUQPQl8z yuv5enmp1C0h943ggfElLoGB3QCt84e77LTWC/4kiohn5IKD74PlDXmAXbyaMZWg0t Jdb0p2xWgzK2Bndq2tgRL/G9mkMRjkmNPSmLvBbU= Received: from asus ([223.104.165.197]) by newxmesmtplogicsvrszb6.qq.com (NewEsmtp) with SMTP id 8C6876EB; Mon, 29 Nov 2021 22:35:06 +0800 X-QQ-mid: xmsmtpt1638196506tcbyhcde9 Message-ID: X-QQ-XMAILINFO: M/JROGx4T0Puxlk5pbmLfmnonLsLfYtD8nYONAcjlQLc79Nd6lDMGkn8fHZsBo eD/E0AUMB/YcNnCaKDvItQY1WhFhw3Lvm5bOV9OlZAe8nUVK+ocu4M0aybh1Rh8MvmqcBdUbS4CJ JNFOOKC58iQOqbYYGMqz+jjnVMgSvgkrTuVWDwi4n9MWuPv6vjuXqEPc3ctUi29jUeXgLZWcz2a2 cXoh6Pr1igmXiuuLWDJuxeCZNWJ+PwKWuaF6jcLa2w1LarY04boy05gXNsMj+RXNra3IjvJx9evq 1JLocZy2EKqk4S8bWELCcyczxEh+etWsentC46CcohiSrJpx6WoB8WgttFwKjviYPc1U3F8VBJi5 KzLpTUWFADPFdoAx3rtWIm2CEjEDSt/uagT6fe4urHaMJKG8cCt3lOQMBWOrA/azk7n3zfUTmtZ+ G/1j4dJrsZsHGmHcEfPPLU3cszO7i6yQf9kpG6IU9vyRIzdOiAR3bf9aNEykQv0j1aUISLleY3pD zkjdji5UH1TOqFEEtd/4xn91PS/UFWasoV0FqjvroNU1QYmlsJm4otWceOoSE3g3ubsbGrqV2q14 lnP71W8Ijc5+lHS+IkunXrw2It06QqYvMIC/fLGaNHcYrBDFvAsAjwMFQGL+KJyfltphz/fbQrko zA2E5Udvx/S6NNAbnO93r489yJKCrkJvL4E64dWhtXSrg4jZWBHfDZ/aMNKMv8761h5VIfKr1GzI f0cR59iZXW/PhwbZY/RLW5uZrSNm5uxT2MHDfyUbmpgVCHNRHnqfc3yvJIIQzKtFDCdDkUT65SOX 8jtV8emnh97DLiH4obVWXnzkDkefRUZd8= User-agent: mu4e 1.6.10; emacs 29.0.50 Date: Mon, 29 Nov 2021 22:31:48 +0800 Message-ID: <87o863owrp.fsf@qq.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=101.91.43.96; envelope-from=873216071@qq.com; helo=xmbg7.mail.qq.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: Z572 <873216071@qq.com> From: Z572 via Bug reports for GNU 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=1638198492; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=2gruRk8UoBtmFZeIVtRJLhZ+XNnLJh+6bpzg2FBjOu0=; b=fWMo8TNh61HEiksISHWtI4jPEK9p0alhsNSWBF5UauS1YsZ2w76wagxYYSwyQKahHg7e3J u34/T08lIFPazDdkBYFwRRPsK2cDaGTrFadZfDJ5FFSM0rL0DebmoqCxTXKqLIHlfV7o2Q Tkb+OzkiN+PzZW8vP3SEYj5nZ/lXLRV4Lk51eBTJ0Yydgn7scPwPdFFgeNCqY/4CLid1xU I2ns7Unucs/p+Pkdy9OH6ge51835BiWaSfOP1+g8YjNAC4pfs61ms7XTNnZBmC35rUOpv3 fWZuqs5mRrGqLzgfOkTjdOn9eQNI6yoH2y11OoB4/HkaULCAA1Q4//ov4k1XcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638198492; a=rsa-sha256; cv=none; b=Eg5lWdtNeLEER7DliDuIOOiznTBI1a/4Ly/IzPXS5ZfTdbjAjxGTiI1Dq+61bDUzTDHx5G vUBrlOvYz8P/5rv81nXF7ZicRJ2RT5T/4F/xcg87vXUSmaoOvhHmIZYWdhWlJnhw3clbaW h6VyZvnxc6utN3wzaAEhK/l4zgkoyHBuPa9KeV/ScytGqlSf+Gj6tgqRODyfjEfOSOJ4m8 T8XruACHfolzysQUz0T1mxrLxd960F4aRey3TcC51NiRXtnnzNk21j28kJ8VYS7rhBeadE 05V4GgCFzC2nc0mShmW3rXzwrCfBpKG0dDSY1DZNV5rf56LIme+oXQ0Ff7tloA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=g6OfaC+q; dmarc=pass (policy=none) header.from=gnu.org; 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.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=g6OfaC+q; dmarc=pass (policy=none) header.from=gnu.org; 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: 42E0411CFF X-Spam-Score: 1.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: NlXMEdUJtk1L hello, many rust package can't build in core-update-frozen because them source file-name use ".crate" suffix. core-update-frozen change unpack phase: see guix/build/gnu-build-system.scm unpack phase: #+BEGIN_SRC diff @@ -156,13 +157,25 @@ ;; Preserve timestamps (set to the Epoch) on the copied tree so that ;; things work deterministically. (copy-recursively source "." - #:keep-mtime? #t)) + #:keep-mtime? #t) + ;; Make the source checkout files writable, for convenience. + (for-each (lambda (f) + (false-if-exception (make-file-writable f))) + (find-files "."))) (begin - (if (string-suffix? ".zip" source) - (invoke "unzip" source) - (invoke "tar" "xvf" source)) - (chdir (first-subdirectory ".")))) - #t) + (cond + ((string-suffix? ".zip" source) + (invoke "unzip" source)) + ((tarball? source) + (invoke "tar" "xvf" source)) + (else + (let ((name (strip-store-file-name source)) + (command (compressor source))) + (copy-file source name) + (when command + (invoke command "--decompress" name))))) + ;; Attempt to change into child directory. + (and=> (first-subdirectory ".") chdir)))) #+END_SRC and guix/build/utils.scm: #+BEGIN_SRC scheme (define (tarball? file-name) "True when FILE-NAME has a tar file extension." (string-match "\\.(tar(\\..*)?|tgz|tbz)$" file-name)) #+END_SRC ".crate" no match it. so #+BEGIN_SRC bash $ ls /tmp/guix-build-rust-pkg-config-0.3.19.drv-0/ environment-variables rust-pkg-config-0.3.19.crate #+END_SRC 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. -- over