app-i18n/mozc: fix build w/ new abseil
[gentoo-zh.git] / app-i18n / mozc / files / mozc-2.28.5029.102-abseil.patch
blob08421910d098845bae8ad31e78eb0f6be8d7a923
1 https://bugs.gentoo.org/912776
2 Adapted from https://src.fedoraproject.org/rpms/mozc/raw/aa3cba136c9a28e176d246f450465d3a8a4e8533/f/mozc-build-new-abseil.patch
3 --- a/src/base/init_mozc.cc
4 +++ b/src/base/init_mozc.cc
5 @@ -87,7 +87,10 @@ std::string GetLogFilePathFromProgramName(const std::string &program_name) {
6 void ParseCommandLineFlags(int argc, char **argv) {
7 absl::flags_internal::ParseCommandLineImpl(
8 argc, argv,
9 + #if defined(ABSL_LTS_RELEASE_VERSION) && ABSL_LTS_RELEASE_VERSION < 20230802
10 + // Abseil 20230802.0 does not use ArgvListAction
11 absl::flags_internal::ArgvListAction::kRemoveParsedArgs,
12 + #endif
13 // Suppress help messages invoked by --help and others.
14 // Use UsageFlagsAction::kHandleUsage to enable it.
15 absl::flags_internal::UsageFlagsAction::kIgnoreUsage,