Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods
In directory vz-cvs-3.sog:/tmp/cvs-serv15837/stable/main/finkinfo/libs/perlmods
Modified Files:
tk-pm.info tk-pm.patch
Log Message:
self-test fixes from 10.6
Index: tk-pm.patch
===================================================================
RCS file:
/cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods/tk-pm.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tk-pm.patch 16 Dec 2011 02:04:03 -0000 1.1
+++ tk-pm.patch 1 Aug 2012 20:21:21 -0000 1.2
@@ -43,3 +43,73 @@
'SKIP' => [qw( distclean dist makeaperl xs_o)],
'clean' => {'FILES' => 'libpTk$(LIB_EXT)'}
);
+diff -Nurd -x'*~' Tk-804.030.orig/t/exefiles.t Tk-804.030/t/exefiles.t
+--- Tk-804.030.orig/t/exefiles.t 2010-05-29 05:57:49.000000000 -0400
++++ Tk-804.030/t/exefiles.t 2012-01-20 14:02:56.000000000 -0500
+@@ -9,6 +9,7 @@
+ use strict;
+ use FindBin;
+ use File::Spec;
++use Config;
+
+ BEGIN {
+ if (!eval q{
+@@ -45,7 +46,21 @@
+ for my $opt (@cmd) {
+ my $script = shift @$opt;
+ my $testname = "Executing $script with " . (@$opt ? "@$opt" : "no args");
+- my @cmd = ($^X, "-Mblib", "blib/script/$script", "-geometry", "+10+10",
@$opt);
++ my @cmd;
++ if ($] >= 5.010 && $Config{"byteorder"} =~ /^1/) {
++ # little-endian means intel (not powerpc), for which fink has
++ # multiple single-arch distros that are seen by a single (fat)
++ # perl interp from apple for a perl version supported by fink
++ # (i.e., starting with 5.10.0). This is the logic taken from
++ # Fink::PkgVersion as of fink-0.29.13.
++ push @cmd, '/usr/bin/arch';
++ if ( $Config{"longsize"} == 4 ) {
++ push @cmd, '-i386'; # 32-bit
++ } else {
++ push @cmd, '-x86_64'; # 64-bit
++ }
++ }
++ push @cmd, $^X, "-Mblib", "blib/script/$script", "-geometry", "+10+10",
@$opt;
+ my $pid = fork;
+ if ($pid == 0) {
+ warn "@cmd\n" if $DEBUG;
+diff -Nurd -x'*~' Tk-804.030.orig/t/fileevent.t Tk-804.030/t/fileevent.t
+--- Tk-804.030.orig/t/fileevent.t 2010-05-29 05:56:34.000000000 -0400
++++ Tk-804.030/t/fileevent.t 2012-01-20 14:01:43.000000000 -0500
+@@ -10,6 +10,7 @@
+ use Carp;
+ #use IPADM;
+ use IO::Socket;
++use Config;
+ use Tk;
+ use Tk::LabEntry;
+ use Tk::ROText;
+@@ -277,7 +278,23 @@
+ open STDERR, ">&CW" or die "STDERR open $!";
+ STDOUT->autoflush(1);
+ STDERR->autoflush(1);
+- exec($^X,"/tmp/ipadmh", $DAEMON_HOST, $DAEMON_PORT) or die "exec $!";
++
++ my @cmd;
++ if ($] >= 5.010 && $Config{"byteorder"} =~ /^1/) {
++ # little-endian means intel (not powerpc), for which fink has
++ # multiple single-arch distros that are seen by a single (fat)
++ # perl interp from apple for a perl version supported by fink
++ # (i.e., starting with 5.10.0). This is the logic taken from
++ # Fink::PkgVersion as of fink-0.29.13.
++ push @cmd, '/usr/bin/arch';
++ if ( $Config{"longsize"} == 4 ) {
++ push @cmd, '-i386'; # 32-bit
++ } else {
++ push @cmd, '-x86_64'; # 64-bit
++ }
++ }
++ push @cmd, $^X;
++ exec(@cmd, "/tmp/ipadmh", $DAEMON_HOST, $DAEMON_PORT) or die "exec $!";
+ die "exec warp $!";
+ } else {
+ die "fork $!";
Index: tk-pm.info
===================================================================
RCS file:
/cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/perlmods/tk-pm.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- tk-pm.info 2 Jul 2012 17:46:40 -0000 1.3
+++ tk-pm.info 1 Aug 2012 20:21:21 -0000 1.4
@@ -43,7 +43,7 @@
NoPerlTests: true
UseMaxBuildJobs: false
PatchFile: %{ni}.patch
-PatchFile-MD5: 2af635cd66aff030efac922560dd2a75
+PatchFile-MD5: 94fc21aeb6fb446819fac28a641bbc49
PatchScript: <<
%{default_script}
@@ -64,6 +64,12 @@
# source tarball is not world-readable, makes debugging hard
find . -type d | xargs chmod a+r
+
+ # sometimes fail due to local font/x11-wm issues (see README)
+ rm t/entry.t t/listbox.t
+
+ # fails on some x servers (no keycode for keysym "Left")
+ rm t/unicode.t
<<
ConfigureParams: DEFINE=-MD
CompileScript: <<
@@ -73,6 +79,15 @@
%{default_script}
fink-package-precedence --depfile-ext='\.d' .
<<
+InfoTest: <<
+ TestDepends: <<
+ devel-leak-pm%type_pkg[perl],
+ xvfb-run
+ <<
+ TestScript: <<
+ xvfb-run make test || exit 2
+ <<
+<<
InstallScript: <<
#!/bin/sh -ev
%{default_script}
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs