chromium: remove unneeded patch

This commit is contained in:
Duncaen 2025-07-17 04:55:17 +02:00
parent c2d146d936
commit f3e9a077ce
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -1,31 +0,0 @@
From e8daefd959e37ca94e99e486927423c0bb24e293 Mon Sep 17 00:00:00 2001
From: LN Liberda <lauren@selfisekai.rocks>
Date: Wed, 28 May 2025 22:51:21 +0200
Subject: [PATCH] Don't check glibc search path if not using glibc
Bug: 40244829
---
ui/gtk/ime_compat_check.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/gtk/ime_compat_check.cc b/ui/gtk/ime_compat_check.cc
index 3c33ab502bca0..531e7ca60ee09 100644
--- a/ui/gtk/ime_compat_check.cc
+++ b/ui/gtk/ime_compat_check.cc
@@ -35,6 +35,8 @@ struct InputMethod {
std::vector<base::FilePath> GetLibrarySearchPaths() {
std::vector<base::FilePath> search_path;
+
+#if defined(__GLIBC__)
void* handle = dlopen("libc.so.6", RTLD_GLOBAL | RTLD_LAZY | RTLD_NOLOAD);
if (!handle) {
return search_path;
@@ -60,6 +62,7 @@ std::vector<base::FilePath> GetLibrarySearchPaths() {
// SAFETY: The range is bound by `serinfo.dls_cnt`.
search_path.emplace_back(UNSAFE_BUFFERS(sip->dls_serpath[j].dls_name));
}
+#endif
return search_path;
}