| 20 Sep 2023 |
K900 | It's the dylibs that are the problem | 10:57:24 |
K900 | https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/networking/browsers/firefox-bin/default.nix#L179-L181 | 10:58:14 |
K900 | I'm pretty sure this is entirely unnecessary | 10:58:20 |
K900 | And can just be removed | 10:58:22 |
K900 | Also I'm pretty sure literally any attempt to load the patchelf-ed library just dies | 10:59:13 |
K900 | ~/downloads/firefox
β β― bat test.c
ββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β File: test.c
ββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 β #include <dlfcn.h>
2 β
3 β int main() {
4 β dlopen("./libmozsqlite3.so", RTLD_LAZY);
5 β }
ββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
~/downloads/firefox
β β― gcc test.c
~/downloads/firefox
β β― ./a.out
Segmentation fault: oops, process './a.out' core dumped
Error: nu::shell::external_command
Γ External command failed
ββ[entry #7:1:1]
1 β ./a.out
Β· ββββ¬βββ
Β· β°ββ core dumped
β°ββββ
help: Segmentation fault: child process './a.out' core dumped | 11:00:44 |
K900 | I think we need @Mic92 | 11:01:19 |
K900 | OK what the fuck is going on with firefox-bin anyway | 11:10:08 |
K900 | Is it just older than autoPatchelfHook | 11:10:13 |
vcunat | IIRC it can be necessary to set RPATHs on libs, not just executables. Generally, I mean. | 11:25:39 |
K900 | https://github.com/NixOS/nixpkgs/pull/256292 | 11:28:04 |
K900 | OK I just deleted like half the firefox-bin expression | 11:28:14 |
K900 | And it still works | 11:28:16 |
K900 | Now let's see if this also works with Nightly | 11:31:42 |
| * nbp will not ask about GPU support β¦ | 11:33:11 |
K900 | Nope, still crashes | 11:39:37 |
K900 | In reply to@nbp:mozilla.org will not ask about GPU support β¦ It does work | 11:39:41 |
K900 |  Download image.png | 11:40:52 |
K900 | [GFX1-]: glxtest: libpci missing | 11:40:57 |
K900 | Does say this | 11:40:59 |
K900 | I wonder if it'll stop if I just add it | 11:41:03 |
K900 | Unfortunately, it still has to patchelf enough to fuck up the nightlies | 11:41:40 |
nbp | glxtest fails all the time, and I no longer have a working zoom in the browser since β¦ I am relying on the Nixpkgs compiled one for Zoom meetings now. | 11:42:12 |
K900 | postPatch = ''
# Don't download updates from Mozilla directly
echo 'pref("app.update.auto", "false");' >> defaults/pref/channel-prefs.js
''; | 11:42:47 |
K900 | Also I'm pretty sure we don't need this anymore? | 11:42:52 |
nbp | but I am not sure if this will last⦠| 11:42:56 |
K900 | Since it's disabled via policies | 11:42:58 |
nbp | We still need this, as otherwise it will display an annoying message everyday. | 11:43:21 |
nbp | I guess this can be tested on nightly by waiting 12h. | 11:44:10 |
K900 | It sets DisableAppUpdate = true; | 11:45:42 |