diff options
author | dholland <dholland@pkgsrc.org> | 2011-10-15 17:53:51 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2011-10-15 17:53:51 +0000 |
commit | 36be5f8a5093d4722ffc860ac3aacff1a66c1f46 (patch) | |
tree | 63962628b09cfd24be585ad634d7d1018a39467e /textproc/p5-XML-Sablotron | |
parent | 8f5f61f5ab4afc4df88a6e51e8cb54d5bf1af829 (diff) | |
download | pkgsrc-36be5f8a5093d4722ffc860ac3aacff1a66c1f46.tar.gz |
Fix build with perl 5.14... I think. Someone who actually knows how to
write Perl bindings should double-check this.
XXX: This will almost certainly not work on LP64 platforms as it casts
XXX: Perl-provided pointers to int and back. However, fixing this
XXX: requires changing the API of the parent Sablotron package, which
XXX: doesn't seem like a great idea at the moment.
Diffstat (limited to 'textproc/p5-XML-Sablotron')
-rw-r--r-- | textproc/p5-XML-Sablotron/distinfo | 4 | ||||
-rw-r--r-- | textproc/p5-XML-Sablotron/patches/patch-DOM_DOM_xsh | 13 | ||||
-rw-r--r-- | textproc/p5-XML-Sablotron/patches/patch-Processor_Processor_h | 184 |
3 files changed, 200 insertions, 1 deletions
diff --git a/textproc/p5-XML-Sablotron/distinfo b/textproc/p5-XML-Sablotron/distinfo index 85e152cd20a..a1558fb8351 100644 --- a/textproc/p5-XML-Sablotron/distinfo +++ b/textproc/p5-XML-Sablotron/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.3 2010/09/19 11:20:37 wiz Exp $ +$NetBSD: distinfo,v 1.4 2011/10/15 17:53:51 dholland Exp $ SHA1 (XML-Sablotron-1.01.tar.gz) = 0a7b688b20300f95993e0c1f56761eb0d504772a RMD160 (XML-Sablotron-1.01.tar.gz) = e4a4a9ca520ed9096ea0fced2fe4d43f227e0953 Size (XML-Sablotron-1.01.tar.gz) = 53023 bytes +SHA1 (patch-DOM_DOM_xsh) = c9ea56c62f143b20ea671f1c17561fc608e01740 +SHA1 (patch-Processor_Processor_h) = de8ca228c4249e7e00805dcc323b2383315b7b53 diff --git a/textproc/p5-XML-Sablotron/patches/patch-DOM_DOM_xsh b/textproc/p5-XML-Sablotron/patches/patch-DOM_DOM_xsh new file mode 100644 index 00000000000..7d4d2fe2fbb --- /dev/null +++ b/textproc/p5-XML-Sablotron/patches/patch-DOM_DOM_xsh @@ -0,0 +1,13 @@ +$NetBSD: patch-DOM_DOM_xsh,v 1.1 2011/10/15 17:53:51 dholland Exp $ + +--- DOM/DOM.xsh~ 2003-02-24 14:01:12.000000000 +0000 ++++ DOM/DOM.xsh +@@ -635,7 +635,7 @@ xql_ns(object, expr, nsmap, ...) + i = 0; + hv_iterinit(maph); + while (he = hv_iternext(maph)) { +- int l; ++ ssize_t l; + if (++nsnum > 10 * mapsize) { + mapsize++; + nsarr = realloc(nsarr, (10*2*mapsize + 1) * sizeof(char*)); diff --git a/textproc/p5-XML-Sablotron/patches/patch-Processor_Processor_h b/textproc/p5-XML-Sablotron/patches/patch-Processor_Processor_h new file mode 100644 index 00000000000..b32ef67c877 --- /dev/null +++ b/textproc/p5-XML-Sablotron/patches/patch-Processor_Processor_h @@ -0,0 +1,184 @@ +$NetBSD: patch-Processor_Processor_h,v 1.1 2011/10/15 17:53:51 dholland Exp $ + +--- Processor/Processor.h.orig 2004-06-04 13:20:40.000000000 +0000 ++++ Processor/Processor.h +@@ -119,7 +119,7 @@ MessageHandlerMakeCodeStub(void *userDat + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + XPUSHs(sv_2mortal(newSViv(severity))); + XPUSHs(sv_2mortal(newSViv(facility))); + XPUSHs(sv_2mortal(newSViv(code))); +@@ -167,7 +167,7 @@ MessageHandlerLogStub(void *userData, vo + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + XPUSHs(sv_2mortal(newSViv(code))); + XPUSHs(sv_2mortal(newSViv(level))); + foo = fields; +@@ -215,7 +215,7 @@ MessageHandlerErrorStub(void *userData, + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + XPUSHs(sv_2mortal(newSViv(code))); + XPUSHs(sv_2mortal(newSViv(level))); + foo = fields; +@@ -250,7 +250,7 @@ int SchemeHandlerGetAllStub(void *userDa + GV *gv; + unsigned long ret = 0; + SV *value; +- unsigned int len; ++ size_t len; + + wrapper = (SV*)userData; + +@@ -270,7 +270,7 @@ int SchemeHandlerGetAllStub(void *userDa + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + XPUSHs(sv_2mortal(newSVpv((char*) scheme, strlen(scheme)))); + XPUSHs(sv_2mortal(newSVpv((char*) rest, strlen(rest)))); + +@@ -337,7 +337,7 @@ int SchemeHandlerOpenStub(void *userData + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + XPUSHs(sv_2mortal(newSVpv((char*) scheme, strlen(scheme)))); + XPUSHs(sv_2mortal(newSVpv((char*) rest, strlen(rest)))); + +@@ -375,7 +375,7 @@ int SchemeHandlerGetStub(void *userData, + GV *gv; + unsigned long ret = 0; + SV *value; +- unsigned int len; ++ size_t len; + + wrapper = (SV*)userData; + +@@ -395,7 +395,7 @@ int SchemeHandlerGetStub(void *userData, + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + XPUSHs((SV*)handle); + XPUSHs(sv_2mortal(newSViv(*byteCount))); + PUTBACK; +@@ -453,7 +453,7 @@ int SchemeHandlerPutStub(void *userData, + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + XPUSHs((SV*) handle); + XPUSHs(sv_2mortal(newSVpv((char*) buffer, *byteCount))); + PUTBACK; +@@ -506,7 +506,7 @@ int SchemeHandlerCloseStub(void *userDat + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + XPUSHs((SV*) handle); + + PUTBACK; +@@ -553,7 +553,7 @@ void SAXHandlerStartDocumentStub(void* u + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + + PUTBACK; + +@@ -593,7 +593,7 @@ void SAXHandlerStartElementStub(void* us + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + + XPUSHs(sv_2mortal(newSVpv((char*) name, strlen(name)))); + att = (char**)atts; +@@ -639,7 +639,7 @@ void SAXHandlerEndElementStub(void* user + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + + XPUSHs(sv_2mortal(newSVpv((char*) name, strlen(name)))); + +@@ -680,7 +680,7 @@ void SAXHandlerStartNamespaceStub(void* + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + + XPUSHs(sv_2mortal(newSVpv((char*) prefix, strlen(prefix)))); + XPUSHs(sv_2mortal(newSVpv((char*) uri, strlen(uri)))); +@@ -722,7 +722,7 @@ void SAXHandlerEndNamespaceStub(void* us + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + + XPUSHs(sv_2mortal(newSVpv((char*) prefix, strlen(prefix)))); + +@@ -763,7 +763,7 @@ void SAXHandlerCommentStub(void* userDat + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + + XPUSHs(sv_2mortal(newSVpv((char*) contents, strlen(contents)))); + +@@ -804,7 +804,7 @@ void SAXHandlerPIStub(void* userData, vo + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + + XPUSHs(sv_2mortal(newSVpv((char*) target, strlen(target)))); + XPUSHs(sv_2mortal(newSVpv((char*) contents, strlen(contents)))); +@@ -846,7 +846,7 @@ void SAXHandlerCharactersStub(void* user + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + + XPUSHs(sv_2mortal(newSVpv((char*) contents, length))); + +@@ -886,7 +886,7 @@ void SAXHandlerEndDocumentStub(void* use + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + + PUTBACK; + +@@ -931,7 +931,7 @@ MiscHandlerDocumentInfoStub(void* userDa + if (processor_obj) + XPUSHs(processor_obj); + else +- XPUSHs(&sv_undef); ++ XPUSHs(&PL_sv_undef); + XPUSHs(sv_2mortal(newSVpv((char*) contentType, strlen(contentType)))); + XPUSHs(sv_2mortal(newSVpv((char*) encoding, strlen(encoding)))); + |