Hi guys,
when I try to compile some test programs using mono-gtk,
pkg-config fails to parse gtk-dotnet-2.0.pc:
$ pkg-config --debug --list|grep gtk-dotnet
[/usr/bin/pkg-config]
Incorrect cfg file /usr/local/lib/pkgconfig/gtk-dotnet-2.0.pc at
/usr/libdata/perl5/OpenBSD/PkgConfig.pm line 110, <$fh> line 9.
Problem reading file /usr/local/lib/pkgconfig/gtk-dotnet-2.0.pc
$
This seems related to the absence of \s after Requires:
in gtk-dotnet-2.0.pc:
...
Requires:gtk-sharp-2.0
^
Let me know if I'm wrong!
Saluti,
C.
Index: patches/patch-gtkdotnet_gtk-dotnet-2_0_pc_in
===================================================================
RCS file:
/cvs/ports/x11/mono-gtk2/patches/patch-gtkdotnet_gtk-dotnet-2_0_pc_in,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-gtkdotnet_gtk-dotnet-2_0_pc_in
--- patches/patch-gtkdotnet_gtk-dotnet-2_0_pc_in 16 Oct 2008 16:02:07
-0000 1.1.1.1
+++ patches/patch-gtkdotnet_gtk-dotnet-2_0_pc_in 6 Dec 2009 12:23:04
-0000
@@ -1,9 +1,16 @@
$OpenBSD: patch-gtkdotnet_gtk-dotnet-2_0_pc_in,v 1.1.1.1 2008/10/16 16:02:07
robert Exp $
---- gtkdotnet/gtk-dotnet-2.0.pc.in.orig Mon Apr 7 10:36:18 2008
-+++ gtkdotnet/gtk-dotnet-2.0.pc.in Mon Apr 7 10:36:26 2008
+--- gtkdotnet/gtk-dotnet-2.0.pc.in.orig Sun Dec 6 12:59:44 2009
++++ gtkdotnet/gtk-dotnet-2.0.pc.in Sun Dec 6 13:00:08 2009
@@ -1,4 +1,4 @@
-prefix=${pcfiledir}/../..
+pref...@prefix@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
+@@ -6,5 +6,5 @@ libdir=${exec_prefix}/lib
+ Name: Gtk.DotNet
+ Description: .NET Extensions for Gtk
+ Version: @VERSION@
+-Requires:gtk-sharp-2.0
++Requires: gtk-sharp-2.0
+ Libs: -r:${libdir}/mono/@PACKAGE_VERSION@/gtk-dotnet.dll