From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Becze Subject: Re: sorting Rust crates [was Re: rav1e AV1 encoder] Date: Sun, 12 Apr 2020 10:22:49 -0500 Message-ID: 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]:37818) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNeRi-0005tZ-Ah for guix-devel@gnu.org; Sun, 12 Apr 2020 11:22:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNeRh-0005uP-4N for guix-devel@gnu.org; Sun, 12 Apr 2020 11:22:53 -0400 Received: from mx1.riseup.net ([198.252.153.129]:45170) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jNeRg-0005u3-SQ for guix-devel@gnu.org; Sun, 12 Apr 2020 11:22:53 -0400 In-Reply-To: <20200402223138.GA5496@jasmine.lan> 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: Leo Famulari Cc: guix-devel@gnu.org 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. >