From mboxrd@z Thu Jan 1 00:00:00 1970 From: Katherine Cox-Buday Subject: Re: ASDF Builder (Common Lisp) & "package-inferred-system" Packages Date: Fri, 11 Jan 2019 09:34:44 -0600 Message-ID: <87wonb6wdn.fsf@gmail.com> References: <8736q082h8.fsf@gmail.com> <87fttzd0uo.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghype-0007hX-1J for guix-devel@gnu.org; Fri, 11 Jan 2019 10:34:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghypd-0002Hv-75 for guix-devel@gnu.org; Fri, 11 Jan 2019 10:34:50 -0500 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:44560) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghypc-0002Gw-W3 for guix-devel@gnu.org; Fri, 11 Jan 2019 10:34:49 -0500 Received: by mail-io1-xd29.google.com with SMTP id r200so12443323iod.11 for ; Fri, 11 Jan 2019 07:34:48 -0800 (PST) In-Reply-To: <87fttzd0uo.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Fri, 11 Jan 2019 10:01:35 +0100") 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.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel@gnu.org Pierre Neidhardt writes: > I've packaged a lot of Lisp packages, none of which seem to suffer > from a naming issue. This is a newer style of ASDF system. I don't think any of the things we have packaged use this style (yet). > Do you have an example in mind? I have 41 packages almost ready to go, but the only one I'm currently packaging that uses the "package-inferred-system" style is Ningle[1]. > Which string replacement are you referring to? NORMALIZE-STRING? Yes. I'm wondering why we even need to call `normalize-string' here since this is generating the string ASDF will use to search for a package, and ASDF is capable of handling `/` characters in its package names. I think we may be conflating the need for the store to remove `/` characters with ASDF's needs, but I'm not completely sure. > I'm not completely sure, but I think that in practice packages can > always specify the right ASD-FILE or SYSTEM. There could be something > missing though. This is not about specifying the ASD file; it is regarding how a system is defined within an ASD file. Please read this[2] link for more information. A single ASD file will define a package (note, not system) per file. The packages will all have the `/` character embedded in the name since it is correlating files in the system's path with packages. I cannot find a way to tell the runtime that the renamed package (in this case "ningle-main") is an alias for the real package ("ningle/main"), but it is very possible I'm missing something obvious. [1] - https://github.com/fukamachi/ningle/blob/master/ningle.asd [2] - https://www.common-lisp.net/project/asdf/asdf.html#index-Package-inferred-systems -- Katherine