From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id f/B2Fsjipl9IdgAA0tVLHw (envelope-from ) for ; Sat, 07 Nov 2020 18:09:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oGzDEcjipl8ZXAAA1q6Kng (envelope-from ) for ; Sat, 07 Nov 2020 18:09: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 1B85094011C for ; Sat, 7 Nov 2020 18:09:11 +0000 (UTC) Received: from localhost ([::1]:54658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbSeE-0000hR-Ts for larch@yhetil.org; Sat, 07 Nov 2020 13:09:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbSe5-0000hF-LL for guix-devel@gnu.org; Sat, 07 Nov 2020 13:09:01 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:60290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbSe3-0007c6-FB for guix-devel@gnu.org; Sat, 07 Nov 2020 13:09:01 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CT4yH1RM2z1qs0H for ; Sat, 7 Nov 2020 19:08:55 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CT4yH1GcDz1qvhF for ; Sat, 7 Nov 2020 19:08:55 +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 LS03-yCSmVXs for ; Sat, 7 Nov 2020 19:08:54 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-48-251.dynamic.mnet-online.de [188.174.48.251]) (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 ; Sat, 7 Nov 2020 19:08:54 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id B2054600A8 for ; Sat, 7 Nov 2020 19:09:15 +0100 (CET) To: Guix-devel From: Hartmut Goebel Subject: Anybody please help improving rust crates importer Organization: crazy-compilers.com Message-ID: <365d7bce-f986-ba52-26e2-9e75233b363f@crazy-compilers.com> Date: Sat, 7 Nov 2020 19:08:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: none client-ip=212.18.0.9; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/07 13:08:55 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: QP2RMWNzCNU9 Hi, can anybody please help improving the crates importer? My guile skills are far to poor and my time is to limited. Help is appreciated! Why the crates importer needs to be improved rust is still an young language and many rust packages (crates) still have 0.x versions. Also crates use semantic versioning and describe dependencies the same way. Thus, when importing or updating a package, the packager has to validate *every* dependency manually. To give you a number: When updating seqouia-pgp, one new dependency was added, which introduced 151 dependencies - each of which need to be checked and adopted *manually*. How the crates importer needs to be improved * Automatically add the semantic version base to the package's variable name (e.g. rust-aaa-1, rust-aaa-0.7). This is stupid work, currently to be done manually. Anyhow, this should be easy to implement. * When creating the package sexp, refer to each dependency using its semantic versioned variable name. This is stupid work, currently to be done manually. Anyhow, this should be easy to implement, once the next point is done. * When looking up dependencies, follow the semantic version requirement. Looking this up manually is the most elaborate, stupid work - and it is demotivating. * When checking whether a dependency is already packaged, take the semantic version into account. This is another demotivating, elaborate work, done by the computer much faster ans less error-prone. Anybody taking up this job? I can provide more details, e.g. links, API end-points, etc. (Side-note: I'm not a rust developer, I'm just trying to make sequoia-pgp and pEp available for guix.) -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |