Skip to content

Commit e24dc0c

Browse files
committed
[GR-17457] Patch recent versions of nokogiri with system libraries.
PullRequest: truffleruby/3488
2 parents 47b44a4 + cff928c commit e24dc0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/truffle/truffle/patches/nokogiri_patches.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ def self.using_system_libraries?
7979
replacement: "VALUE thing = Qnil;\nVALUE errors = rb_ary_new();",
8080
predicate: -> { using_system_libraries? }
8181
},
82+
{
83+
match: 'VALUE retVal = Qnil;',
84+
replacement: "VALUE retVal = Qnil;\nVALUE errors = rb_ary_new();",
85+
predicate: -> { using_system_libraries? }
86+
},
8287
{
8388
match: 'xmlSetStructuredErrorFunc(NULL, Nokogiri_error_raise);',
8489
replacement: 'xmlSetStructuredErrorFunc(errors, Nokogiri_error_array_pusher);',

0 commit comments

Comments
 (0)