From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nils Gillmann Subject: Re: a GUIX_PACKAGE_PATH / modules puzzle Date: Thu, 3 May 2018 05:36:13 +0000 Message-ID: <20180503053613.dffmd6ag57x26fdt@abyayala> References: <20180501223951.whoj67yv2h3t6wyl@abyayala> <87bmdxwc6y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fE6uH-0000Q3-Uw for guix-devel@gnu.org; Thu, 03 May 2018 01:35:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fE6uB-0005TG-51 for guix-devel@gnu.org; Thu, 03 May 2018 01:35:53 -0400 Received: from conspiracy.of.n0.is ([2a01:4f8:1c0c:7ad0::1]:50384) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fE6uA-0005SR-NB for guix-devel@gnu.org; Thu, 03 May 2018 01:35:47 -0400 Content-Disposition: inline In-Reply-To: <87bmdxwc6y.fsf@gmail.com> 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: Chris Marusich Cc: guix-devel@gnu.org Chris Marusich transcribed 3.0K bytes: > Nils Gillmann writes: > > > Hi, > > > > I'm not sure if guile-users / -dev liste is more appropriate. If it is, let me know. > > > > I'm currently still using GUIX_PACKAGE_PATH until I got my layout all set up. > > There's an issue that I can't seem to get rid of, I'll try my best to describe it now: > > > > I have package definitions in 2 repositories (3 to be precise, +1 WIP repo). Both follow > > the exact same layout that can still be understood by Guix and GPP (GUIX_PACKAGE_PATH). > > > > Repository 1: /home/user/src/infotropique/ports > > Repository 2: /home/user/src/infotropique/pkgs > > > > The modules are in similar named subfolders, following the layout $REPONAME $CATEGORY $NAME NAME. > > > > I only switched to this recently, previously the "CATEGORY NAME NAME" was located in the root of > > the reository. Both repos worked this way. > > > > After the transition to the new layout, ports works. > > pkgs however is throwing errors at me for days. I've tried moving all but one module > > out of the repo, same error. It was a simple easy, no repo-internal dependencies, module. > > The error is always similar to https://ftp.n0.is/pub/pkgs-error.txt > > > > I can not share the actual repo at this moment on this mailinglist, but maybe the > > repl message is something that someone could give me a hint, even if it's just a > > tiny bit of a "read this manpage" or something like that would help. I've tried > > debugging this for days and any help's welcome. > > Could this error be coming from the scheme-files procedure in (guix > discovery)? It looks like that's the only place where fold-right is > invoked in that module, and it seems to match up with the stack trace, > unless I'm misreading it (which is possible). You might find it useful > to insert some pk statements into that code to try to figure out what is > being evaluated as "unspecified". My guess, which could be wrong, is > that perhaps scandir* is returning an unspecified value unintentionally > at some point? Someone with more experience debugging Guile code can > probably provide better advice. > > -- > Chris What I found is that: (pkgs sys-kernel) providing common logics for (pkgs sys-kernel linux linux) [and planned, (pkgs sys-kernel linux-libre)] and (ports sysutils firmware some-firmware) as well as (pkgs sys-kernel linux-headers) created a problem. This, moving the definitions from the old linux module I had out to a common module, was one of the few breaking changes. I wasn't able to resolve this as amirouche told me on irc. I want to remove some last bits of these imports tonight. I was able to update my system with the modules in another place and imports corrected. What's weird to me is that even after cleaning the ccache of guile in the respective locations a package that isn't involved in the new change, like for example numactl, as the only package definition in this place throws errors. In another location it works. I didn't come up with the name "pkgs" for the root of the repository yesterday, I have used this for a couple of months in a working state. Anyways, in which section of the guile Manual would I find "pk"? I've done surprisingly little debugging with Guile itself so far.