1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

www/firefox: fix running on wayland

since the latest version firefox uses a wayland-proxy to deal with
disconnections from the compositor, this proxy had portability issue
in particular it relies on a non defined behaviour polling a non
connected socket, remove the test on the polling to make it run on
FreeBSD

Note for users running into other issues with wayland-proxy they can for
now disable it via: MOZ_DISABLE_WAYLAND_PROXY=1 env var.

This has been reported upstream:
https://bugzilla.mozilla.org/show_bug.cgi?id=1882972
https://github.com/stransky/wayland-proxy/issues/3
https://github.com/stransky/wayland-proxy/pull/6

Reviewd by:	manu
Tested by:	manu
This commit is contained in:
Baptiste Daroussin 2024-03-01 08:58:07 +01:00
parent 294a6814f4
commit ff7cc7c719
2 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= firefox
DISTVERSION= 123.0
PORTREVISION= 3
PORTREVISION= 4
PORTEPOCH= 2
CATEGORIES= www wayland
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}${DISTVERSIONSUFFIX}/source \

View File

@ -0,0 +1,15 @@
--- third_party/wayland-proxy/wayland-proxy.cpp.orig 2024-02-29 09:10:59.939556000 +0100
+++ third_party/wayland-proxy/wayland-proxy.cpp 2024-02-29 15:07:13.914375000 +0100
@@ -318,10 +318,10 @@
}
bool ProxiedConnection::ConnectToCompositor() {
- if (!(mCompositorFlags & POLLOUT)) {
+ /* if (!(mCompositorFlags & POLLOUT)) {
// Try again later
return true;
- }
+ }*/
struct sockaddr_un addr = {};
addr.sun_family = AF_UNIX;