Skip Menu |

This queue is for tickets about the Gtk2 CPAN distribution.

Report information
The Basics
Id: 63225
Status: resolved
Priority: 0/
Queue: Gtk2

People
Owner: Nobody in particular
Requestors: RHOELZ [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.222
Fixed in: (no value)



Subject: tools/genkeysyms.pl generates bad keys on OS X
When building Gtk2-1.222 on Mac OS X (version 10.6.4, building against Gtk 2.22.0 installed via Homebrew, on Perl 5.12.1 installed via perlbrew), the test suite fails, and the generated Gtk2::Gdk::Keysyms module contains keys of the form "KEY_Escape" instead of the normal "Escape." Attached is a patch to remedy this.
Subject: fix-keysyms.patch
--- Gtk2-1.222-old/tools/genkeysyms.pl 2010-11-22 01:08:35.000000000 -0600 +++ Gtk2-1.222/tools/genkeysyms.pl 2010-11-22 01:08:41.000000000 -0600 @@ -10,7 +10,7 @@ print "package Gtk2::Gdk::Keysyms;\n"; print "\%Gtk2::Gdk::Keysyms = (\n"; while (<IN>) { - /^#define\sGDK_([^ \t]*)\s+(0x[0-9A-Fa-f]+)/ and + /^#define\sGDK_KEY_([^ \t]*)\s+(0x[0-9A-Fa-f]+)/ and print " '$1' => $2,\n"; } print ");\n";
This has already been fixed in git: <http://git.gnome.org/browse/perl-Gtk2/commit/?h=stable-1-22&id=f0216faa1408d600aa6c70b2ccff484a51810113>. It will hopefully soon appear in a new stable release. Thanks for the report.