firefox115: copy files/firefox.sh from www/firefox

Addresses PR 57688 by John McCue.
This commit is contained in:
wiz 2023-11-09 15:22:49 +00:00
parent d13db9bd39
commit 7ed65c7589

View file

@ -1,7 +1,7 @@
#!/bin/sh
if [ -f /usr/X11R7/lib/libEGL.so ] && [ -z "$LD_PRELOAD" ] && \
nm /usr/X11R7/lib/libGL.so | grep -Fq "B _glapi_tls_Dispatch"; then
# Temporary workaround for PR#57445
# Workaround for PR#57445/50277 for netbsd-9 & netbsd-10 pre 2023-08-05
# This may not avoid a crash 100% of the time, but changes at least some
# cases of 100% crash on startup to "have not yet seen crash on startup"
echo "Applying libEGL LD_PRELOAD workaround for NetBSD" >&2
@ -11,4 +11,4 @@ if [ -f /usr/X11R7/lib/libEGL.so ] && [ -z "$LD_PRELOAD" ] && \
# by default, but it's not even worth looking at that on a system without
# the fixed libGL
fi
exec /usr/pkg/lib/firefox/firefox "$@"
exec @PREFIX@/lib/@MOZILLA@/@MOZILLA@ "$@"