From e915d8315e7b432bf56ddc3e1b436f117c4b6cdb Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Wed, 13 May 2015 10:01:00 +0200 Subject: [PATCH] 804.033 bump --- .gitignore | 1 + ...Tk-MMutil-use-X-instead-of-self-PERL.patch | 57 -------------- ...e-instead-of-stdin-in-t-fileevent2.t.patch | 47 ------------ ...-fix-race-condition-in-errordialog.t.patch | 72 ------------------ ...for-usr-include-freetype2-freetype.h.patch | 40 ---------- ...Tk-MainWindow-Create-was-called-with.patch | 33 -------- ...or-Tk-MainWindow-Create-without-args.patch | 39 ---------- ...te-comment-about-freetype.h-location.patch | 35 --------- perl-Tk-debian.patch.gz | Bin 790 -> 0 bytes perl-Tk.spec | 40 ++-------- sources | 2 +- 11 files changed, 8 insertions(+), 358 deletions(-) delete mode 100644 Tk-804.032-Tk-MMutil-use-X-instead-of-self-PERL.patch delete mode 100644 Tk-804.032-Use-pipe-instead-of-stdin-in-t-fileevent2.t.patch delete mode 100644 Tk-804.032-fix-race-condition-in-errordialog.t.patch delete mode 100644 Tk-804.032-look-also-for-usr-include-freetype2-freetype.h.patch delete mode 100644 Tk-804.032-no-segfaults-if-Tk-MainWindow-Create-was-called-with.patch delete mode 100644 Tk-804.032-test-case-for-Tk-MainWindow-Create-without-args.patch delete mode 100644 Tk-804.032-update-comment-about-freetype.h-location.patch delete mode 100644 perl-Tk-debian.patch.gz diff --git a/.gitignore b/.gitignore index b1ab579..93e4fc0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ Tk-804.028_503.tar.gz /Tk-804.030.tar.gz /Tk-804.031.tar.gz /Tk-804.032.tar.gz +/Tk-804.033.tar.gz diff --git a/Tk-804.032-Tk-MMutil-use-X-instead-of-self-PERL.patch b/Tk-804.032-Tk-MMutil-use-X-instead-of-self-PERL.patch deleted file mode 100644 index 39eebc2..0000000 --- a/Tk-804.032-Tk-MMutil-use-X-instead-of-self-PERL.patch +++ /dev/null @@ -1,57 +0,0 @@ -From f579b535e68977bab6547ac58a0fe62791ea2309 Mon Sep 17 00:00:00 2001 -From: Slaven Rezic -Date: Thu, 6 Nov 2014 20:02:45 +0000 -Subject: [PATCH] Tk::MMutil: use $^X instead of $self->{PERL} -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Since ExtUtils::MakeMaker 6.99_10, the PERL object member is quoted. -This caused the subsequent extraction commands to be run with an -invalid command (the perl binary *with* quotes). Unfortunately -this system() call failed silently, so the real problem showed -up in a strange dependency problem, see -https://rt.cpan.org/Ticket/Display.html?id=100044 - -Instead of $self->{PERL}, now simply $^X is used. Also, the -extraction commands do not fail silently anymore. - -Reference to the EUMM ticket: -https://rt.cpan.org/Ticket/Display.html?id=100159 - -Signed-off-by: Petr Písař ---- - Tk/MMutil.pm | 12 ++++-------- - 1 file changed, 4 insertions(+), 8 deletions(-) - -diff --git a/Tk/MMutil.pm b/Tk/MMutil.pm -index 7a78c1b..6df5c70 100644 ---- a/Tk/MMutil.pm -+++ b/Tk/MMutil.pm -@@ -115,19 +115,15 @@ sub mTk_CHO - $self->{O_FILES} = [grep s/\.c(pp|xx|c)?$/$self->{OBJ_EXT}/i, @o_files] ; - $self->{'MTK'} = $mTk; - my $tk = installed_tk(); -- my $perl = $self->{'PERL'}; -- if ($IsWin32 && !-f $perl && -f "$perl.exe") -- { -- print "perl=$perl X=$^X\n"; -- $perl = "$perl.exe"; -- $self->{'PERL'} = $perl; -- } -+ my $perl = $^X; - foreach my $file (sort keys %$mTk) - { - unless (-f $file && -M $file < -M $mTk->{$file}) - { - warn "Extracting $file\n"; -- system($perl,"$tk/pTk/Tcl-pTk",$mTk->{$file},$file); -+ my @cmd = ($perl,"$tk/pTk/Tcl-pTk",$mTk->{$file},$file); -+ system @cmd; -+ die "The command '@cmd' failed with $?" if $? != 0; - } - } - } --- -1.9.3 - diff --git a/Tk-804.032-Use-pipe-instead-of-stdin-in-t-fileevent2.t.patch b/Tk-804.032-Use-pipe-instead-of-stdin-in-t-fileevent2.t.patch deleted file mode 100644 index d729df7..0000000 --- a/Tk-804.032-Use-pipe-instead-of-stdin-in-t-fileevent2.t.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 2ac8da8459e36d0a5479d9a86855ab3925ce8789 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= -Date: Mon, 15 Sep 2014 10:14:11 +0200 -Subject: [PATCH] Use pipe instead of stdin in t/fileevent2.t -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -t/fileevent2.t fails if standard input is not a blocking descriptor -without read events. E.g. /dev/null. This patch uses a private pipe -instead of relying on stdin which can be anything. - -CPAN RT#98891 - -Signed-off-by: Petr Písař ---- - t/fileevent2.t | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/t/fileevent2.t b/t/fileevent2.t -index 825ec31..ad22198 100755 ---- a/t/fileevent2.t -+++ b/t/fileevent2.t -@@ -21,7 +21,7 @@ BEGIN { - } - } - --plan tests => 1; -+plan tests => 2; - - my @fh; - my $callback_called = 0; -@@ -35,8 +35,10 @@ $mw->idletasks; - # - # tclUnixNotify.c used to do bit-handling for the select() mask - # itself, but this was broken for 64bit machines. -+my ($rpipe, $wpipe); -+ok(pipe($rpipe, $wpipe), 'create blocking descriptors'); - for (1..100) { -- open my $dup, "<&", \*STDIN or die "Can't dup STDIN: $!"; -+ open my $dup, "<&", $rpipe or die "Can't dup rpipe: $!"; - push @fh, $dup; - $mw->fileevent($dup, "readable", sub { $callback_called++ }); - } --- -1.9.3 - diff --git a/Tk-804.032-fix-race-condition-in-errordialog.t.patch b/Tk-804.032-fix-race-condition-in-errordialog.t.patch deleted file mode 100644 index 5b65eab..0000000 --- a/Tk-804.032-fix-race-condition-in-errordialog.t.patch +++ /dev/null @@ -1,72 +0,0 @@ -From 04794000cf849e0c03a9e056222fb4758a55b04b Mon Sep 17 00:00:00 2001 -From: Slaven Rezic -Date: Sun, 27 Apr 2014 21:06:21 +0200 -Subject: [PATCH 06/10] fix race condition in errordialog.t -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Test used to fail if the afterIdle callback with the die() was -executed after the checking callback. This could happen on slow (e.g. -remote) X11 connections. - -Signed-off-by: Petr Písař ---- - t/errordialog.t | 33 +++++++++++++++++++-------------- - 1 file changed, 19 insertions(+), 14 deletions(-) - -diff --git a/t/errordialog.t b/t/errordialog.t -index 3036e5b..ffd1b71 100755 ---- a/t/errordialog.t -+++ b/t/errordialog.t -@@ -27,21 +27,13 @@ use_ok 'Tk::ErrorDialog'; - my $mw = tkinit; - $mw->geometry("+10+10"); - --my $errmsg = "Intentional error."; --$mw->afterIdle(sub { die "$errmsg\n" }); -- - my $ed; --$mw->after(100, sub { -- my $dialog = search_error_dialog($mw); -- isa_ok($dialog, "Tk::Dialog", "dialog"); -- $ed = $dialog; -- my $error_stacktrace_toplevel = search_error_stacktrace_toplevel($mw); -- isa_ok($error_stacktrace_toplevel, 'Tk::ErrorDialog', 'Found stacktrace window'); -- is($error_stacktrace_toplevel->state, 'withdrawn', 'Stacktrace not visible'); -- $error_stacktrace_toplevel->geometry('+0+0'); # for WMs with interactive placement -- $dialog->SelectButton('Stack trace'); -- second_error(); -- }); -+ -+my $errmsg = "Intentional error."; -+$mw->afterIdle(sub { -+ $mw->after(100, \&first_error); -+ die "$errmsg\n"; -+ }); - - $mw->after(20*1000, sub { - if (Tk::Exists($mw)) { -@@ -51,6 +43,19 @@ $mw->after(20*1000, sub { - }); - MainLoop; - -+# fills $ed -+sub first_error { -+ my $dialog = search_error_dialog($mw); -+ isa_ok($dialog, "Tk::Dialog", "dialog"); -+ $ed = $dialog; -+ my $error_stacktrace_toplevel = search_error_stacktrace_toplevel($mw); -+ isa_ok($error_stacktrace_toplevel, 'Tk::ErrorDialog', 'Found stacktrace window'); -+ is($error_stacktrace_toplevel->state, 'withdrawn', 'Stacktrace not visible'); -+ $error_stacktrace_toplevel->geometry('+0+0'); # for WMs with interactive placement -+ $dialog->SelectButton('Stack trace'); -+ second_error(); -+} -+ - sub second_error { - $mw->afterIdle(sub { die "$errmsg\n" }); - $mw->after(100, sub { --- -1.9.3 - diff --git a/Tk-804.032-look-also-for-usr-include-freetype2-freetype.h.patch b/Tk-804.032-look-also-for-usr-include-freetype2-freetype.h.patch deleted file mode 100644 index 85199a2..0000000 --- a/Tk-804.032-look-also-for-usr-include-freetype2-freetype.h.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 1ca4589ef5a87999ec564081900bc8fdaed83c74 Mon Sep 17 00:00:00 2001 -From: Slaven Rezic -Date: Sun, 2 Mar 2014 12:10:31 +0100 -Subject: [PATCH 01/10] look also for /usr/include/freetype2/freetype.h -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -In some freetype installations (e.g. Debian/jessie) the intermediate -"freetype" directory may be missing in the include path. - -This should fix -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740207 - -Signed-off-by: Petr Písař ---- - myConfig | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/myConfig b/myConfig -index 02d2ee5..3ca8144 100755 ---- a/myConfig -+++ b/myConfig -@@ -147,7 +147,12 @@ sub Ift - { - foreach (map { "$_/freetype2" } @_) - { -- if (-d $_ && -d "$_/freetype" && -r "$_/freetype/freetype.h") -+ if (-r "$_/freetype.h") # location in Debian (since jessie) -+ { -+ print "Using -I$_ to find $_/freetype/freetype.h\n"; -+ return "-I$_"; -+ } -+ if (-r "$_/freetype/freetype.h") # location in FreeBSD (up to version 10.0) and Debian (up to wheezy) - { - print "Using -I$_ to find $_/freetype/freetype.h\n"; - return "-I$_"; --- -1.9.3 - diff --git a/Tk-804.032-no-segfaults-if-Tk-MainWindow-Create-was-called-with.patch b/Tk-804.032-no-segfaults-if-Tk-MainWindow-Create-was-called-with.patch deleted file mode 100644 index d81742b..0000000 --- a/Tk-804.032-no-segfaults-if-Tk-MainWindow-Create-was-called-with.patch +++ /dev/null @@ -1,33 +0,0 @@ -From ba3a92a779f7adcf655b7e45b40ee5b0cb79bc8b Mon Sep 17 00:00:00 2001 -From: Slaven Rezic -Date: Fri, 14 Mar 2014 16:00:05 +0100 -Subject: [PATCH 02/10] no segfaults if Tk::MainWindow::Create was called - without args -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -However, this case never happened in real life, as this function was -not supposed to be used directly anyway. - -Signed-off-by: Petr Písař ---- - tkGlue.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tkGlue.c b/tkGlue.c -index 57f0bca..ae595bf 100644 ---- a/tkGlue.c -+++ b/tkGlue.c -@@ -2370,7 +2370,7 @@ XS(XS_Tk__MainWindow_Create) - STRLEN na; - Tcl_Interp *interp = Tcl_CreateInterp(); - SV **args = &ST(0); -- char *appName = SvPV(ST(1),na); -+ char *appName = items >= 1 ? SvPV(ST(1),na) : ""; - int offset = args - sp; - int code; - if (!initialized) --- -1.9.3 - diff --git a/Tk-804.032-test-case-for-Tk-MainWindow-Create-without-args.patch b/Tk-804.032-test-case-for-Tk-MainWindow-Create-without-args.patch deleted file mode 100644 index c63ee2b..0000000 --- a/Tk-804.032-test-case-for-Tk-MainWindow-Create-without-args.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 567210e099deb8b3c77e8d24161563f8bdec4a08 Mon Sep 17 00:00:00 2001 -From: Slaven Rezic -Date: Fri, 14 Mar 2014 16:05:09 +0100 -Subject: [PATCH 03/10] test case for Tk::MainWindow::Create without args -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Signed-off-by: Petr Písař ---- - t/create.t | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/t/create.t b/t/create.t -index 8843acc..a367530 100644 ---- a/t/create.t -+++ b/t/create.t -@@ -80,7 +80,7 @@ BEGIN - ($^O eq 'cygwin' and defined($Tk::platform) - and $Tk::platform eq 'MSWin32')); - -- plan test => (15*@class+3); -+ plan test => (15*@class+4); - - }; - -@@ -93,6 +93,9 @@ ok($@, "", "can't create MainWindow"); - ok(Tk::Exists($mw), 1, "MainWindow creation failed"); - eval { $mw->geometry('+10+10'); }; # This works for mwm and interactivePlacement - -+eval { Tk::MainWindow::Create() }; -+ok($@ =~ qr{wrong # args: should be .*Tk::MainWindow::Create pathName}, 1, "no segfault for Tk::MainWindow::Create without args"); -+ - my $w; - foreach my $class (@class) - { --- -1.9.3 - diff --git a/Tk-804.032-update-comment-about-freetype.h-location.patch b/Tk-804.032-update-comment-about-freetype.h-location.patch deleted file mode 100644 index 89b14cd..0000000 --- a/Tk-804.032-update-comment-about-freetype.h-location.patch +++ /dev/null @@ -1,35 +0,0 @@ -From e938fd3c94cd6f91fed4eb8aa217ec855dd4f00b Mon Sep 17 00:00:00 2001 -From: Slaven Rezic -Date: Sun, 27 Apr 2014 20:50:58 +0200 -Subject: [PATCH 05/10] update comment about freetype.h location -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Signed-off-by: Petr Písař ---- - myConfig | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/myConfig b/myConfig -index 3ca8144..a498b3a 100755 ---- a/myConfig -+++ b/myConfig -@@ -147,12 +147,12 @@ sub Ift - { - foreach (map { "$_/freetype2" } @_) - { -- if (-r "$_/freetype.h") # location in Debian (since jessie) -+ if (-r "$_/freetype.h") # location in Debian (since jessie) and in newer versions of the FreeBSD port - { - print "Using -I$_ to find $_/freetype/freetype.h\n"; - return "-I$_"; - } -- if (-r "$_/freetype/freetype.h") # location in FreeBSD (up to version 10.0) and Debian (up to wheezy) -+ if (-r "$_/freetype/freetype.h") # location in FreeBSD (older versions of freetype2 port) and Debian (up to wheezy) - { - print "Using -I$_ to find $_/freetype/freetype.h\n"; - return "-I$_"; --- -1.9.3 - diff --git a/perl-Tk-debian.patch.gz b/perl-Tk-debian.patch.gz deleted file mode 100644 index eb6cd1ccf1c93ffd5963d56740edc45732317f1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 790 zcmV+x1L^!9iwFnY%Nr4Eo5b4X<=?IaA9;~XaKcTT~FIE6n##A#VwOq z(k5+M(Y2_e>jW#C!~luF9+8_kt!Z#7#{nV4f8Vv8H0esWy)06`>~oLLz31AV=fRqa z#FHy;Iyh+h8^-7SJ3lGh#9+7+=_#t5$JJsjnuH!9XW6s3$^`j5Z2TCHR8y z#f_obr1ifQ;|GeiGpDZG+vngqSal!qUQkX23%hbPOS#-*=w7fYOV2+#QgzYq;l|)V zW1tn|Q~TD6naJd9^P477@iR6N4B?zUyAaVVq+Axmm*kN~hKt7~!~uA|w92_Y8+pb#0eJUuCdh9Eg;>AAH#Wck_RdBcA zS=PHMTsTDYw3yn0o6)kLjYCx - 804.033-1 +- 804.033 bump + * Fri Nov 07 2014 Petr Pisar - 804.032-5 - Restore compatibility with perl-ExtUtils-MakeMaker-7.00 (bug #1161470) diff --git a/sources b/sources index a9c2c6c..7fe8dd5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -47a84c70d1fd254ccece208303e6e9d5 Tk-804.032.tar.gz +4c6d281ca9c6c2349e5cf84394e638fa Tk-804.033.tar.gz