On Sat, 2008-02-16 at 02:19 +0100, Quentin Sculo wrote:
> I helped Brendon find the problem in irc, it was due to Gtk2::MozEmbed
> being compiled with the package firefox-dev and not libxul-dev on ubuntu
> gutsy.
I guess this can be fixed by preferring Xulrunner's over Firefox' or
Mozilla's gtkmozembed stuff as in the attached patch.
> And by the way, with xulrunner-1.9 (default for the future ubuntu
> hardy), Gtk2::MozEmbed doesn't find the mozembed libraries.
> It would be nice if it could be fixed. These pages may help :
> http://developer.mozilla.org/en/docs/Migrating_from_Internal_Linkage_to_Frozen_Linkage
> https://wiki.ubuntu.com/XulrunnerGecko
This, on the other hand, doesn't seem to work yet. Compilation does
succeed with package "libxul-embedding-unstable", but linking fails: it
looks like xulrunner-1.9-dev doesn't install libgtkembedmoz.so.
> And about fixing Gtk2::MozEmbed, a mostly the man page
> Gtk2::MozEmbed::index.3pm generated by the compilation is mostly
> empty/useless and its NAME line generate this warning by lintian :
> N: Each manual page should start with a `NAME' section, which lists
> the
> N: name and a brief description of the page seperated by '\-'.
>
> the '-' is missing.
This is actually a bug in Glib::MakeHelper. Patch attached.
--
Bye,
-Torsten
? segfault-test.c
? segfault-test.pl
Index: Makefile.PL
===================================================================
RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2-MozEmbed/Makefile.PL,v
retrieving revision 1.10
diff -u -d -p -r1.10 Makefile.PL
--- Makefile.PL 7 Mar 2006 17:54:00 -0000 1.10
+++ Makefile.PL 24 Feb 2008 17:19:59 -0000
@@ -1,6 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
use 5.008;
use strict;
+use warnings;
use ExtUtils::MakeMaker;
use Config;
@@ -48,10 +49,10 @@ unless (eval "use Mozilla::DOM '$build_r
$use_dom = 0;
}
-my %pkgcfg = ExtUtils::PkgConfig->find("mozilla-gtkmozembed >= $build_reqs{'Mozilla'}",
+my %pkgcfg = ExtUtils::PkgConfig->find("xulrunner-gtkmozembed >= $build_reqs{'XULRunner'}",
+ "mozilla-gtkmozembed >= $build_reqs{'Mozilla'}",
"firefox-gtkmozembed >= $build_reqs{'Firefox'}",
- "mozilla-firefox-gtkmozembed >= $build_reqs{'Firefox'}",
- "xulrunner-gtkmozembed >= $build_reqs{'XULRunner'}");
+ "mozilla-firefox-gtkmozembed >= $build_reqs{'Firefox'}");
mkdir 'build', 0777;
@@ -64,7 +65,7 @@ our %pod_files = (
Gtk2::CodeGen->parse_maps('gtkmozembed2perl');
Gtk2::CodeGen->write_boot(ignore => qr/^Gtk2::MozEmbed$/);
-my ($pkg) = $pkgcfg{pkg} =~ /^(\S+-gtkmozembed)\s/;
+my ($pkg) = $pkgcfg{pkg} =~ /^(\S+)/;
ExtUtils::PkgConfig->write_version_macros (
"build/gtkmozembed2perl-version.h",
@@ -86,9 +87,6 @@ $mozembed->install(qw(gtkmozembed2perl.h
build/gtkmozembed2perl-autogen.h));
$mozembed->save_config('build/IFiles.pm');
-my $libdir = `pkg-config --variable=libdir $pkg`;
-chomp($libdir);
-
WriteMakefile(
NAME => 'Gtk2::MozEmbed',
VERSION_FROM => 'MozEmbed.pm',
@@ -96,7 +94,6 @@ WriteMakefile(
PREREQ_PM => \%pre_reqs,
XSPROTOARG => '-noprototypes',
MAN3PODS => \%pod_files,
- LD => "LD_RUN_PATH=$libdir $Config{ld}",
($use_dom ? (CC => 'c++', XSOPT => '-C++') : ()),
$mozembed->get_makefile_vars,
);
Index: MakeHelper.pm
===================================================================
RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/MakeHelper.pm,v
retrieving revision 1.41
diff -u -d -p -r1.41 MakeHelper.pm
--- MakeHelper.pm 24 Feb 2008 13:19:32 -0000 1.41
+++ MakeHelper.pm 24 Feb 2008 16:01:24 -0000
@@ -433,7 +433,7 @@ build/podindex :: \$(BLIB_DONE) Makefile
\$(INST_LIB)/\$(FULLEXT)/index.pod :: \$(INST_LIB)/\$(FULLEXT)/ build/podindex
\$(NOECHO) \$(ECHO) Creating POD index...
- \$(NOECHO) $^X -e 'print \"\\n=head1 NAME\\n\\n\$(NAME) API Reference Pod Index\\n\\n=head1 PAGES\\n\\n=over\\n\\n\"' \\
+ \$(NOECHO) $^X -e 'print \"\\n=head1 NAME\\n\\n\$(NAME) - API Reference Pod Index\\n\\n=head1 PAGES\\n\\n=over\\n\\n\"' \\
> \$(INST_LIB)/\$(FULLEXT)/index.pod
\$(NOECHO) $^X -nae 'print \"=item L<\$\$F[1]>\\n\\n\";' < build/podindex >> \$(INST_LIB)/\$(FULLEXT)/index.pod
\$(NOECHO) $^X -e 'print \"=back\\n\\n\";' >> \$(INST_LIB)/\$(FULLEXT)/index.pod
_______________________________________________
gtk-perl-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-perl-list