| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | #!/bin/sh | | 1 | #!/bin/sh |
2 | if [ -f /usr/X11R7/lib/libEGL.so ] && [ -z "$LD_PRELOAD" ] && \ | | 2 | if [ -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 |
13 | fi | | 13 | fi |
14 | exec /usr/pkg/lib/firefox/firefox "$@" | | 14 | exec @PREFIX@/lib/@MOZILLA@/@MOZILLA@ "$@" |