Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

itch: build from source #365210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pluiedev
Copy link
Contributor

electron-packager was a pain to figure out. Please don't subject me to this ever again.

Part of #296939

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Dec 14, 2024
@pluiedev pluiedev force-pushed the push-pxzwlpumwrno branch 2 times, most recently from 01f12d9 to 7142647 Compare December 14, 2024 16:57
@github-actions github-actions bot added 10.rebuild-darwin: 1-10 and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin labels Dec 14, 2024
@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Dec 15, 2024
@ofborg ofborg bot requested a review from pasqui23 December 15, 2024 04:27
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1 10.rebuild-linux: 1 labels Dec 15, 2024
@pasqui23
Copy link
Contributor

This gives me the following error:

; nix run '.#itch'
18:51:30.579 INFO [email protected] on [email protected] in production
18:51:30.630 DEBUG (m/reac/updater) Skipping game update check as requested per environment variable
Gtk-Message: 19:51:30.674: Failed to load module "appmenu-gtk-module": 'gtk_module_display_init': /run/current-system/sw/lib/gtk-3.0/modules/libwindow-decorations-gtk-module.so: undefined symbol: gtk_module_display_init
18:51:31.045 DEBUG (m/net/register-itch-protocol) Registering itch: protocol for session with user agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) itch/26.1.9 Chrome/130.0.6723.152 Electron/33.3.0 Safari/537.36
18:51:31.154 INFO (m/reac/preboot) preboot ran in 112.00ms
18:51:31.156 DEBUG (m/reac/open-at-login) Updating login item settings, open=false, hidden=false
18:51:31.157 DEBUG (m/reac/open-at-login) Copying /usr/share/applications/io.itch.itch.desktop => /home/me/.config/autostart/io.itch.itch.desktop
18:51:31.158 DEBUG (m/reac/winds) Waiting on root window to dispatch boot
18:51:31.976 INFO (m/reac/i18n) Language settings: preference undefined, sniffed it, fallback en
18:51:31.980 DEBUG (m/reac/locales) Reading local locale file /nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/src/static/locales/it.json
18:51:31.984 DEBUG (m/reac/locales) Reading remote locale file /nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/src/static/locales/it.json
18:51:32.202 INFO (🔧 setup) Setup starting...
18:51:32.203 INFO (🔧 setup) Creating broth manager
18:51:32.204 INFO (🔧 setup) Ensuring broth dependencies, for startup
18:51:32.205 DEBUG (🔧 setup) Package (itch) got version prefix
18:51:32.205 DEBUG (m/reac/locales) Reading local locale file /nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/src/static/locales/en.json
18:51:32.207 DEBUG (m/reac/locales) Reading remote locale file /nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/src/static/locales/en.json
18:51:32.208 INFO (📦 butler) No chosen version, attempting install...
18:51:32.208 DEBUG (📦 butler) Trying to satisfy semver constraint (^15.20.0)
18:51:32.208 DEBUG (📦 butler) GET (https://broth.itch.zone/butler/linux-amd64/versions)
18:51:32.209 DEBUG (r) HTTP get https://broth.itch.zone/butler/linux-amd64/versions
18:51:32.541 DEBUG (r) Got HTTP 200, content-length: 0 B
18:51:32.547 INFO (📦 butler) Latest is (15.24.0)
18:51:32.566 WARN (📦 butler) Sanity check failed: spawn /home/me/.config/itch/broth/butler/versions/15.24.0/butler ENOENT
18:51:32.569 INFO (📦 butler) Downloading (butler)@(15.24.0)
18:51:32.569 INFO (📦 butler) ...from (https://broth.itch.zone/butler/linux-amd64/15.24.0/butler.zip)
18:51:32.569 INFO (📦 butler) ...to (/home/me/.config/itch/broth/butler/downloads/butler.zip)
18:51:32.572 DEBUG (r) HTTP get https://broth.itch.zone/butler/linux-amd64/15.24.0/butler.zip
18:51:33.261 DEBUG (r) Got HTTP 200, content-length: 8.8 MiB
18:51:33.261 INFO (📦 butler) HTTP 200 https://broth.itch.zone/butler/linux-amd64/15.24.0/butler.zip
18:51:33.396 INFO (📦 butler) 100.0% done, eta 0.0s @ 8.8 MiB/s
18:51:33.396 DEBUG (📦 butler) Awaiting file sink promise
18:51:33.397 INFO (📦 butler) Downloaded 8.8 MiB / 8.8 MiB (9213596 bytes)
18:51:33.397 INFO (📦 butler) Download completed.
18:51:33.398 INFO (📦 butler) Extracting...
18:51:33.400 DEBUG (📦 butler) Total zip entries: 3
18:51:33.400 DEBUG (📦 butler) .zip filesize: 9213596
18:51:33.401 DEBUG (📦 butler) → 7z.so
18:51:33.402 INFO (📦 butler) Extracting /home/me/.config/itch/broth/butler/versions/15.24.0/7z.so
(node:10475) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `electron --trace-deprecation ...` to show where the warning was created)
18:51:33.443 DEBUG (📦 butler) → butler
18:51:33.443 INFO (📦 butler) Extracting /home/me/.config/itch/broth/butler/versions/15.24.0/butler
18:51:33.731 DEBUG (📦 butler) → libc7zip.so
18:51:33.732 INFO (📦 butler) Extracting /home/me/.config/itch/broth/butler/versions/15.24.0/libc7zip.so
18:51:33.737 INFO (📦 butler) Validating...
18:51:33.757 WARN (📦 butler) Sanity check failed: butler exit code 127, error log:
Could not start dynamically linked executable: /home/me/.config/itch/broth/butler/versions/15.24.0/butler
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
18:51:33.763 DEBUG (📦 butler) Present versions: 15.24.0
18:51:33.763 INFO (📦 butler) Removing obsolete version (15.24.0)
18:51:33.773 ERROR (🔧 setup) setup got error: Error: Could not validate version 15.24.0 of butler
    at Package.doUpgrade (/nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:18339:23)
    at async Package.upgrade (/nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:18262:13)
    at async Package.ensure (/nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:18216:9)
    at async Manager.ensure (/nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:18593:13)
    at async initialSetup (/nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:18681:9)
    at async /nix/store/ca66dnzy14kb469k00xcrkkzprij9bpa-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:18785:9
    at async Promise.all (index 1)
(node:10475) [DEP0003] DeprecationWarning: _writableState.buffer is deprecated. Use _writableState.getBuffer instead.
18:51:34.210 DEBUG (m/reac/locales) Downloading fresh locale file from https://locales.itch.zone/itch/en.json
18:51:34.210 DEBUG (r) HTTP get https://locales.itch.zone/itch/en.json
18:51:34.215 WARN (m/reac/locales) Failed downloading locale for en: net::ERR_NAME_NOT_RESOLVED
[10536:1215/195139.827086:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[10536:1215/195143.439824:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[10536:1215/195143.496394:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

@pluiedev
Copy link
Contributor Author

Hm, okay, seems like we might need to compile butler from scratch then

@pluiedev
Copy link
Contributor Author

It seems that butler is still currently impossible to build from source:

butler> building '/nix/store/57yxrfrrwah67axnrwfza2wmhmgb7xil-butler-15.24.0.drv'
butler> Running phase: unpackPhase
butler> unpacking source archive /nix/store/smw8fr3kh7mcwvcmdmqkcs2s9dhn970k-source
butler> source root is source
butler> Running phase: patchPhase
butler> Running phase: updateAutotoolsGnuConfigScriptsPhase
butler> Running phase: configurePhase
butler> Running phase: buildPhase
butler> Building subPackage .
butler> # golang.org/x/sys/unix
butler> vendor/golang.org/x/sys/unix/mremap.go:41:10: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/sys/unix/syscall.go:82:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/sys/unix/syscall_linux.go:1018:20: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/sys/unix/syscall_linux.go:2459:9: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/sys/unix/syscall_unix.go:117:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/sys/unix/sysvshm_unix.go:32:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
butler> # golang.org/x/net/http2
butler> vendor/golang.org/x/net/http2/config.go:90:17: type parameter requires go1.18 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/net/http2/config.go:90:19: embedding interface element ~int | ~int32 | ~uint32 | ~int64 requires go1.18 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/net/http2/config.go:91:5: invalid operation: *v < minval (type parameter T is not comparable with <)
butler> vendor/golang.org/x/net/http2/config.go:91:20: invalid operation: *v > maxval (type parameter T is not comparable with >)
butler> vendor/golang.org/x/net/http2/config.go:97:2: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/net/http2/config.go:98:2: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/net/http2/config.go:99:2: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/net/http2/config.go:101:3: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/net/http2/config.go:103:3: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/net/http2/config.go:106:3: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
butler> vendor/golang.org/x/net/http2/config.go:106:3: too many errors

Then I'll use the built binary package like before. itch-setup doesn't seem critical to itch's functionality, though, so I'll skip that (not sure if self-updates are that relevant in Nix anyway)

electron-packager was a *pain* to figure out. 
Please don't subject me to this ever again.
@pasqui23
Copy link
Contributor

Still the same error

; nix run '.#itch'
19:46:37.934 INFO [email protected] on [email protected] in production
19:46:37.990 DEBUG (m/reac/updater) Skipping game update check as requested per environment variable
Gtk-Message: 20:46:38.036: Failed to load module "appmenu-gtk-module": 'gtk_module_display_init': /run/current-system/sw/lib/gtk-3.0/modules/libwindow-decorations-gtk-module.so: undefined symbol: gtk_module_display_init
19:46:38.504 DEBUG (m/net/register-itch-protocol) Registering itch: protocol for session with user agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) itch/26.1.9 Chrome/130.0.6723.152 Electron/33.3.0 Safari/537.36
19:46:38.607 INFO (m/reac/preboot) preboot ran in 108.00ms
19:46:38.611 DEBUG (m/reac/open-at-login) Updating login item settings, open=false, hidden=false
19:46:38.611 DEBUG (m/reac/open-at-login) Copying /usr/share/applications/io.itch.itch.desktop => /home/me/.config/autostart/io.itch.itch.desktop
19:46:38.612 DEBUG (m/reac/winds) Waiting on root window to dispatch boot
19:46:39.440 INFO (m/reac/i18n) Language settings: preference undefined, sniffed it, fallback en
19:46:39.443 DEBUG (m/reac/locales) Reading local locale file /nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/src/static/locales/it.json
19:46:39.448 DEBUG (m/reac/locales) Reading remote locale file /nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/src/static/locales/it.json
19:46:39.551 INFO (🔧 setup) Setup starting...
19:46:39.552 INFO (🔧 setup) Creating broth manager
19:46:39.553 INFO (🔧 setup) Ensuring broth dependencies, for startup
19:46:39.554 INFO (📦 butler) Looking for local binary...
19:46:39.555 INFO (📦 butler) Found at (/nix/store/a5zjsshy2rn4rk7wrh3nxlb2qc221nwf-source/butler)
19:46:39.556 DEBUG (📦 butler) spawning /nix/store/a5zjsshy2rn4rk7wrh3nxlb2qc221nwf-source/butler :: -V
19:46:39.578 DEBUG (🔧 setup) Package (itch) got version prefix
19:46:39.579 DEBUG (m/reac/locales) Reading local locale file /nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/src/static/locales/en.json
19:46:39.586 DEBUG (m/reac/locales) Reading remote locale file /nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/src/static/locales/en.json
19:46:39.586 DEBUG (🔧 setup) Package (butler) got version prefix
19:46:39.586 INFO (🔧 setup) Refreshing butlerd!
19:46:39.586 INFO (🔧 setup) Spinning up butlerd instance 1...
19:46:39.606 INFO (🔧 setup) ...waiting for endpoint from butlerd instance 1...
19:46:39.609 ERROR (🔧 setup) butlerd instance 1 threw:
19:46:39.612 ERROR (🔧 setup) Error: butler exit code 127, error log:
Could not start dynamically linked executable: /nix/store/a5zjsshy2rn4rk7wrh3nxlb2qc221nwf-source/butler
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
    at onClose (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1333:24)
    at ChildProcess.<anonymous> (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1337:21)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1104:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:518:28)
    at Pipe.<anonymous> (node:net:343:12)
19:46:39.612 INFO (🔧 setup) butlerd instance 1 has closed.
19:46:39.612 ERROR while reacting to packageGotVersionPrefix: Error: butler exit code 127, error log:
Could not start dynamically linked executable: /nix/store/a5zjsshy2rn4rk7wrh3nxlb2qc221nwf-source/butler
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
    at onClose (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1333:24)
    at ChildProcess.<anonymous> (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1337:21)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1104:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:518:28)
    at Pipe.<anonymous> (node:net:343:12)
19:46:39.614 INFO (📦 itch-setup) No chosen version, attempting install...
19:46:39.614 INFO (📦 itch-setup) No valid version, but not required at startup. Skipping
19:46:39.615 INFO (🔧 setup) Never set up 26.1.9 successfully before, forcing components upgrade check
19:46:39.615 WARN (📦 self) itch-setup: no prefix (not installed yet?)
19:46:39.616 INFO (📦 butler) Using local, so, not upgrading.
19:46:39.616 DEBUG (📦 itch-setup) Trying to satisfy semver constraint (^1.8.0)
19:46:39.617 DEBUG (📦 itch-setup) GET (https://broth.itch.zone/itch-setup/linux-amd64/versions)
19:46:39.617 DEBUG (r) HTTP get https://broth.itch.zone/itch-setup/linux-amd64/versions
19:46:40.215 DEBUG (r) Got HTTP 200, content-length: 0 B
19:46:40.219 INFO (📦 itch-setup) Latest is (1.27.0)
19:46:40.220 DEBUG (📦 itch-setup) spawning /home/me/.config/itch/broth/itch-setup/versions/1.27.0/itch-setup :: --version
19:46:40.237 WARN (📦 itch-setup) Sanity check failed: spawn /home/me/.config/itch/broth/itch-setup/versions/1.27.0/itch-setup ENOENT
19:46:40.241 INFO (📦 itch-setup) Downloading (itch-setup)@(1.27.0)
19:46:40.241 INFO (📦 itch-setup) ...from (https://broth.itch.zone/itch-setup/linux-amd64/1.27.0/itch-setup.zip)
19:46:40.241 INFO (📦 itch-setup) ...to (/home/me/.config/itch/broth/itch-setup/downloads/itch-setup.zip)
19:46:40.243 DEBUG (r) HTTP get https://broth.itch.zone/itch-setup/linux-amd64/1.27.0/itch-setup.zip
19:46:40.892 DEBUG (r) Got HTTP 200, content-length: 5.7 MiB
19:46:40.892 INFO (📦 itch-setup) HTTP 200 https://broth.itch.zone/itch-setup/linux-amd64/1.27.0/itch-setup.zip
19:46:40.990 INFO (📦 itch-setup) 100.0% done, eta 0.0s @ 5.7 MiB/s
19:46:40.991 DEBUG (📦 itch-setup) Awaiting file sink promise
19:46:40.992 INFO (📦 itch-setup) Downloaded 5.7 MiB / 5.7 MiB (6014218 bytes)
19:46:40.992 INFO (📦 itch-setup) Download completed.
19:46:40.992 INFO (📦 itch-setup) Extracting...
19:46:40.995 DEBUG (📦 itch-setup) Total zip entries: 1
19:46:40.995 DEBUG (📦 itch-setup) .zip filesize: 6014218
19:46:40.999 DEBUG (📦 itch-setup) → itch-setup
19:46:41.005 INFO (📦 itch-setup) Extracting /home/me/.config/itch/broth/itch-setup/versions/1.27.0/itch-setup
(node:247149) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `electron --trace-deprecation ...` to show where the warning was created)
19:46:41.388 INFO (📦 itch-setup) Validating...
19:46:41.388 DEBUG (📦 itch-setup) spawning /home/me/.config/itch/broth/itch-setup/versions/1.27.0/itch-setup :: --version
19:46:41.407 INFO (📦 itch-setup) Validated!
19:46:41.408 INFO (📦 itch-setup) Marking (1.27.0) as chosen version
19:46:41.411 INFO (📦 itch-setup) Switching to (1.27.0)
19:46:41.413 DEBUG (🔧 setup) Package (itch-setup) got version prefix
19:46:41.420 DEBUG (📦 itch-setup) Present versions: 1.27.0
19:46:41.422 DEBUG (🔧 setup) Waiting for butler promise...
19:46:41.612 WARN (🔧 setup) Still no new butlerd endpoint 2s after butlerd instance 1 threw, refreshing...
19:46:41.612 INFO (🔧 setup) Refreshing butlerd!
19:46:41.612 INFO (🔧 setup) Spinning up butlerd instance 2...
19:46:41.633 INFO (🔧 setup) ...waiting for endpoint from butlerd instance 2...
19:46:41.635 ERROR (🔧 setup) butlerd instance 2 threw:
19:46:41.635 ERROR (🔧 setup) Error: butler exit code 127, error log:
Could not start dynamically linked executable: /nix/store/a5zjsshy2rn4rk7wrh3nxlb2qc221nwf-source/butler
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
    at onClose (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1333:24)
    at ChildProcess.<anonymous> (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1337:21)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1104:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:518:28)
    at Pipe.<anonymous> (node:net:343:12)
19:46:41.636 INFO (🔧 setup) butlerd instance 2 has closed.
19:46:41.637 DEBUG (m/reac/locales) Downloading fresh locale file from https://locales.itch.zone/itch/en.json
19:46:41.637 DEBUG (r) HTTP get https://locales.itch.zone/itch/en.json
19:46:41.641 WARN (m/reac/locales) Failed downloading locale for en: net::ERR_NAME_NOT_RESOLVED
19:46:43.636 WARN (🔧 setup) Still no new butlerd endpoint 2s after butlerd instance 2 threw, refreshing...
19:46:43.636 INFO (🔧 setup) Refreshing butlerd!
19:46:43.636 INFO (🔧 setup) Spinning up butlerd instance 3...
19:46:43.660 INFO (🔧 setup) ...waiting for endpoint from butlerd instance 3...
19:46:43.662 ERROR (🔧 setup) butlerd instance 3 threw:
19:46:43.662 ERROR (🔧 setup) Error: butler exit code 127, error log:
Could not start dynamically linked executable: /nix/store/a5zjsshy2rn4rk7wrh3nxlb2qc221nwf-source/butler
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
    at onClose (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1333:24)
    at ChildProcess.<anonymous> (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1337:21)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1104:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:518:28)
    at Pipe.<anonymous> (node:net:343:12)
19:46:43.662 INFO (🔧 setup) butlerd instance 3 has closed.
19:46:45.662 WARN (🔧 setup) Still no new butlerd endpoint 2s after butlerd instance 3 threw, refreshing...
19:46:45.662 INFO (🔧 setup) Refreshing butlerd!
19:46:45.662 INFO (🔧 setup) Spinning up butlerd instance 4...
19:46:45.680 INFO (🔧 setup) ...waiting for endpoint from butlerd instance 4...
19:46:45.681 ERROR (🔧 setup) butlerd instance 4 threw:
19:46:45.681 ERROR (🔧 setup) Error: butler exit code 127, error log:
Could not start dynamically linked executable: /nix/store/a5zjsshy2rn4rk7wrh3nxlb2qc221nwf-source/butler
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
    at onClose (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1333:24)
    at ChildProcess.<anonymous> (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1337:21)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1104:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:518:28)
    at Pipe.<anonymous> (node:net:343:12)
19:46:45.681 INFO (🔧 setup) butlerd instance 4 has closed.
19:46:46.422 ERROR (🔧 setup) setup got error: Error: Timed out while connecting to butlerd
    at Timeout._onTimeout (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:18705:28)
    at listOnTimeout (node:internal/timers:581:17)
    at process.processTimers (node:internal/timers:519:7)
(node:247149) [DEP0003] DeprecationWarning: _writableState.buffer is deprecated. Use _writableState.getBuffer instead.
19:46:47.682 WARN (🔧 setup) Still no new butlerd endpoint 2s after butlerd instance 4 threw, refreshing...
19:46:47.682 INFO (🔧 setup) Refreshing butlerd!
19:46:47.683 INFO (🔧 setup) Spinning up butlerd instance 5...
19:46:47.701 INFO (🔧 setup) ...waiting for endpoint from butlerd instance 5...
19:46:47.702 ERROR (🔧 setup) butlerd instance 5 threw:
19:46:47.702 ERROR (🔧 setup) Error: butler exit code 127, error log:
Could not start dynamically linked executable: /nix/store/a5zjsshy2rn4rk7wrh3nxlb2qc221nwf-source/butler
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
    at onClose (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1333:24)
    at ChildProcess.<anonymous> (/nix/store/7qx8chcs3mpypia7cawrybxr3kgi9ix3-itch-26.1.9/share/itch/resources/app.asar/dist/main/main.bundle.js:1337:21)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1104:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:518:28)
    at Pipe.<anonymous> (node:net:343:12)
19:46:47.702 INFO (🔧 setup) butlerd instance 5 has closed.
^C

@pluiedev
Copy link
Contributor Author

Looks like it wants patchelfing too..? Lemme see

@pluiedev
Copy link
Contributor Author

pluiedev commented Dec 23, 2024

I'm really quite confused. I can't reproduce the error even while running butler manually, and with nix-ld disabled...

@pasqui23
Copy link
Contributor

pasqui23 commented Jan 4, 2025

I think you need to package butlerd too and replace it in the souce directory

@pluiedev
Copy link
Contributor Author

pluiedev commented Jan 4, 2025

It's not quite possible yet since upstream still specifies Go 1.13 in the go.mod...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants