···11+diff --git a/ext/nokogiri/xml_document.c b/ext/nokogiri/xml_document.c
22+index 1d2119c8..c1c87713 100644
33+--- a/ext/nokogiri/xml_document.c
44++++ b/ext/nokogiri/xml_document.c
55+@@ -492,7 +492,7 @@ static int block_caller(void * ctx, xmlNodePtr _node, xmlNodePtr _parent)
66+ * The block must return a non-nil, non-false value if the +obj+ passed in
77+ * should be included in the canonicalized document.
88+ */
99+-static VALUE canonicalize(int argc, VALUE* argv, VALUE self)
1010++static VALUE nokogiri_xml_document_canonicalize(int argc, VALUE* argv, VALUE self)
1111+ {
1212+ VALUE mode;
1313+ VALUE incl_ns;
1414+@@ -573,7 +573,7 @@ void init_xml_document()
1515+ rb_define_method(klass, "encoding", encoding, 0);
1616+ rb_define_method(klass, "encoding=", set_encoding, 1);
1717+ rb_define_method(klass, "version", version, 0);
1818+- rb_define_method(klass, "canonicalize", canonicalize, -1);
1919++ rb_define_method(klass, "nokogiri_xml_document_canonicalize", canonicalize, -1);
2020+ rb_define_method(klass, "dup", duplicate_document, -1);
2121+ rb_define_method(klass, "url", url, 0);
2222+ rb_define_method(klass, "create_entity", create_entity, -1);
+13
pkgs/tools/audio/mpdcron/gemset.nix
···1818 sha256 = "02bjydih0j515szfv9mls195cvpyidh6ixm7dwbl3s2sbaxxk5s4";
1919 type = "gem";
2020 };
2121+2222+ dontBuild = false;
2323+ patches = [
2424+ # Fixes a naming conflict of nokogiri's `canonicalize` function
2525+ # with one defined in glibc. This has been fixed upstream in 2020
2626+ # in a much newer version (1.15.5), but through the divergence
2727+ # of the affected file, the commit isn't directly applicable to
2828+ # the one packaged here:
2929+ #
3030+ # https://github.com/sparklemotion/nokogiri/pull/2106/commits/7a74cdbe4538e964023e5a0fdca58d8af708b91e
3131+ # https://github.com/sparklemotion/nokogiri/issues/2105
3232+ ./fix-canonicalize-conflict-with-glibc.patch
3333+ ];
2134 version = "1.10.3";
2235 };
2336}