diff options
Diffstat (limited to 'libraries/tclsoap/patches/xpath.tcl.patch')
-rw-r--r-- | libraries/tclsoap/patches/xpath.tcl.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libraries/tclsoap/patches/xpath.tcl.patch b/libraries/tclsoap/patches/xpath.tcl.patch new file mode 100644 index 0000000000..5aacac3c3b --- /dev/null +++ b/libraries/tclsoap/patches/xpath.tcl.patch @@ -0,0 +1,17 @@ +# adapted from FreeBSD ports (author's email: dereckson@gmail.com) +--- xpath.tcl ++++ xpath.tcl +@@ -14,10 +14,9 @@ + # for more details. + # ------------------------------------------------------------------------- + +-if { [catch {package require dom 2.0}] } { +- if { [catch {package require dom 1.6}] } { ++namespace eval ::SOAP {variable domVersion} ++if { [catch {package require dom} ::SOAP::domVersion] || [package vcompare $::SOAP::domVersion 1.6] < 0} { + error "require dom package greater than 1.6" +- } + } + + namespace eval SOAP::xpath { + |