gentoo-ebuilds/app-i18n/mozc/files/mozc-2.28.5029.102-abseil.patch
Sam James 7ef7e506b5
app-i18n/mozc: fix build w/ new abseil
Closes: https://bugs.gentoo.org/912776
Signed-off-by: Sam James <sam@gentoo.org>
2023-08-21 21:15:02 +01:00

15 lines
831 B
Diff

https://bugs.gentoo.org/912776
Adapted from https://src.fedoraproject.org/rpms/mozc/raw/aa3cba136c9a28e176d246f450465d3a8a4e8533/f/mozc-build-new-abseil.patch
--- a/src/base/init_mozc.cc
+++ b/src/base/init_mozc.cc
@@ -87,7 +87,10 @@ std::string GetLogFilePathFromProgramName(const std::string &program_name) {
void ParseCommandLineFlags(int argc, char **argv) {
absl::flags_internal::ParseCommandLineImpl(
argc, argv,
+ #if defined(ABSL_LTS_RELEASE_VERSION) && ABSL_LTS_RELEASE_VERSION < 20230802
+ // Abseil 20230802.0 does not use ArgvListAction
absl::flags_internal::ArgvListAction::kRemoveParsedArgs,
+ #endif
// Suppress help messages invoked by --help and others.
// Use UsageFlagsAction::kHandleUsage to enable it.
absl::flags_internal::UsageFlagsAction::kIgnoreUsage,