Subject: bug#75237: Packaging ghostty terminal

From: "Frank J. Cameron" <[email-masked]>
Date: Fri, 10 Jan 2025 21:21:49 +0000

On Thu, Jan 9, 2025, at 11:10 PM, Frank J. Cameron wrote:
> error: sub-compilation of libcxx failed
> /gnu/store/...-zig-pkgdir-xcode_frameworks-.../include/i386/_types.h:48:33: 
> note: typedef redefinition with different types ('long long' vs 'long')
>     [...]
>     /gnu/store/...-glibc-2.39/include/bits/types.h:44:25: note: 
> previous definition is here
>     [...]
> Build Summary: 78/81 steps succeeded; 1 failed (disable with --summary 
> none)

https://gitlab.com/-/snippets/4792310/raw/main/terminals.scm

I don't know how I fixed it :-), but it builds now (symlinking pkgdir):

$ guix gc -D /gnu/store/*-zig-*
$ guix gc -D /gnu/store/*-ghostty-*
$ curl -LO https://gitlab.com/-/snippets/4792310/raw/main/terminals.scm

$ guix build -f terminals.scm 
[...]
building /gnu/store/kb6aq3hnhikgibrcvf239z9aiz08w8z7-zig-module-breakpad-12207fd37bb8251919c112dcdd8f616a491857b34a451f7e4486490077206dc2a1ea.drv...
building /gnu/store/32mf5g5d95q246bmjh7mnj81a3rfn40x-zig-module-cimgui-1220061d44ec37e6a240b31061c87cece7026d3dde885125e670f0f2d2811f40c122.drv...
building /gnu/store/mjvq1zg38xbhq105zak9hzp9cpw48fyk-zig-module-fontconfig-12201149afb3326c56c05bb0a577f54f76ac20deece63aa2f5cd6ff31a4fa4fcb3b7.drv...
building /gnu/store/m7fypjbibmmymi9n3fw1y9awa8lcq0n2-zig-module-freetype-1220b81f6ecfb3fd222f76cf9106fecfa6554ab07ec7fdc4124b9bb063ae2adf969d.drv...
building /gnu/store/9x3xfm8rc04h076ddsqbsz492ib1dlkb-zig-module-glfw-1220736fa4ba211162c7a0e46cc8fe04d95921927688bff64ab5da7420d098a7272d.drv...
building /gnu/store/v7dnnzkykc5g2raz3ijcmy8hkgrsz0bq-zig-module-glslang-12201278a1a05c0ce0b6eb6026c65cd3e9247aa041b1c260324bf29cee559dd23ba1.drv...
building /gnu/store/64ww8f226r3q21g2233b12v3c8n88ib3-zig-module-harfbuzz-1220b8588f106c996af10249bfa092c6fb2f35fbacb1505ef477a0b04a7dd1063122.drv...
building /gnu/store/1z1y4dwr0hpcdi0cmlpg1prr67610214-zig-module-highway-12205c83b8311a24b1d5ae6d21640df04f4b0726e314337c043cde1432758cbe165b.drv...
building /gnu/store/qr2rgp8ym0hqrimrsg0icicjvjkml9q6-zig-module-imgui-1220bc6b9daceaf7c8c60f3c3998058045ba0c5c5f48ae255ff97776d9cd8bfc6402.drv...
building /gnu/store/xw96qj8q1b23199r21n4bym05pxavdjx-zig-module-iterm2_themes-1220cc25b537556a42b0948437c791214c229efb78b551c80b1e9b18d70bf0498620.drv...
building /gnu/store/5gd742ac6ji7q5rdq2n1a43igv25azy9-zig-module-libpng-1220aa013f0c83da3fb64ea6d327f9173fa008d10e28bc9349eac3463457723b1c66.drv...
building /gnu/store/l4224lcjq0yqmh9zjd6dssqw54207bdw-zig-module-libxev-12206029de146b685739f69b10a6f08baee86b3d0a5f9a659fa2b2b66c9602078bbf.drv...
building /gnu/store/rm2n69yad36fll389gidpr5png3hfcah-zig-module-libxml2-122032442d95c3b428ae8e526017fad881e7dc78eab4d558e9a58a80bfbd65a64f7d.drv...
building /gnu/store/cm68p0hd30i9a4yggs1in55sqxkbihsi-zig-module-mach_glfw-12206ed982e709e565d536ce930701a8c07edfd2cfdce428683f3f2a601d37696a62.drv...
building /gnu/store/dk8nhr2ycvzjycj2kd6bwf6z4ikzy13i-zig-module-oniguruma-1220c15e72eadd0d9085a8af134904d9a0f5dfcbed5f606ad60edc60ebeccd9706bb.drv...
building /gnu/store/h4md05dxzkpqhxdyly861pcqg3dhsynf-zig-module-sentry-1220446be831adcca918167647c06c7b825849fa3fba5f22da394667974537a9c77e.drv...
building /gnu/store/aaf8hy5l2lbm3f05479n7nacsr6gp3qm-zig-module-spirv_cross-1220fb3b5586e8be67bc3feb34cbe749cf42a60d628d2953632c2f8141302748c8da.drv...
building /gnu/store/ffqcnf91zn2vzvl86yzkm8xn2kjm31z4-zig-module-utfcpp-1220d4d18426ca72fc2b7e56ce47273149815501d0d2395c2a98c726b31ba931e641.drv...
building /gnu/store/64fibns1g2nvl4scfnzmljb5hlkqz3vl-zig-module-vaxis-12200df4ebeaed45de26cb2c9f3b6f3746d8013b604e035dae658f86f586c8c91d2f.drv...
building /gnu/store/1hd71i4cby3dblvkvik2k9pyqn0zv6wv-zig-module-vaxis-1220c72c1697dd9008461ead702997a15d8a1c5810247f02e7983b9f74c6c6e4c087.drv...
building /gnu/store/vc0zdnvgcy3axqclrwdcxr8rzz4b1h0f-zig-module-vulkan_headers-122004bfd4c519dadfb8e6281a42fc34fd1aa15aea654ea8a492839046f9894fa2cf.drv...
building /gnu/store/7jdzd10apa2lf9dh2478kgfqqi8hcjjz-zig-module-wayland_headers-1220b3164434d2ec9db146a40bf3a30f490590d68fa8529776a3138074f0da2c11ca.drv...
building /gnu/store/hva6qdwcfs30yrcx9zibcjssmpmjabm3-zig-module-wuffs-12200984439edc817fbcbbaff564020e5104a0d04a2d0f53080700827052de700462.drv...
building /gnu/store/3sflpq9pa5vhs8ksz9b36x6sn9751h2i-zig-module-x11_headers-122089c326186c84aa2fd034b16abc38f3ebf4862d9ae106dc1847ac44f557b36465.drv...
building /gnu/store/dqdl8pd6b25a4xzjc56m98kkz57lh32w-zig-module-xcode_frameworks-12202adbfecdad671d585c9a5bfcbd5cdf821726779430047742ce1bf94ad67d19cb.drv...
building /gnu/store/larg3sa3c8i7fymzbkzyvp191z4qx9d2-zig-module-z2d-12201f0d542e7541cf492a001d4d0d0155c92f58212fbcb0d224e95edeba06b5416a.drv...
building /gnu/store/l7h110phpki3h4a30c62271g3nr8i70w-zig-module-zf-1220edc3b8d8bedbb50555947987e5e8e2f93871ca3c8e8d4cc8f1377c15b5dd35e8.drv...
building /gnu/store/k6dvnlb4iwb3dd31h26i1jl2jfx9fikj-zig-module-zg-122055beff332830a391e9895c044d33b15ea21063779557024b46169fb1984c6e40.drv...
building /gnu/store/xv0s9i2m4jjpqv61c0x4ad98lf687l4n-zig-module-zig_js-12205a66d423259567764fa0fc60c82be35365c21aeb76c5a7dc99698401f4f6fefc.drv...
building /gnu/store/4lrdv1pnxa2clpdxw78yvi81mwimf5ip-zig-module-zig_objc-1220e17e64ef0ef561b3e4b9f3a96a2494285f2ec31c097721bf8c8677ec4415c634.drv...
building /gnu/store/1drfr6mf2lkxajj4yybryz1p10a0iv95-zig-module-zigimg-1220dd654ef941fc76fd96f9ec6adadf83f69b9887a0d3f4ee5ac0a1a3e11be35cf5.drv...
building /gnu/store/pycym7v0mv9s7cr454k86zgg3wrc083q-zig-module-ziglyph-12207831bce7d4abce57b5a98e8f3635811cfefd160bca022eb91fe905d36a02cf25.drv...
building /gnu/store/p0cr752q6yjdy59cxp3djfjg6ab31kgg-zig-module-zlib-1220fed0c74e1019b3ee29edae2051788b080cd96e90d56836eea857b0b966742efb.drv...
building /gnu/store/930mxl409i3w33r77fj2g6pbjicph676-ghostty-1.0.1.drv...
The following derivation will be built:
  /gnu/store/q8dr343h6m84ha29dapsc081yavq5xnc-profile.drv
[...]

$ which ghostty
/home/user/.guix-profile/bin/ghostty
$ realpath $(which ghostty)
/gnu/store/a6gjp1168zl3vh5hgyln0m136b96i69v-ghostty-1.0.1/bin/ghostty