From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: sorting Rust crates [was Re: rav1e AV1 encoder] Date: Thu, 2 Apr 2020 18:31:38 -0400 Message-ID: <20200402223138.GA5496@jasmine.lan> References: <20200220224353.GA28976@jasmine.lan> <9e81d5d5-1f2a-3c6d-5f99-c001d1a03b7f@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36596) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jK8NJ-00030Y-To for guix-devel@gnu.org; Thu, 02 Apr 2020 18:31:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jK8NI-0007GD-W6 for guix-devel@gnu.org; Thu, 02 Apr 2020 18:31:49 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:40733) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jK8NI-0007Cw-Ln for guix-devel@gnu.org; Thu, 02 Apr 2020 18:31:48 -0400 Content-Disposition: inline In-Reply-To: <9e81d5d5-1f2a-3c6d-5f99-c001d1a03b7f@riseup.net> 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: Martin Becze Cc: guix-devel@gnu.org 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.