Skip to content

Commit

Permalink
Patch recent versions of nokogiri with system libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
aardvark179 committed Sep 13, 2022
1 parent 47b44a4 commit cff928c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/truffle/truffle/patches/nokogiri_patches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ def self.using_system_libraries?
replacement: "VALUE thing = Qnil;\nVALUE errors = rb_ary_new();",
predicate: -> { using_system_libraries? }
},
{
match: 'VALUE retVal = Qnil;',
replacement: "VALUE retVal = Qnil;\nVALUE errors = rb_ary_new();",
predicate: -> { using_system_libraries? }
},
{
match: 'xmlSetStructuredErrorFunc(NULL, Nokogiri_error_raise);',
replacement: 'xmlSetStructuredErrorFunc(errors, Nokogiri_error_array_pusher);',
Expand Down

0 comments on commit cff928c

Please sign in to comment.