Skip to content

Commit

Permalink
fix(x11/firefox): fix Segmentation fault in the command "firefox -hea…
Browse files Browse the repository at this point in the history
…dless"

Fixes #22286
  • Loading branch information
robertkirkman committed Dec 24, 2024
1 parent 040fb38 commit f2f7d30
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions x11-packages/firefox/0029-fix-headless-mode.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WIP PATCH: currently breaks this command, future updates needed!
"firefox & sleep 5 && firefox google.com"

Fixes a crash in the command "firefox -headless",
as described here https://github.com/termux/termux-packages/issues/22286
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -2714,8 +2714,8 @@ def has_remote(toolkit):
return True


-set_config("MOZ_HAS_REMOTE", has_remote)
-set_define("MOZ_HAS_REMOTE", has_remote)
+#set_config("MOZ_HAS_REMOTE", has_remote)
+#set_define("MOZ_HAS_REMOTE", has_remote)

# RLBox Library Sandboxing wasm support
# ==============================================================
1 change: 1 addition & 0 deletions x11-packages/firefox/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Mozilla Firefox web browser"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="133.0.3"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://archive.mozilla.org/pub/firefox/releases/${TERMUX_PKG_VERSION}/source/firefox-${TERMUX_PKG_VERSION}.source.tar.xz
TERMUX_PKG_SHA256=f134a5420200bb03ab460f9d2867507c0edb222ce73faf4064cdbea02a0aca1b
# ffmpeg and pulseaudio are dependencies through dlopen(3):
Expand Down

0 comments on commit f2f7d30

Please sign in to comment.