From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Becze Subject: Re: sorting Rust crates [was Re: rav1e AV1 encoder] Date: Tue, 14 Apr 2020 15:08:05 -0500 Message-ID: <397b901c-197d-3d0d-31b5-79cebefa3feb@riseup.net> References: <20200220224353.GA28976@jasmine.lan> <9e81d5d5-1f2a-3c6d-5f99-c001d1a03b7f@riseup.net> <20200402223138.GA5496@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44801) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jORqx-0000UG-2X for guix-devel@gnu.org; Tue, 14 Apr 2020 16:08:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jORqv-0006Yh-Kh for guix-devel@gnu.org; Tue, 14 Apr 2020 16:08:14 -0400 Received: from mx1.riseup.net ([198.252.153.129]:40714) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jORqv-0006Xv-CO for guix-devel@gnu.org; Tue, 14 Apr 2020 16:08:13 -0400 Received: from bell.riseup.net (unknown [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 491xPR5QdRzFfxW for ; Tue, 14 Apr 2020 13:08:11 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 491xPQ2FgdzJnC1 for ; Tue, 14 Apr 2020 13:08:09 -0700 (PDT) In-Reply-To: Content-Language: en-US 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+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org The problem should be fixed now. You can try it out about cloning `git clone https://gitlab.com/mjbecze/guix-package-sorter && cd guix-package-sorter` then do `./pre-install-env guix sort ` to sort the given file. Let me know if it works! On 4/12/20 10:22 AM, Martin Becze wrote: > I apologize I didn't see this message until now. I will look into this > today. > > On 4/2/20 5:31 PM, Leo Famulari wrote: >> On Fri, Feb 21, 2020 at 04:15:43AM -0500, Martin Becze wrote: >>> sort2.scm will sort a files exported packages alphanumerically. >> >> I'm working on packaging rav1e for Guix again and so I'm using sort2.scm >> on the big 'gnu/packages/crates-io.scm' module. >> >> One problem I noticed with sort2.scm is that inherited packages need to >> be after the package they inherit from, but this means they will not be >> alphanumerically sorted. >> >> For example, sort2.scm will put rust-bytes-0.3 before rust-bytes-0.4, >> but then the build fails, because the former inherits from the latter >> but can no longer find it. >> >