Subject: | firefox 3.0 compatibility patch |
Attached xulrunner.patch helps Mozilla::DOM to compile and work on
Ubuntu 8.04 using xulrunner-1.9.
Subject: | xulrunner.patch |
diff -ur Mozilla-DOM-0.21/Makefile.PL new/Mozilla-DOM-0.21/Makefile.PL
--- Mozilla-DOM-0.21/Makefile.PL 2007-06-06 23:40:06.000000000 +0300
+++ new/Mozilla-DOM-0.21/Makefile.PL 2008-06-07 13:57:26.000000000 +0300
@@ -17,6 +17,7 @@
my $mozpkg = 'mozilla-xpcom';
my $ffpkg = 'firefox-xpcom';
my $mffpkg = 'mozilla-firefox-xpcom';
+my $lxupgk = 'libxul-unstable';
our %build_reqs = (
'perl-ExtUtils-Depends' => '0.205',
@@ -24,6 +25,7 @@
$mozpkg => '1.7',
$ffpkg => '1.0',
$mffpkg => '1.0',
+ $lxupgk => '1.9',
);
unless (eval "use ExtUtils::Depends '$build_reqs{'perl-ExtUtils-Depends'}';"
@@ -42,9 +44,11 @@
my %pkgcfg = ExtUtils::PkgConfig->find("$mozpkg >= " . $build_reqs{$mozpkg},
"$ffpkg >= " . $build_reqs{$ffpkg},
+ "$lxupgk >= " . $build_reqs{$lxupgk},
"$mffpkg >= " . $build_reqs{$mffpkg});
my ($pkg) = $pkgcfg{pkg} =~ /^(\S+-xpcom)/;
+$pkg = $pkgcfg{pkg} unless $pkg;
mkdir 'build', 0777;
diff -ur Mozilla-DOM-0.21/xs/DOM.xs new/Mozilla-DOM-0.21/xs/DOM.xs
--- Mozilla-DOM-0.21/xs/DOM.xs 2007-06-07 00:05:57.000000000 +0300
+++ new/Mozilla-DOM-0.21/xs/DOM.xs 2008-06-07 13:57:26.000000000 +0300
@@ -4351,39 +4351,6 @@
OUTPUT:
RETVAL
-## IntersectsNode(nsIDOMNode *n, PRBool *_retval)
-PRBool
-moz_dom_IntersectsNode (nsrange, n)
- nsIDOMNSRange *nsrange;
- nsIDOMNode * n;
- PREINIT:
- PRBool _retval;
- CODE:
- nsrange->IntersectsNode(n, &_retval);
- RETVAL = _retval;
- OUTPUT:
- RETVAL
-
-## CompareNode(nsIDOMNode *n, PRUint16 *_retval)
-PRUint16
-moz_dom_CompareNode (nsrange, n)
- nsIDOMNSRange *nsrange;
- nsIDOMNode * n;
- PREINIT:
- PRUint16 _retval;
- CODE:
- nsrange->CompareNode(n, &_retval);
- RETVAL = _retval;
- OUTPUT:
- RETVAL
-
-## NSDetach(void)
-void
-moz_dom_NSDetach (nsrange)
- nsIDOMNSRange *nsrange;
- CODE:
- nsrange->NSDetach();
-
# -----------------------------------------------------------------------------