!PbcQeaWcgMyjVfeGQN:nixos.org

Nix Mozilla 🦊🐦🐒

171 Members
A room about a number of weird animals (also known as Mozilla products): Firefox, Thunderbird, Spidermonkey, NSS, cacert. Also a little bit of fun times, small amounts of extreme, when building weird animals. But for bugs please file GitHub issues. | Release Schedule: https://whattrainisitnow.com | Crash-Stats: https://crash-stats.mozilla.org/search/?distribution_id=%3Dnixos&product=Firefox&product=Thunderbird51 Servers

Load older messages


SenderMessageTime
19 Sep 2023
@vcunat:matrix.orgvcunat Uh, it doesn't work with nix run, missing correct mainProgram. 19:26:01
@vcunat:matrix.orgvcunatAnyway, I also get some segfault.19:26:07
@vcunat:matrix.orgvcunat (also hash /nix/store/ymhkgr4r99...) 19:27:38
@colemickens:matrix.orgcolemickens K900 ⚡️: yes. Or at least it flat out didn't open and I just assumed it was the same issue. 19:34:57
@k900:0upti.meK900 I think I'm off to sleep for now  19:35:59
@k900:0upti.meK900 I might look at it tomorrow 19:36:03
20 Sep 2023
@artturin:matrix.orgArtturinhttps://github.com/colemickens/flake-firefox-nightly/pull/1201:13:08
@k900:0upti.meK900So uh is it still broken06:19:51
@k900:0upti.meK900OK I just tried and yes06:40:31
@k900:0upti.meK900I also just tried injecting the latest patchelf and that didn't help either06:40:41
@elvishjerricco:matrix.orgElvishJerricco joined the room.09:25:50
@joerg:thalheim.ioMic92 You can skip patchelf and use LDLIBRARYPATH and see if that can help you fix the issue. 10:20:01
@joerg:thalheim.ioMic92 LD_LIBRARY_PATH 10:20:14
@nbp:mozilla.orgnbp This is doable, IIRC there is already a wrapper script around Firefox which used to preload everything using ls on Linux. 10:20:52
@vcunat:matrix.orgvcunatYes, but I recall issues due to env propagating to sub-processes, so that programs getting run from browser can then get broken.10:26:17
@vcunat:matrix.orgvcunat Therefore I don't think $LD_* approaches can be a good solution here. 10:27:56
@nbp:mozilla.orgnbphum … indeed, that could happen if an addons were to start something on the system. However, I am not sure this is still possible with WebExtensions.10:28:34
@vcunat:matrix.orgvcunatI meant mainly user clicking to open a downloaded file, etc.10:29:31
@k900:0upti.meK900Yeah but it could work as a proof of concept10:31:15
@k900:0upti.meK900To make sure it's patchelf that's breaking things10:31:26
@k900:0upti.meK900 $env.LD_LIBRARY_PATH = (nix-instantiate --eval --expr --json 'let pkgs = import <nixpkgs> {}; in pkgs.lib.strings.makeLibraryPath (with pkgs; [ alsa-lib gtk3 xorg.libXtst dbus-glib ])' | jq -r); ./firefox 10:47:00
@k900:0upti.meK900Works on the latest nightly10:47:03
@k900:0upti.meK900Time to break it10:47:25
@k900:0upti.meK900 * $env.LD_LIBRARY_PATH = (nix-instantiate --eval --expr --json 'let pkgs = import <nixpkgs> {}; in pkgs.lib.strings.makeLibraryPath (with pkgs; [ alsa-lib gtk3 xorg.libXtst dbus-glib ])' | jq -r); ./firefox ( + nix-ld) 10:47:37
@k900:0upti.meK900Ok found it10:54:11
@k900:0upti.meK900 OK so basically patchelf --set-rpath on pretty much any .so file makes it die horribly 10:57:16
@k900:0upti.meK900The executables are fine10:57:20
@k900:0upti.meK900It's the dylibs that are the problem10:57:24
@k900:0upti.meK900https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/networking/browsers/firefox-bin/default.nix#L179-L18110:58:14
@k900:0upti.meK900I'm pretty sure this is entirely unnecessary10:58:20

Show newer messages


Back to Room ListRoom Version: 9