aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/patches/focal/puppet-silence-ruby-deprecation-warnings.md6
-rw-r--r--files/patches/focal/puppet-silence-ruby-deprecation-warnings.patch10
2 files changed, 16 insertions, 0 deletions
diff --git a/files/patches/focal/puppet-silence-ruby-deprecation-warnings.md b/files/patches/focal/puppet-silence-ruby-deprecation-warnings.md
new file mode 100644
index 0000000..a4bd6bc
--- /dev/null
+++ b/files/patches/focal/puppet-silence-ruby-deprecation-warnings.md
@@ -0,0 +1,6 @@
+# Silence Ruby deprecation warnings patch
+
+* [PUP-10391 URI.escape is obsolete in Ruby 2.7 - Puppet Tickets](https://tickets.puppetlabs.com/browse/PUP-10391).
+* [PUP-10535 Move to Addressable - Puppet Tickets](https://tickets.puppetlabs.com/browse/PUP-10535).
+* [#955532 - Deprecation warning in Ruby 2.7: URI.escape is obsolete - Debian Bug report logs](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955532).
+* [Silence Ruby deprecation warnings (Closes: #955532). (!2) · Merge Requests · Debian Puppet Team / puppet · GitLab](https://salsa.debian.org/puppet-team/puppet/-/merge_requests/2/diffs).
diff --git a/files/patches/focal/puppet-silence-ruby-deprecation-warnings.patch b/files/patches/focal/puppet-silence-ruby-deprecation-warnings.patch
new file mode 100644
index 0000000..a1d8c10
--- /dev/null
+++ b/files/patches/focal/puppet-silence-ruby-deprecation-warnings.patch
@@ -0,0 +1,10 @@
+--- /usr/bin/puppet.orig 2021-04-27 13:50:28.100655437 -0300
++++ /usr/bin/puppet 2021-04-27 13:50:50.576789022 -0300
+@@ -1,6 +1,7 @@
+ #!/usr/bin/ruby
+
+ begin
++ $VERBOSE = nil
+ require 'puppet/util/command_line'
+ Puppet::Util::CommandLine.new.execute
+ rescue LoadError => e