From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: bug#19219: Package names with digits following dashes Date: Sat, 29 Nov 2014 21:31:22 +0100 Message-ID: <20141129203122.GA15720@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xuogf-00021G-0Y for bug-guix@gnu.org; Sat, 29 Nov 2014 15:32:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuogV-0007ji-5o for bug-guix@gnu.org; Sat, 29 Nov 2014 15:32:12 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:52199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuogV-0007jX-21 for bug-guix@gnu.org; Sat, 29 Nov 2014 15:32:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XuogU-0003VJ-I4 for bug-guix@gnu.org; Sat, 29 Nov 2014 15:32:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xuog2-00020e-PN for bug-guix@gnu.org; Sat, 29 Nov 2014 15:31:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xuofv-0007Yr-1u for bug-guix@gnu.org; Sat, 29 Nov 2014 15:31:34 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:64783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xuofu-0007YT-Od for bug-guix@gnu.org; Sat, 29 Nov 2014 15:31:26 -0500 Content-Disposition: inline List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 19219@debbugs.gnu.org Trying to rename the font-adobe100dpi package to font-adobe-100dpi (which is the correct name given our font conventions and even before), I noticed the following problem: guix build font-adobe-100dpi looks in vain for a version 100dpi of the package named font-adobe. The problem only occurs with digits following the dash; font-adobe-xdpi would work. I think we need a more sophisticated mechanism for separating package names and versions, such as this: - Try the compete string as a package name. - If it does not exist, treat the part after the last dash as a version and the part before the last dash as the name. One could continue recursively to the second to last dash and so on, but I think it would be easier to prohibit dashes as part of version names. Andreas