Ticket #27365: patch-xml-light-port.diff

File patch-xml-light-port.diff, 1.3 KB (added by eric@…, 14 years ago)

Patch file to fix bug

  • Portfile

    diff -Nur xml-light.orig/Portfile xml-light/Portfile
    old new  
    44
    55name                xml-light
    66version             2.2
    7 revision            1
     7revision            2
    88categories          devel textproc
    99maintainers         recoil.org:anil
    1010description         Objective Caml interface for XML parsing and printing
     
    2424depends_lib         port:ocaml
    2525set instdir         ${destroot}${prefix}/lib/ocaml/site-lib/xml-light
    2626destroot.args       INSTALLDIR=${instdir}
     27patchfiles          patch-dtd.ml.diff
    2728pre-destroot {
    2829        file mkdir ${instdir}
    2930}
  • files/patch-dtd.ml.diff

    diff -Nur xml-light.orig/files/patch-dtd.ml.diff xml-light/files/patch-dtd.ml.diff
    old new  
     1--- dtd.ml.orig 2010-11-21 15:35:54.000000000 -0800
     2+++ dtd.ml      2010-11-21 15:36:18.000000000 -0800
     3@@ -267,7 +267,7 @@
     4 exception TmpResult of dtd_result
     5 
     6 let prove_child dtd tag =
     7-       trace dtd tag;
     8+       (* trace dtd tag; *)
     9        match dtd.current with
     10        | DTDEmpty -> raise (Prove_error EmptyExpected)
     11        | DTDAny -> ()