r46624 - in /trunk/libalien-wxwidgets-perl: Changes META.yml debian/changelog inc/My/Build/Any_wx_config.pm inc/My/Build/MacOSX_wx_config.pm lib/Alien/wxWidgets.pm

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Sun Nov 1 02:50:34 UTC 2009


Author: jawnsy-guest
Date: Sun Nov  1 02:50:28 2009
New Revision: 46624

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=46624
Log:
NO RELEASE NECESSARY. Fixes for MacOS
IGNORE-VERSION: 0.45+dfsg-1
* New upstream release

Modified:
    trunk/libalien-wxwidgets-perl/Changes
    trunk/libalien-wxwidgets-perl/META.yml
    trunk/libalien-wxwidgets-perl/debian/changelog
    trunk/libalien-wxwidgets-perl/inc/My/Build/Any_wx_config.pm
    trunk/libalien-wxwidgets-perl/inc/My/Build/MacOSX_wx_config.pm
    trunk/libalien-wxwidgets-perl/lib/Alien/wxWidgets.pm

Modified: trunk/libalien-wxwidgets-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalien-wxwidgets-perl/Changes?rev=46624&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/Changes (original)
+++ trunk/libalien-wxwidgets-perl/Changes Sun Nov  1 02:50:28 2009
@@ -1,4 +1,8 @@
 Revision history for Perl extension Alien::wxWidgets.
+
+0.45  Wed Oct 14 22:54:35 CEST 2009
+	- On Snow Leopard, abort wxWidgets build if Perl is 64 bit.
+	- On Snow Leopard, force wxWidgets build to be 32 bit.
 
 0.44  Sun Aug  9 12:56:05 CEST 2009
 	- Rename all command line options to avoid clashing with

Modified: trunk/libalien-wxwidgets-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalien-wxwidgets-perl/META.yml?rev=46624&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/META.yml (original)
+++ trunk/libalien-wxwidgets-perl/META.yml Sun Nov  1 02:50:28 2009
@@ -1,6 +1,6 @@
 ---
 name: Alien-wxWidgets
-version: 0.44
+version: 0.45
 author:
   - 'Mattia Barbon <mbarbon at cpan.org>'
 abstract: 'building, finding and using wxWidgets binaries'
@@ -18,7 +18,7 @@
 provides:
   Alien::wxWidgets:
     file: lib/Alien/wxWidgets.pm
-    version: 0.44
+    version: 0.45
   Alien::wxWidgets::Utility:
     file: lib/Alien/wxWidgets/Utility.pm
 generated_by: Module::Build version 0.34

Modified: trunk/libalien-wxwidgets-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalien-wxwidgets-perl/debian/changelog?rev=46624&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/debian/changelog (original)
+++ trunk/libalien-wxwidgets-perl/debian/changelog Sun Nov  1 02:50:28 2009
@@ -1,4 +1,10 @@
-libalien-wxwidgets-perl (0.44+dfsg-2) UNRELEASED; urgency=low
+libalien-wxwidgets-perl (0.45+dfsg-1) UNRELEASED; urgency=low
+
+  NO RELEASE NECESSARY. Fixes for MacOS
+  IGNORE-VERSION: 0.45+dfsg-1
+
+  [ Jonathan Yu ]
+  * New upstream release
 
   [ Roberto C. Sanchez ]
   * Tighten up Build-Depends:
@@ -10,7 +16,7 @@
   * debian/control: Changed: (build-)depend on perl instead of perl-
     modules.
 
- -- Roberto C. Sanchez <roberto at connexer.com>  Sat, 26 Sep 2009 23:45:57 -0400
+ -- Jonathan Yu <jawnsy at cpan.org>  Sat, 31 Oct 2009 19:04:46 -0400
 
 libalien-wxwidgets-perl (0.44+dfsg-1) unstable; urgency=low
 

Modified: trunk/libalien-wxwidgets-perl/inc/My/Build/Any_wx_config.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalien-wxwidgets-perl/inc/My/Build/Any_wx_config.pm?rev=46624&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/inc/My/Build/Any_wx_config.pm (original)
+++ trunk/libalien-wxwidgets-perl/inc/My/Build/Any_wx_config.pm Sun Nov  1 02:50:28 2009
@@ -203,6 +203,19 @@
 
 sub build_wxwidgets {
     my $self = shift;
+
+    my $extra_flags = '';
+
+    # on Snow Leopard, force wxWidgets 2.8.x builds to be 32-bit
+    if(    $Config{osname} =~ /darwin/
+         && `uname -r` =~ /^10\./
+         && `sysctl hw.cpu64bit_capable` =~ /^hw.cpu64bit_capable: 1/ ) {
+        print "Forcing wxWidgets build to 32 bit\n";
+        $extra_flags = join ' ', map { qq{$_="-arch i386"} }
+                                     qw(CFLAGS CXXFLAGS LDFLAGS
+                                        OBJCFLAGS OBJCXXFLAGS);
+    }
+
     my $prefix_dir = $self->_key;
     my $prefix = awx_install_arch_dir( $self, $prefix_dir );
     my $opengl = $self->notes( 'build_wx_opengl' );
@@ -217,7 +230,7 @@
     my $cmd = "echo exit | " . # for OS X 10.3...
               "sh ../configure --prefix=$prefix $args --$unicode-unicode"
             . " --$debug-debug --$monolithic-monolithic"
-            . " --$universal-universal_binary";
+            . " --$universal-universal_binary $extra_flags";
     my $old_dir = Cwd::cwd;
 
     chdir $dir;

Modified: trunk/libalien-wxwidgets-perl/inc/My/Build/MacOSX_wx_config.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalien-wxwidgets-perl/inc/My/Build/MacOSX_wx_config.pm?rev=46624&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/inc/My/Build/MacOSX_wx_config.pm (original)
+++ trunk/libalien-wxwidgets-perl/inc/My/Build/MacOSX_wx_config.pm Sun Nov  1 02:50:28 2009
@@ -2,6 +2,8 @@
 
 use strict;
 use base qw(My::Build::Any_wx_config);
+
+use Config;
 
 sub awx_wx_config_data {
     my $self = shift;
@@ -37,4 +39,22 @@
 sub awx_build_toolkit { 'mac' }
 sub awx_dlext { 'dylib' }
 
+sub build_wxwidgets {
+    my( $self ) = @_;
+
+    # can't build wxWidgets 2.8.x with 64 bit Perl
+    if(    $Config{ptrsize} == 8
+        && $self->notes( 'build_data' )->{data}{version} =~ /^2.8/ ) {
+        print <<EOT;
+======================================================================
+Can't build wxWidgets 2.8.x to work with a 64-bit Perl, you will need
+to recompile your Perl as a 32-bit binary.
+======================================================================
+EOT
+        exit 1;
+    }
+
+    $self->SUPER::build_wxwidgets;
+}
+
 1;

Modified: trunk/libalien-wxwidgets-perl/lib/Alien/wxWidgets.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalien-wxwidgets-perl/lib/Alien/wxWidgets.pm?rev=46624&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/lib/Alien/wxWidgets.pm (original)
+++ trunk/libalien-wxwidgets-perl/lib/Alien/wxWidgets.pm Sun Nov  1 02:50:28 2009
@@ -43,7 +43,7 @@
                       instantiate   => 'config';
 
 our $AUTOLOAD;
-our $VERSION = '0.44';
+our $VERSION = '0.45';
 our %VALUES;
 our $dont_remap;
 




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