commit:     23f1ea3afd9541f8d6a409dcc8aa3d52a076e541
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 19 00:37:01 2024 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Sat Apr 20 04:04:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23f1ea3a

www-client/chromium: add postinst warning

Missing '/etc/machine-id' on a systemd-booting system
is an indicator of a system configuration that is
known to cause "interesting" chromium-based browser
issues.

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 www-client/chromium/chromium-125.0.6422.4.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/www-client/chromium/chromium-125.0.6422.4.ebuild 
b/www-client/chromium/chromium-125.0.6422.4.ebuild
index c689e3abafef..8f0934a3f723 100644
--- a/www-client/chromium/chromium-125.0.6422.4.ebuild
+++ b/www-client/chromium/chromium-125.0.6422.4.ebuild
@@ -64,7 +64,7 @@ CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB es es-419 
et fa fi fil fr gu
        sv sw ta te th tr uk ur vi zh-CN zh-TW"
 
 inherit check-reqs chromium-2 desktop flag-o-matic llvm ninja-utils pax-utils
-inherit python-any-r1 qmake-utils readme.gentoo-r1 toolchain-funcs virtualx 
xdg-utils
+inherit python-any-r1 qmake-utils readme.gentoo-r1 systemd toolchain-funcs 
virtualx xdg-utils
 
 DESCRIPTION="Open-source version of Google Chrome web browser"
 HOMEPAGE="https://www.chromium.org/";
@@ -1436,4 +1436,12 @@ pkg_postinst() {
                        elog "/etc/chromium/default."
                fi
        fi
+
+       if systemd_is_booted && ! -f /etc/machine-id ; then
+               ewarn "The lack of an '/etc/machine-id' file on this system 
booted with systemd"
+               ewarn "indicates that the Gentoo handbook was not followed to 
completion."
+               ewarn ""
+               ewarn "Chromium is known to behave unpredictably with this 
system configuration;"
+               ewarn "please complete the configuration of this system before 
logging any bugs."
+       fi
 }

Reply via email to