Re: Bootstrappable Release Build of Rust Application

2024-04-17 Thread Philip McGrath
Hi, On Wed, Apr 17, 2024, at 6:28 AM, Antoine Poinsot wrote: > Good morning all, > > I've been working on using Guix for the reproducible builds of my Rust > software. My main question is about linking my program against an older > glibc version (or better yet, statically linking it against musl

Using inferiors

2023-07-14 Thread Philip McGrath
I have what I think would be a simple use of inferiors, but it is failing to build. I'd like to understand both (1) why and (2) how to get a more informative error message. ``` philip@bastet:/tmp$ cat demo.scm (use-modules (guix channels) (guix inferior) (ice-9 match)) (define glibc-2.23-ch

Guix Home for non-store symlinks?

2023-07-08 Thread Philip McGrath
Is anyone using Guix Home to set up symlinks to arbitrary locations, as opposed to just paths under /gnu/store/? For example, on my systems I create "~/.emacs.d" as a symlink to "~/dotfiles/emacs.d" (which is under version control): I'd like to have Guix Home set up such symlinks for me. (I kno

How to find what grafts have been applied? [Was: Racket REPL not working]

2023-07-05 Thread Philip McGrath
chnat wrote: > Sorry, I would not know how to find that out. > > "Philip McGrath" writes: > >> On Sun, Jul 2, 2023, at 12:12 PM, Chris Keschnat wrote: >>> This works >>> >>> ck@brak ~ $ guix shell --no-grafts racket -- racket >>> --versio

Re: Racket REPL not working

2023-07-02 Thread Philip McGrath
On Sun, Jul 2, 2023, at 12:12 PM, Chris Keschnat wrote: > This works > > ck@brak ~ $ guix shell --no-grafts racket -- racket > --version > Welcome to Racket v8.8 [cs]. >> > That's very useful! I'm not exactly sure how to do this, but can we determine which grafts are otherwise being applied to

Re: Racket REPL not working

2023-07-02 Thread Philip McGrath
On Sat, Jul 1, 2023, at 10:31 PM, Philip McGrath wrote: > On Sat, Jul 1, 2023, at 7:41 AM, Chris Keschnat wrote: >> "Philip McGrath" writes: >>> Are any of you able to reproduce the problem consistently at this point? >> >> Jup. I can provide info if anyo

Re: Racket REPL not working

2023-07-01 Thread Philip McGrath
On Sat, Jul 1, 2023, at 7:41 AM, Chris Keschnat wrote: > "Philip McGrath" writes: >> Are any of you able to reproduce the problem consistently at this point? > > Jup. I can provide info if anyone wants/asks, but I have no idea how to > debug this myself unfortunatel

Re: Racket REPL not working

2023-06-30 Thread Philip McGrath
Hi, On Fri, Jun 30, 2023, at 12:52 AM, Chris Keschnat wrote: > Hi, > to me/on my machine this seems to be some environment issue. > > Locations are the same: > #+begin_src sh > ck@brak ~ $ guix shell racket -- which racket > /gnu/store/36ckdvyykaz3y5xbcvsbjqj4c7sazgsm-profile/bin/racket > >

Re: Failed to autoload read-substitute-urls in (guix scripts discover)

2023-06-22 Thread Philip McGrath
On Fri, Jun 23, 2023, at 2:50 AM, Vagrant Cascadian wrote: > On 2023-06-23, Philip McGrath wrote: >> On Thu, Jun 22, 2023, at 12:44 PM, Vagrant Cascadian wrote: >>> On 2023-06-21, Philip McGrath wrote: >>>> On Fri, Jun 9, 2023, at 2:43 PM, Vagrant Cascadian wrot

Re: Failed to autoload read-substitute-urls in (guix scripts discover)

2023-06-22 Thread Philip McGrath
On Thu, Jun 22, 2023, at 12:44 PM, Vagrant Cascadian wrote: > On 2023-06-21, Philip McGrath wrote: >> On Fri, Jun 9, 2023, at 2:43 PM, Vagrant Cascadian wrote: >>> On 2023-06-07, Philip McGrath wrote: >> I forgot earlier that I had used `sudo systemctl edit >&g

Re: Failed to autoload read-substitute-urls in (guix scripts discover)

2023-06-21 Thread Philip McGrath
Hi, On Fri, Jun 9, 2023, at 2:43 PM, Vagrant Cascadian wrote: > On 2023-06-07, Philip McGrath wrote: >> On a Debian Bookworm system, most Guix commands are failing for me with >> errors like the following unless I supply --no-substitutes: >> ``` >> philip@avalon:~$ gui

Failed to autoload read-substitute-urls in (guix scripts discover)

2023-06-07 Thread Philip McGrath
On a Debian Bookworm system, most Guix commands are failing for me with errors like the following unless I supply --no-substitutes: ``` philip@avalon:~$ guix build hello substitute: ;;; Failed to autoload read-substitute-urls in (guix scripts discover): substitute: ;;; no code for module (guix sc

Re: Alternatives to --emulate-fhs on foreign distros

2023-05-20 Thread Philip McGrath
On Friday, April 21, 2023 2:35:30 PM EDT Kyle wrote: > Its kind of hard to test. The easiest I have managed has been to see that I > don't get the error with --emulate-fhs in my call, and the script that > fails starts with: > > #!/usr/bin/env txr > > To simplify things, I made a self contained t

Re: How to enable server discovery in foreign distro?

2023-05-19 Thread Philip McGrath
On Friday, May 19, 2023 4:18:01 PM EDT Rodrigo Morales wrote: > > The file > `/etc/systemd/system/multi-user.target.wants/guix-daemon.service' was > a symbolic link to `/usr/lib/systemd/system/guix-daemon.service' and, > for that reason, I ended up editing > `/usr/lib/systemd/system/guix

Re: Need some help packaging parts of a scientific workflow

2023-03-23 Thread Philip McGrath
for `guix build -f`, then answer your specific questions. ``` ;; SPDX-License-Identifier: (CC0-1.0 OR (Apache-2.0 OR MIT)) ;; SPDX-FileCopyrightText: Philip McGrath (use-modules (gnu packages racket) (guix build-system copy) (guix gexp) (guix packages)) (package (name "racket-hello") (ve

Re: Icecat and ungoogled chromium in a container

2023-03-03 Thread Philip McGrath
Hi, On Wed, Mar 1, 2023, at 11:30 AM, Gottfried wrote: > (I am using Icecat with the Tor browser) I’m not sure I understand your configuration, and I rarely use Tor myself, but I wanted to make sure you’re aware that changing even innocuous-seeming settings can expose you to fingerprinting risk

Re: Using Makefile to run guix shell?

2022-12-09 Thread Philip McGrath
On Wed, Dec 7, 2022, at 10:26 AM, Peter Polidoro wrote: >> And then all you need to do is run ``guix shell'', and it will >> automatically >> pick up that manifest or package file. > > That works well for just the "guix shell" command, but what if I > want shortcuts to a whole set of commands? >

Re: translation programm

2022-11-19 Thread Philip McGrath
Hi, On Sat, Nov 19, 2022, at 7:55 AM, Wojtek Kosior via wrote: >> > > Is there a translation programm in Guix, you can use for offline >> > > translation? >> > >> >> > If you want to edit translation files in .po file format (as used by >> > Guix), I prefer https://www.emacswiki.org/emacs/Po

Re: make clean-go breaks my build environment

2022-11-02 Thread Philip McGrath
On Wed, Nov 2, 2022, at 3:48 AM, jgart wrote: > On Wed, 02 Nov 2022 08:20:09 +0100 Ricardo Wurmus wrote: >> >> jgart writes: >> >> > after running `make clean-go` the build gets consistently stuck on >> > this message: >> > >> > WARNING: Use of `load' in declarative module (guix ui). Add >> >

Re: Don't Unquote Me

2022-10-14 Thread Philip McGrath
On Friday, October 14, 2022 3:32:55 PM EDT ( wrote: > On Fri Oct 14, 2022 at 7:38 PM BST, jgart wrote: > > > Nope; they're special built-in forms like ``lambda'' and ``define''. > > > > So, they are ordinary functions defined in guile? > > > > Or by built-ins you mean that they are implemented in

Re: Understanding the Guix approach when language package managers are around

2022-09-16 Thread Philip McGrath
Hi, On 9/16/22 09:15, Daniel Sockwell wrote: But looking into option 2 (packaging Chrysalis) doesn't seem promising either. My understanding is that packaging Chrysalis involves listing its dependencies as `inputs`. And that could be hard. Chrysalis has ~40 dependencies most of which aren't pa

Re: Elm and Guix

2022-09-13 Thread Philip McGrath
Hi, On 9/13/22 20:27, jgart wrote: From: jgart To: Guix Help Cc: Philip McGrath Bcc: Subject: Using elm with Guix Reply-To: In-Reply-To: Hi, I'v been trying to use elm with Guix at the repl and by compiling a src/Main.elm file and elm doesn't find any of the Guix-installed de

Re: GIO_EXTRA_MODULES breaking foreign-distro programs

2022-08-27 Thread Philip McGrath
Hi, On Fri, Aug 26, 2022, at 12:51 PM, zimoun wrote: > Hi, > > On mar., 09 août 2022 at 17:27, Philip McGrath > wrote: > >> I plan to track down whatever package added GIO_EXTRA_MODULES to my profile >> and >> remove it for now, but that seems like a pretty

Re: Packaging Idris2

2022-08-21 Thread Philip McGrath
Hi, On Sun, Aug 21, 2022, at 8:31 AM, zimoun wrote: > Hi, > > Some quick comments. :-) > > On Sun, 21 Aug 2022 at 11:39, "(" wrote: > >> Yes, that's true -- however, it's still not the complete, readable >> source code. (It presumably doesn't have comments either, which greatly >> aid understandi

GIO_EXTRA_MODULES breaking foreign-distro programs

2022-08-09 Thread Philip McGrath
Hi, I've encountered an issue with GIO_EXTRA_MODULES from my Guix profile preventing binaries from my foreign distro (Kubuntu 22.04) from running. The initial symptom was that running e.g. `/usr/bin/flatpak list` would terminate with the error: > /usr/bin/flatpak: symbol lookup error: > /gnu/s

Re: Want to test Racket/Chez on powerpc64le?

2022-08-07 Thread Philip McGrath
Hi, On Mon, Aug 1, 2022, at 5:02 PM, Efraim Flashner wrote: > On Mon, Aug 01, 2022 at 03:46:21PM -0400, Philip McGrath wrote: >> Hi folks, >> >> I have a patch series at https://gitlab.com/philip1/guix-patches/-/tree/zuo >> for the Racket 8.5.900 release candidate

Want to test Racket/Chez on powerpc64le?

2022-08-01 Thread Philip McGrath
Hi folks, I have a patch series at https://gitlab.com/philip1/guix-patches/-/tree/zuo for the Racket 8.5.900 release candidate for the imminent Racket 8.6 release.[1] The patch series also enables Racket CS and the 'chez-scheme-for-racket' package on systems they haven't supported until now, su

Re: Debugging cross-compilation dependencies

2022-07-28 Thread Philip McGrath
On Sat, Jul 23, 2022, at 7:30 AM, Philip McGrath wrote: > Hi Guix, > > For the upcoming Racket 8.6 release, I've been trying to get the > Chez-Scheme–based implementation working for architectures without > native code-generation backends [1] and initial support for > c

Debugging cross-compilation dependencies

2022-07-23 Thread Philip McGrath
Hi Guix, For the upcoming Racket 8.6 release, I've been trying to get the Chez-Scheme–based implementation working for architectures without native code-generation backends [1] and initial support for cross-compilation. (Full support for cross-compilation will come after there is a `racket-buil

Re: Finding Dependencies at Run Time

2022-07-14 Thread Philip McGrath
On Thu, Jul 14, 2022, at 4:25 AM, Ricardo Wurmus wrote: > Peter Polidoro writes: > >> Your explanations are very helpful, thank you, and your links made me >> realize that devel version of the manual has lots of information that >> I could not find in the stable version of the manual. > > We recom

Re: Broken KDE initialization with `guix home`

2022-05-19 Thread Philip McGrath
Hi, On 5/13/22 13:41, Philip McGrath wrote: Hi, I'm trying to start using `guix home` on a fairly fresh install of Kubuntu 22.04 with SDDM and the KDE Plasma Wayland session. I'm running in to some problems when the session starts up: I suspect some environment variables may not

Broken KDE initialization with `guix home`

2022-05-13 Thread Philip McGrath
Hi, I'm trying to start using `guix home` on a fairly fresh install of Kubuntu 22.04 with SDDM and the KDE Plasma Wayland session. I'm running in to some problems when the session starts up: I suspect some environment variables may not be getting set when they need to be, but the symptoms are

Re: glibc-utf8-locales

2022-03-27 Thread Philip McGrath
Hi, On Tuesday, March 8, 2022 10:02:25 AM EST Simon Josefsson via wrote: > tis 2022-03-08 klockan 10:28 + skrev Tobias Geerinckx-Rice: > > Hullo Simon, > > > > Simon Josefsson via wrote: > > > First, I wonder if this is optimal. There must be many machines > > > (servers and embedded) where

Re: How to add /bin/sh to the build environment

2021-11-08 Thread Philip McGrath
(I wrote my earlier reply before I saw Leo's.) On 11/8/21 17:23, Leo Famulari wrote: It will be necessary to fix this issue in the SML/NJ package definition (I think you've done this in a followup patch) Is this , or somewhere else? Guix does not accept pac

Re: How to add /bin/sh to the build environment

2021-11-08 Thread Philip McGrath
Hi, On 11/8/21 15:19, Foo Chuan Wei wrote: * Part of the build process relies on programs written in Standard ML. * The part written in Standard ML uses a function from the SML Basis Library: `OS.Process.system`. * `OS.Process.system` will always use /bin/sh. This is hardcoded. I cannot cha

Re: Getting Guix System to use llvmpipe

2021-10-12 Thread Philip McGrath
On 10/12/21 4:09 PM, raingloom wrote: Just a hunch but maybe you could blacklist the broken firmware on the kernel command line arguments. I think it's something like modprobe.blacklist=radeon,amdgpu? Sorry, I can't look into it more right now, but that should give you some keywords to search for

Getting Guix System to use llvmpipe

2021-10-12 Thread Philip McGrath
Hi folks, I'm trying to install Guix System on real hardware for the first time, and I'm having some graphics trouble. The machine has an older Asus M5A78L-M/USB3 motherboard with an onboard Radeon HD 3000 GPU---the R600 family, IIUC, so covered by the `radeon` driver rather than `amdgpu`. I

Re: No ethernet service during install

2021-08-02 Thread Philip McGrath
On 8/2/21 11:15 AM, Leo Famulari wrote:> I believe this is the Linux configuration option / driver: https://cateee.net/lkddb/web-lkddb/BNX2.html However, since it appears that this driver is not free software, linux-libre will have disabled it and it won't be supported within GNU Guix. To be