r19206 - in /trunk/libjavascript-perl/debian: changelog patches/mozjs.patch patches/series

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sun Apr 27 01:34:50 UTC 2008


Author: gregoa
Date: Sun Apr 27 01:34:49 2008
New Revision: 19206

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19206
Log:
Add patch mozjs.patch provided by Mike Hommey to prepare the package for
the newer version of libmozjs-dev (closes: #478064).

Added:
    trunk/libjavascript-perl/debian/patches/mozjs.patch
Modified:
    trunk/libjavascript-perl/debian/changelog
    trunk/libjavascript-perl/debian/patches/series

Modified: trunk/libjavascript-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libjavascript-perl/debian/changelog?rev=19206&op=diff
==============================================================================
--- trunk/libjavascript-perl/debian/changelog (original)
+++ trunk/libjavascript-perl/debian/changelog Sun Apr 27 01:34:49 2008
@@ -3,8 +3,10 @@
   * debian/rules: touch Makefile before $(MAKE) realclean to avoid Makefile
     re-building (and breaking building twice in a row); thanks to Mike
     Hommey for the bug report (closes: #478060).
+  * Add patch mozjs.patch provided by Mike Hommey to prepare the package for
+    the newer version of libmozjs-dev (closes: #478064).
 
- -- gregor herrmann <gregoa at debian.org>  Sun, 27 Apr 2008 03:19:47 +0200
+ -- gregor herrmann <gregoa at debian.org>  Sun, 27 Apr 2008 03:31:10 +0200
 
 libjavascript-perl (1.06-1) unstable; urgency=low
 

Added: trunk/libjavascript-perl/debian/patches/mozjs.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libjavascript-perl/debian/patches/mozjs.patch?rev=19206&op=file
==============================================================================
--- trunk/libjavascript-perl/debian/patches/mozjs.patch (added)
+++ trunk/libjavascript-perl/debian/patches/mozjs.patch Sun Apr 27 01:34:49 2008
@@ -1,0 +1,24 @@
+--- libjavascript-perl.orig/JavaScript.xs
++++ libjavascript-perl/JavaScript.xs
+@@ -266,7 +266,7 @@
+             tmp = SvIV((SV*)SvRV(PJS_call_perl_method("content", function, NULL)));
+             func = INT2PTR(JSFunction *, tmp);
+ 
+-            if (PJS_call_javascript_function(cx, (jsval) (func->object), args, &rval) == JS_FALSE) {
++            if (PJS_call_javascript_function(cx, (jsval) FUN_OBJECT(func), args, &rval) == JS_FALSE) {
+                 /* Exception was thrown */
+                 XSRETURN_UNDEF;
+             }
+--- libjavascript-perl.orig/JavaScript.h
++++ libjavascript-perl/JavaScript.h
+@@ -29,6 +29,10 @@
+ #include "PJS_TypeConversion.h"
+ #include "PJS_Common.h"
+ 
++#ifndef FUN_OBJECT
++#define FUN_OBJECT(func) func->object
++#endif
++
+ #ifdef __cplusplus
+ }
+ #endif

Modified: trunk/libjavascript-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libjavascript-perl/debian/patches/series?rev=19206&op=diff
==============================================================================
--- trunk/libjavascript-perl/debian/patches/series (original)
+++ trunk/libjavascript-perl/debian/patches/series Sun Apr 27 01:34:49 2008
@@ -1,2 +1,3 @@
 pod-errors
 makefile-compile.patch
+mozjs.patch




More information about the Pkg-perl-cvs-commits mailing list