Patch to Get WML to Compile Against perl-5.10.x

Shlomi Fish <[email protected]> Mon, 21 Jan 2008 21:39:43 +0200
Newsgroups gmane.comp.web.wml
Message-ID <[email protected]>
--Boundary-00=_/TPlHxzIhRP83Z3
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all!

Attached and included below is a patch to get Website Meta Language (WML) to 
compile against perl-5.10.0 and later, which broke some DynaLoader.a 
compatibility.

It applies directly against one of the ./configure files and I didn't update 
the configure.in yet, because I can no longer GNU Autotools-bootstrap the 
package. I decided that instead of fixing Autohell now and into the future, 
I'll switch the configuration system to CMake, which is what KDE switched to 
using in version 4. So far CMake seems very nifty, and "just works" and an 
difference of heaven and earth to Autoconf/Automake/Libtool, but I only 
really started.

This will delay the release of the next version of Website Meta Language 
somewhat, but I think it will be worth it in the long run.

You can follow me or help here:

http://svn.berlios.de/svnroot/repos/thewml/web-meta-lang/branches/conversion-to-cmake/

Regards,

	Shlomi Fish

<<<<<<<<<
--- wml_backend/p3_eperl/configure.ORIG	2008-01-20 21:49:33.603878058 +0200
+++ wml_backend/p3_eperl/configure	2008-01-20 22:04:40.269355001 +0200
@@ -678,7 +678,11 @@
 #define HAVE_PERL_DYNALOADER 1
 EOF
 
-        perl_dla=$perl_archlib/auto/DynaLoader/DynaLoader.a
+        if perl -e 'exit(! ($] > 5.009))' ; then
+            perl_dla=
+        else
+            perl_dla="$perl_archlib/auto/DynaLoader/DynaLoader.a"
+        fi
         ;;
     * )
         rc=no
>>>>>>>>>>>>>>>

---------------------------------------------------------------------
Shlomi Fish      [email protected]
Homepage:        http://www.shlomifish.org/

I'm not an actor - I just play one on T.V.

--Boundary-00=_/TPlHxzIhRP83Z3
Content-Type: text/x-diff;
  charset="us-ascii";
  name="wml-perl5.10.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="wml-perl5.10.patch"

--- wml_backend/p3_eperl/configure.ORIG	2008-01-20 21:49:33.603878058 +0200
+++ wml_backend/p3_eperl/configure	2008-01-20 22:04:40.269355001 +0200
@@ -678,7 +678,11 @@
 #define HAVE_PERL_DYNALOADER 1
 EOF
 
-        perl_dla=$perl_archlib/auto/DynaLoader/DynaLoader.a
+        if perl -e 'exit(! ($] > 5.009))' ; then
+            perl_dla=
+        else
+            perl_dla="$perl_archlib/auto/DynaLoader/DynaLoader.a"
+        fi
         ;;
     * )
         rc=no

--Boundary-00=_/TPlHxzIhRP83Z3--
_____________________________________________________________________
Website META Language (WML)                         http://thewml.org
User Support Mailing List                        [email protected]
Automated List Manager                            [email protected]