Thu Nov 9 15:22:49 2023 UTC ()
firefox115: copy files/firefox.sh from www/firefox

Addresses PR 57688 by John McCue.


(wiz)
diff -r1.1 -r1.2 pkgsrc/www/firefox115/files/firefox.sh

cvs diff -r1.1 -r1.2 pkgsrc/www/firefox115/files/firefox.sh (expand / switch to unified diff)

--- pkgsrc/www/firefox115/files/firefox.sh 2023/09/11 12:33:25 1.1
+++ pkgsrc/www/firefox115/files/firefox.sh 2023/11/09 15:22:49 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1#!/bin/sh 1#!/bin/sh
2if [ -f /usr/X11R7/lib/libEGL.so ] && [ -z "$LD_PRELOAD" ] && \ 2if [ -f /usr/X11R7/lib/libEGL.so ] && [ -z "$LD_PRELOAD" ] && \
3 nm /usr/X11R7/lib/libGL.so | grep -Fq "B _glapi_tls_Dispatch"; then 3 nm /usr/X11R7/lib/libGL.so | grep -Fq "B _glapi_tls_Dispatch"; then
4 # Temporary workaround for PR#57445 4 # Workaround for PR#57445/50277 for netbsd-9 & netbsd-10 pre 2023-08-05
5 # This may not avoid a crash 100% of the time, but changes at least some 5 # This may not avoid a crash 100% of the time, but changes at least some
6 # cases of 100% crash on startup to "have not yet seen crash on startup" 6 # cases of 100% crash on startup to "have not yet seen crash on startup"
7 echo "Applying libEGL LD_PRELOAD workaround for NetBSD" >&2 7 echo "Applying libEGL LD_PRELOAD workaround for NetBSD" >&2
8 export LD_PRELOAD=/usr/X11R7/lib/libEGL.so 8 export LD_PRELOAD=/usr/X11R7/lib/libEGL.so
9 # Note that there is an _additional_ issue with firefox >= 111 that 9 # Note that there is an _additional_ issue with firefox >= 111 that
10 # needs to be addressed, and that is worked around by disabling webgl 10 # needs to be addressed, and that is worked around by disabling webgl
11 # by default, but it's not even worth looking at that on a system without 11 # by default, but it's not even worth looking at that on a system without
12 # the fixed libGL 12 # the fixed libGL
13fi 13fi
14exec /usr/pkg/lib/firefox/firefox "$@" 14exec @PREFIX@/lib/@MOZILLA@/@MOZILLA@ "$@"