Hi Guix,

I've got the start of a Guix package build for the new [Ghostty terminal 
emulator], but it gets stuck when the zig-build tries fetch some dependencies, 
with what I think is a DNS (!) issue:
,----
|     ....
|       starting phase `patch-generated-file-shebangs'
|   phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
|   starting phase `build'
|   running: ("zig" "build" "--prefix" "" "--prefix-lib-dir" "lib" 
"--prefix-exe-dir" "bin" "--prefix-include-dir" "include" "--verbose" 
"-Dtarget=x86_64-linux-gnu" "-j8")
|   /tmp/guix-build-ghostty-1.0.1.drv-0/source/build.zig.zon:8:20: error: 
unable to connect to server: TemporaryNameServerFailure
|   /tmp/guix-build-ghostty-1.0.1.drv-0/source/build.zig.zon:17:20: error: 
unable to connect to server: TemporaryNameServerFailure
|   /tmp/guix-build-ghostty-1.0.1.drv-0/source/build.zig.zon:21:20: error: 
unable to connect to server: TemporaryNameServerFailure
|   /tmp/guix-build-ghostty-1.0.1.drv-0/source/build.zig.zon:25:20: error: 
unable...
|   [a number of similar errors]
|   error: in phase 'build': uncaught exception:
| %exception #<&invoke-error program: "zig" arguments: ("build" "--prefix" "" 
"--prefix-lib-dir" "lib" "--prefix-exe-dir" "bin" "--prefix-include-dir" 
"include" "--verbose" "-Dtarget=x86_64-linux-gnu" "-j8") exit-status: 1 
term-signal: #f stop-signal: #f> 
| phase `build' failed after 0.2 seconds
| .....
`----
I can see a similar issue discussed at 
<https://github.com/ziglang/zig/issues/14636>

With one of the fixes being "works after changing DNS servers from my router to 
8.8.8.8 and 8.8.4.4" 
[<https://github.com/ziglang/zig/issues/14636#issuecomment-1894254834>], and I 
note that the Guix `/etc/resolv.conf' points at my local network/router.

I'm not sure what the best workaround is for this. (I'm not even sure how to 
temporarily change my local DNS resolver on Guix to see if I can get it to 
build locally, assuming that a similar workaround might work as for 'floooh' on 
Ubuntu.)

best,
 —Benjamin
 --
 '(Dr Benjamin Slade (he/him)
     (website . <https://lambda-y.net>)     
     `(pgp_fp: ,(B20E 444C FA80 B5F8 15FA  4AD8 6FBF CD68 3B05 2B84))
       "sent by [mu4e] 1.12.8 in [Emacs] 30.0.92 with [org-msg] on [GNU Guix] 
([Linux])")


[Ghostty terminal emulator] <https://ghostty.org>

[mu4e] <https://www.djcbsoftware.nl/code/mu/mu4e.html>

[Emacs] <https://www.gnu.org/software/emacs/>

[org-msg] <https://github.com/jeremy-compostella/org-msg>

[GNU Guix] <https://guix.gnu.org/>

[Linux] <https://opensource.com/resources/linux>

Reply via email to