js.patch 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. Index: JavaScript-0.55/JavaScript.xs
  2. --- JavaScript-0.55/JavaScript.xs.orig 2005-06-29 21:07:06 +0200
  3. +++ JavaScript-0.55/JavaScript.xs 2006-06-29 19:20:44 +0200
  4. @@ -6,7 +6,7 @@
  5. #else
  6. #include <jsapi.h>
  7. #endif
  8. -#include <malloc.h>
  9. +#include <stdlib.h>
  10. #define _IS_UNDEF(a) (SvANY(a) == SvANY(&PL_sv_undef))
  11. Index: JavaScript-0.55/Makefile.PL
  12. --- JavaScript-0.55/Makefile.PL.orig 2005-06-28 23:49:03 +0200
  13. +++ JavaScript-0.55/Makefile.PL 2006-06-29 19:20:44 +0200
  14. @@ -10,30 +10,13 @@
  15. $define .= " -DXP_UNIX";
  16. }
  17. -my $inc = '';
  18. -
  19. -if(-f "/etc/gentoo-release") {
  20. - # Gentoo puts libjs in a slightly hidden spot.
  21. - $inc = '-I/usr/lib/MozillaFirefox/include/js/ -I/usr/lib/MozillaFirefox/';
  22. -}
  23. -
  24. -#test for debian type include files...
  25. -if (-f "/usr/include/smjs/jsapi.h" or -f "/usr/local/include/smjs/jsapi.h") {
  26. - $define .= " -DINCLUDES_IN_SMJS"
  27. -}
  28. +my $inc = '-I../js/src';
  29. if($ENV{JS_THREADSAFE}) {
  30. $define .= " -DJS_THREADSAFE";
  31. }
  32. -my $lib = "-ljs";
  33. -#test for debian type libsmjs
  34. -#this could probably be done better, but I'm not sure how to
  35. -#get this platform independant
  36. -if (-f "/usr/lib/libsmjs.so" or -f "/usr/local/lib/libsmjs.so") {
  37. - $lib = "-lsmjs";
  38. -}
  39. -
  40. +my $lib = "-L../js/src -ljs";
  41. WriteMakefile(
  42. 'NAME' => 'JavaScript',
  43. Index: JavaScript-SpiderMonkey-0.17/Makefile.PL
  44. --- JavaScript-SpiderMonkey-0.17/Makefile.PL.orig 2006-07-22 22:49:27 +0200
  45. +++ JavaScript-SpiderMonkey-0.17/Makefile.PL 2006-07-22 22:51:30 +0200
  46. @@ -27,6 +27,7 @@
  47. );
  48. my %possible_install_paths = (
  49. + "../js/.libs" => "../js/src",
  50. "../js/src/*" => "../js/src",
  51. "/usr/lib" => "/usr/include",
  52. "/usr/local/lib" => "/usr/local/include",
  53. @@ -108,7 +108,6 @@
  54. 'NAME' => 'JavaScript::SpiderMonkey',
  55. 'VERSION_FROM' => 'SpiderMonkey.pm', # finds $VERSION
  56. 'PREREQ_PM' => {
  57. - 'Log::Log4perl' => 0,
  58. 'Data::Dumper' => 0,
  59. }, # e.g., Module::Name => 1.1
  60. ($] >= 5.005 ? ## Add these new keywords supported since 5.005
  61. Index: JavaScript-SpiderMonkey-0.17/SpiderMonkey.pm
  62. --- JavaScript-SpiderMonkey-0.17/SpiderMonkey.pm.orig 2006-06-13 15:46:00 +0200
  63. +++ JavaScript-SpiderMonkey-0.17/SpiderMonkey.pm 2006-06-29 19:20:44 +0200
  64. @@ -75,7 +75,6 @@
  65. use strict;
  66. use warnings;
  67. use Data::Dumper;
  68. -use Log::Log4perl qw(:easy);
  69. require Exporter;
  70. require DynaLoader;
  71. @@ -555,14 +554,7 @@
  72. ##################################################
  73. sub debug_enabled {
  74. ##################################################
  75. - my $logger = Log::Log4perl::get_logger("JavaScript::SpiderMonkey");
  76. - if(Log::Log4perl->initialized() and $logger->is_debug()) {
  77. - # print "DEBUG IS ENABLED\n";
  78. - return 1;
  79. - } else {
  80. - # print "DEBUG IS DISABLED\n";
  81. - return 0;
  82. - }
  83. + return 0;
  84. }
  85. 1;