From unknown Thu Aug 14 18:40:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40894: import crate: Use proper variable names Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 27 Apr 2020 07:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40894 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 40894@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.158797210626650 (code B ref -1); Mon, 27 Apr 2020 07:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Apr 2020 07:21:46 +0000 Received: from localhost ([127.0.0.1]:35448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSy5K-0006vm-GH for submit@debbugs.gnu.org; Mon, 27 Apr 2020 03:21:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:53000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSy57-0006vO-6M for submit@debbugs.gnu.org; Mon, 27 Apr 2020 03:21:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37760) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSy56-00038q-KY for bug-guix@gnu.org; Mon, 27 Apr 2020 03:21:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSy54-0005qR-Oj for bug-guix@gnu.org; Mon, 27 Apr 2020 03:21:32 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:46138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSy54-0005kM-4D for bug-guix@gnu.org; Mon, 27 Apr 2020 03:21:30 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 499bml37sWz1s2Bv for ; Mon, 27 Apr 2020 09:21:27 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 499bml2HLGz1qrjk for ; Mon, 27 Apr 2020 09:21:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id MpUpY2mKd4RY for ; Mon, 27 Apr 2020 09:21:24 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-55-44.dynamic.mnet-online.de [188.174.55.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 27 Apr 2020 09:21:24 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id 6B833600B0 for ; Mon, 27 Apr 2020 09:21:53 +0200 (CEST) From: Hartmut Goebel Organization: crazy-compilers.com Message-ID: <528c0718-97ec-2b03-227f-282178dc1ae2@crazy-compilers.com> Date: Mon, 27 Apr 2020 09:21:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: none client-ip=212.18.0.10; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/27 02:46:58 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 212.18.0.10 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "import crate -r" shall create and use "proper" variable names for the package definitions it prints out and for the packages it reference. If guix commits to use variable names follow the Cargo book (see ), the importer shall create respective variables and use these names. This would easy importing packages a lot. Dummy example: $guix import crate -r h2@0.2.4 … (define-public rust-h2 …     (arguments       `(#:cargo-inputs         (("rust-bytes" ,rust-bytes)          ("rust-fnv" ,rust-fnv) Shall become $guix import crate -r h2@0.2.4 … (define-public rust-h2-0.2 …         (("rust-bytes" ,rust-bytes-0.4)          ("rust-fnv" ,rust-fnv-1) -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From unknown Thu Aug 14 18:40:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Hartmut Goebel Subject: bug#40894: closed (Should be solved by new importer) Message-ID: References: <528c0718-97ec-2b03-227f-282178dc1ae2@crazy-compilers.com> X-Gnu-PR-Message: they-closed 40894 X-Gnu-PR-Package: guix Reply-To: 40894@debbugs.gnu.org Date: Thu, 17 Dec 2020 15:27:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1608218823-21472-1" This is a multi-part message in MIME format... ------------=_1608218823-21472-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #40894: import crate: Use proper variable names which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 40894@debbugs.gnu.org. --=20 40894: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40894 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1608218823-21472-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 40894-close) by debbugs.gnu.org; 17 Dec 2020 15:26:52 +0000 Received: from localhost ([127.0.0.1]:36705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpvB6-0005ZV-Am for submit@debbugs.gnu.org; Thu, 17 Dec 2020 10:26:52 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:32776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpvAy-0005Z8-U9; Thu, 17 Dec 2020 10:26:48 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CxbSg5Lzgz1qtQH; Thu, 17 Dec 2020 16:26:43 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CxbSg3n7qz1tF6l; Thu, 17 Dec 2020 16:26:43 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 00zg3gt91SqD; Thu, 17 Dec 2020 16:26:42 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-61-230.dynamic.mnet-online.de [188.174.61.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Thu, 17 Dec 2020 16:26:42 +0100 (CET) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 59606601C1; Thu, 17 Dec 2020 16:31:26 +0100 (CET) To: 40893-close@debbugs.gnu.org, 40894-close@debbugs.gnu.org, 40895-close@debbugs.gnu.org From: Hartmut Goebel Subject: Should be solved by new importer Organization: crazy-compilers.com Message-ID: Date: Thu, 17 Dec 2020 16:26:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40894-close X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This issue is solved by the new importer. -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | ------------=_1608218823-21472-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Apr 2020 07:21:46 +0000 Received: from localhost ([127.0.0.1]:35448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSy5K-0006vm-GH for submit@debbugs.gnu.org; Mon, 27 Apr 2020 03:21:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:53000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSy57-0006vO-6M for submit@debbugs.gnu.org; Mon, 27 Apr 2020 03:21:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37760) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSy56-00038q-KY for bug-guix@gnu.org; Mon, 27 Apr 2020 03:21:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSy54-0005qR-Oj for bug-guix@gnu.org; Mon, 27 Apr 2020 03:21:32 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:46138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSy54-0005kM-4D for bug-guix@gnu.org; Mon, 27 Apr 2020 03:21:30 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 499bml37sWz1s2Bv for ; Mon, 27 Apr 2020 09:21:27 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 499bml2HLGz1qrjk for ; Mon, 27 Apr 2020 09:21:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id MpUpY2mKd4RY for ; Mon, 27 Apr 2020 09:21:24 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-55-44.dynamic.mnet-online.de [188.174.55.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 27 Apr 2020 09:21:24 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id 6B833600B0 for ; Mon, 27 Apr 2020 09:21:53 +0200 (CEST) To: bug-guix From: Hartmut Goebel Subject: import crate: Use proper variable names Organization: crazy-compilers.com Message-ID: <528c0718-97ec-2b03-227f-282178dc1ae2@crazy-compilers.com> Date: Mon, 27 Apr 2020 09:21:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: none client-ip=212.18.0.10; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/27 02:46:58 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 212.18.0.10 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "import crate -r" shall create and use "proper" variable names for the package definitions it prints out and for the packages it reference. If guix commits to use variable names follow the Cargo book (see ), the importer shall create respective variables and use these names. This would easy importing packages a lot. Dummy example: $guix import crate -r h2@0.2.4 … (define-public rust-h2 …     (arguments       `(#:cargo-inputs         (("rust-bytes" ,rust-bytes)          ("rust-fnv" ,rust-fnv) Shall become $guix import crate -r h2@0.2.4 … (define-public rust-h2-0.2 …         (("rust-bytes" ,rust-bytes-0.4)          ("rust-fnv" ,rust-fnv-1) -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | ------------=_1608218823-21472-1--