-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Backported from v5.0.3: #620 --------- Signed-off-by: Takuro Ashie <[email protected]>
- Loading branch information
Showing
6 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
td-agent (4.5.3-1) unstable; urgency=low | ||
|
||
* New upstream release. | ||
|
||
-- Takuro Ashie <[email protected]> Thu, 29 Feb 2024 01:56:09 -0000 | ||
|
||
td-agent (4.5.2-1) unstable; urgency=low | ||
|
||
* New upstream release. | ||
|
29 changes: 29 additions & 0 deletions
29
...ent/patches/rubyinstaller/0001-Avoid-crash-on-invalid-registry-key-while-detecting-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From dce1859255d8f0710e38282ba3a54a1d46e910e0 Mon Sep 17 00:00:00 2001 | ||
From: Takuro Ashie <[email protected]> | ||
Date: Thu, 29 Feb 2024 09:31:22 +0900 | ||
Subject: [PATCH] Avoid crash on invalid registry key while detecting MSYS2 | ||
installation | ||
|
||
https://github.com/oneclick/rubyinstaller2/issues/372 | ||
|
||
Signed-off-by: Takuro Ashie <[email protected]> | ||
--- | ||
.../2.7.0/ruby_installer/runtime/msys2_installation.rb | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb b/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb | ||
index e9ce60d5..d5f78eac 100644 | ||
--- a/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb | ||
+++ b/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb | ||
@@ -78,6 +78,8 @@ module Runtime # Rewrite from D:/a/rubyinstaller2/rubyinstaller2/lib/ruby_instal | ||
# Ignore entries without valid installer data or broken character encoding | ||
end | ||
end | ||
+ rescue Encoding::InvalidByteSequenceError, Encoding::UndefinedConversionError | ||
+ # Avoid crash even if subkey includes inconvertible characters to internal encoding | ||
end | ||
rescue Win32::Registry::Error | ||
end | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,6 +261,9 @@ fi | |
# NOTE: %{_tmpfilesdir} is available since CentOS 7 | ||
%attr(0755,td-agent,td-agent) %dir /tmp/@PACKAGE@ | ||
%changelog | ||
* Thu Feb 29 2024 Takuro Ashie <[email protected]> - 4.5.3-1 | ||
- New upstream release. | ||
|
||
* Wed Nov 22 2023 Takuro Ashie <[email protected]> - 4.5.2-1 | ||
- New upstream release. | ||
|
||
|