Date: Mon, 17 Nov 2025 10:40:22 GMT
From: Robert Nagy <rnagy@FreeBSD.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject: git: 7aa40b86b052 - 2025Q4 - www/{*chromium,iridium}: unbreak headless mode by resurrecting a lost patch
Message-ID: <202511171040.5AHAeMg5039858@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch 2025Q4 has been updated by rnagy: URL: https://cgit.FreeBSD.org/ports/commit/?id=7aa40b86b052e522d0bbeb48612e979b15cff182 commit 7aa40b86b052e522d0bbeb48612e979b15cff182 Author: Robert Nagy <rnagy@FreeBSD.org> AuthorDate: 2025-11-17 10:39:04 +0000 Commit: Robert Nagy <rnagy@FreeBSD.org> CommitDate: 2025-11-17 10:40:17 +0000 www/{*chromium,iridium}: unbreak headless mode by resurrecting a lost patch (cherry picked from commit aa305ea985a5d684992de466a9f0578da5b50d28) --- www/chromium/Makefile | 1 + ...chrome_browser_headless_headless__mode__util.cc | 29 ++++++++++++++++++++++ www/iridium/Makefile | 1 + ...chrome_browser_headless_headless__mode__util.cc | 29 ++++++++++++++++++++++ www/ungoogled-chromium/Makefile | 1 + ...chrome_browser_headless_headless__mode__util.cc | 29 ++++++++++++++++++++++ 6 files changed, 90 insertions(+) diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 2664f0e21d61..b0daf1b0ca6e 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -1,5 +1,6 @@ PORTNAME= chromium PORTVERSION= 142.0.7444.162 +PORTREVISION= 1 PULSEMV= 16 PULSEV= ${PULSEMV}.1 CATEGORIES= www wayland diff --git a/www/chromium/files/patch-chrome_browser_headless_headless__mode__util.cc b/www/chromium/files/patch-chrome_browser_headless_headless__mode__util.cc new file mode 100644 index 000000000000..1bbc0697bc56 --- /dev/null +++ b/www/chromium/files/patch-chrome_browser_headless_headless__mode__util.cc @@ -0,0 +1,29 @@ +--- chrome/browser/headless/headless_mode_util.cc.orig 2025-11-17 10:37:57 UTC ++++ chrome/browser/headless/headless_mode_util.cc +@@ -12,7 +12,7 @@ + // New headless mode is available on Linux, Windows and Mac platforms. + // More platforms will be added later, so avoid function level clutter + // by providing stub implementations at the end of the file. +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) + + #include "base/base_switches.h" + #include "base/files/file_path.h" +@@ -23,7 +23,7 @@ + #include "chrome/common/chrome_switches.h" + #include "content/public/common/content_switches.h" + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include "ui/gl/gl_switches.h" // nogncheck + #include "ui/ozone/public/ozone_switches.h" // nogncheck + #endif // BUILDFLAG(IS_LINUX) +@@ -113,7 +113,7 @@ class HeadlessModeHandleImpl : public HeadlessModeHand + command_line->AppendSwitchPath(switches::kUserDataDir, user_data_dir); + } + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + // Headless mode on Linux relies on ozone/headless platform. + command_line->AppendSwitchASCII(::switches::kOzonePlatform, + switches::kHeadless); diff --git a/www/iridium/Makefile b/www/iridium/Makefile index 3f9722e7f0be..4d3e9024b383 100644 --- a/www/iridium/Makefile +++ b/www/iridium/Makefile @@ -1,5 +1,6 @@ PORTNAME= iridium PORTVERSION= 2025.11.142.2 +PORTREVISION= 1 PULSEMV= 16 PULSEV= ${PULSEMV}.1 CATEGORIES= www wayland diff --git a/www/iridium/files/patch-chrome_browser_headless_headless__mode__util.cc b/www/iridium/files/patch-chrome_browser_headless_headless__mode__util.cc new file mode 100644 index 000000000000..1bbc0697bc56 --- /dev/null +++ b/www/iridium/files/patch-chrome_browser_headless_headless__mode__util.cc @@ -0,0 +1,29 @@ +--- chrome/browser/headless/headless_mode_util.cc.orig 2025-11-17 10:37:57 UTC ++++ chrome/browser/headless/headless_mode_util.cc +@@ -12,7 +12,7 @@ + // New headless mode is available on Linux, Windows and Mac platforms. + // More platforms will be added later, so avoid function level clutter + // by providing stub implementations at the end of the file. +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) + + #include "base/base_switches.h" + #include "base/files/file_path.h" +@@ -23,7 +23,7 @@ + #include "chrome/common/chrome_switches.h" + #include "content/public/common/content_switches.h" + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include "ui/gl/gl_switches.h" // nogncheck + #include "ui/ozone/public/ozone_switches.h" // nogncheck + #endif // BUILDFLAG(IS_LINUX) +@@ -113,7 +113,7 @@ class HeadlessModeHandleImpl : public HeadlessModeHand + command_line->AppendSwitchPath(switches::kUserDataDir, user_data_dir); + } + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + // Headless mode on Linux relies on ozone/headless platform. + command_line->AppendSwitchASCII(::switches::kOzonePlatform, + switches::kHeadless); diff --git a/www/ungoogled-chromium/Makefile b/www/ungoogled-chromium/Makefile index fd280260d582..c9ca44079825 100644 --- a/www/ungoogled-chromium/Makefile +++ b/www/ungoogled-chromium/Makefile @@ -1,5 +1,6 @@ PORTNAME= ungoogled-chromium PORTVERSION= 142.0.7444.162 +PORTREVISION= 1 PULSEMV= 16 PULSEV= ${PULSEMV}.1 UGVERSION= ${DISTVERSION}-1 diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_headless_headless__mode__util.cc b/www/ungoogled-chromium/files/patch-chrome_browser_headless_headless__mode__util.cc new file mode 100644 index 000000000000..1bbc0697bc56 --- /dev/null +++ b/www/ungoogled-chromium/files/patch-chrome_browser_headless_headless__mode__util.cc @@ -0,0 +1,29 @@ +--- chrome/browser/headless/headless_mode_util.cc.orig 2025-11-17 10:37:57 UTC ++++ chrome/browser/headless/headless_mode_util.cc +@@ -12,7 +12,7 @@ + // New headless mode is available on Linux, Windows and Mac platforms. + // More platforms will be added later, so avoid function level clutter + // by providing stub implementations at the end of the file. +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) + + #include "base/base_switches.h" + #include "base/files/file_path.h" +@@ -23,7 +23,7 @@ + #include "chrome/common/chrome_switches.h" + #include "content/public/common/content_switches.h" + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include "ui/gl/gl_switches.h" // nogncheck + #include "ui/ozone/public/ozone_switches.h" // nogncheck + #endif // BUILDFLAG(IS_LINUX) +@@ -113,7 +113,7 @@ class HeadlessModeHandleImpl : public HeadlessModeHand + command_line->AppendSwitchPath(switches::kUserDataDir, user_data_dir); + } + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + // Headless mode on Linux relies on ozone/headless platform. + command_line->AppendSwitchASCII(::switches::kOzonePlatform, + switches::kHeadless);home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202511171040.5AHAeMg5039858>
