Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/facter/files/
Date: Thu, 29 Sep 2016 20:33:29
Message-Id: 1475181194.95cff65963c3ed101d91a0fea3cb4abb7bd98575.monsieurp@gentoo
1 commit: 95cff65963c3ed101d91a0fea3cb4abb7bd98575
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 21 16:59:48 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 20:33:14 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95cff659
7
8 dev-ruby/facter: remove unused patch.
9
10 Closes: https://github.com/gentoo/gentoo/pull/2380
11
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 .../files/facter-1.7.1-fix-proc-self-status.patch | 39 ----------------------
15 1 file changed, 39 deletions(-)
16
17 diff --git a/dev-ruby/facter/files/facter-1.7.1-fix-proc-self-status.patch b/dev-ruby/facter/files/facter-1.7.1-fix-proc-self-status.patch
18 deleted file mode 100644
19 index 1119bdf..00000000
20 --- a/dev-ruby/facter/files/facter-1.7.1-fix-proc-self-status.patch
21 +++ /dev/null
22 @@ -1,39 +0,0 @@
23 -From d54c86abfba35f48cad78bb99b1d199afe8c2095 Mon Sep 17 00:00:00 2001
24 -From: Jeff McCune <jeff@××××××××××.com>
25 -Date: Tue, 16 Apr 2013 11:27:30 -0400
26 -Subject: [PATCH] (#14522) Force /proc/self/status encoding to valid UTF-8 (try
27 - 2)
28 -
29 -Without this patch the previous attempt to fix issue 14522 is
30 -insufficient because the String#encode method is a no-op when the source
31 -and destination encodings are the same encoding, even if there are
32 -invalid byte sequences.
33 -
34 -This is a problem because we're still getting unhandled `invalid byte
35 -sequence in UTF-8` errors running the specs.
36 -
37 -This patch addresses the problem by changing encoding from UTF-8 to
38 -UTF-16, replacing all invalid byte sequences with the default unicode
39 -string of "uFFFD" We then convert back to UTF-8 to guarantee only valid
40 -byte sequences remain.
41 ----
42 - lib/facter/util/virtual.rb | 3 ++-
43 - 1 file changed, 2 insertions(+), 1 deletion(-)
44 -
45 -diff --git a/lib/facter/util/virtual.rb b/lib/facter/util/virtual.rb
46 -index 8223b41..65cf58a 100644
47 ---- a/lib/facter/util/virtual.rb
48 -+++ b/lib/facter/util/virtual.rb
49 -@@ -63,7 +63,8 @@ def self.vserver?
50 - return false unless FileTest.exists?("/proc/self/status")
51 - txt = File.open("/proc/self/status", "rb").read
52 - if txt.respond_to?(:encode!)
53 -- txt.encode!('UTF-8', 'UTF-8', :invalid => :replace)
54 -+ txt.encode!('UTF-16', 'UTF-8', :invalid => :replace)
55 -+ txt.encode!('UTF-8', 'UTF-16')
56 - end
57 - return true if txt =~ /^(s_context|VxID):[[:blank:]]*[0-9]/
58 - return false
59 ---
60 -1.8.1.6
61 -