pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/gnome-sharp Fix lossage due to the assumption that...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a615fad2e98a
branches: trunk
changeset: 398830:a615fad2e98a
user: drochner <drochner%pkgsrc.org@localhost>
date: Wed Sep 09 15:28:04 2009 +0000
description:
Fix lossage due to the assumption that a time_t has the same width
as a pointer, which fails at least on NetBSD-64bit <=5 and -32bit >5.
Unfortunately this assumption is deep in the code, in particular
already in gtk-sharp, so this fix isn't great because it only corrects
the translation of a C structure into C# data.
(With this fix, I can import pictures into f-spot from the filesystem.)
Many thanks to Brian de Alwis for explaining how conditionals can
be done in C#.
bump PKGREVISION
diffstat:
x11/gnome-sharp/Makefile | 13 ++++++++-
x11/gnome-sharp/distinfo | 4 ++-
x11/gnome-sharp/patches/patch-aa | 51 ++++++++++++++++++++++++++++++++++++++++
x11/gnome-sharp/patches/patch-ab | 13 ++++++++++
4 files changed, 78 insertions(+), 3 deletions(-)
diffs (114 lines):
diff -r 6609fbf5eff9 -r a615fad2e98a x11/gnome-sharp/Makefile
--- a/x11/gnome-sharp/Makefile Wed Sep 09 15:15:17 2009 +0000
+++ b/x11/gnome-sharp/Makefile Wed Sep 09 15:28:04 2009 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2009/08/26 19:56:47 sno Exp $
+# $NetBSD: Makefile,v 1.15 2009/09/09 15:28:04 drochner Exp $
#
DISTNAME= gnome-sharp-2.24.1
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-sharp/2.24/}
@@ -18,6 +18,15 @@
USE_TOOLS+= gmake pkg-config
MAKE_JOBS_SAFE= no
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == NetBSD
+.if !empty(OS_VERSION:M5.99.*) || !empty(OS_VERSION:M[6789].*)
+CONFIGURE_ENV+= EXTRACSDEFINES=-define:TIMET_IS_64BITS
+.else
+CONFIGURE_ENV+= EXTRACSDEFINES=-define:TIMET_IS_32BITS
+.endif
+.endif
+
PKGCONFIG_OVERRIDE+= art/art-sharp-2.0.pc.in
PKGCONFIG_OVERRIDE+= gconf/GConf/gconf-sharp-2.0.pc.in
PKGCONFIG_OVERRIDE+= gconf/GConf.PropertyEditors/gconf-sharp-peditors-2.0.pc.in
diff -r 6609fbf5eff9 -r a615fad2e98a x11/gnome-sharp/distinfo
--- a/x11/gnome-sharp/distinfo Wed Sep 09 15:15:17 2009 +0000
+++ b/x11/gnome-sharp/distinfo Wed Sep 09 15:28:04 2009 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.4 2009/03/06 14:30:05 wiz Exp $
+$NetBSD: distinfo,v 1.5 2009/09/09 15:28:04 drochner Exp $
SHA1 (gnome-sharp-2.24.1.tar.gz) = deaeb62de5a404c9867a07e9cfa06abfa67b982c
RMD160 (gnome-sharp-2.24.1.tar.gz) = ae579db486ca02d16170756ba4461b576d5e5e7d
Size (gnome-sharp-2.24.1.tar.gz) = 595441 bytes
+SHA1 (patch-aa) = 73127f8b0e90ab53f03fbec6242d5ccc1ccdfd1f
+SHA1 (patch-ab) = a8bb071d965cc7265bae16fa78f7bc286fd8f7b2
diff -r 6609fbf5eff9 -r a615fad2e98a x11/gnome-sharp/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gnome-sharp/patches/patch-aa Wed Sep 09 15:28:04 2009 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-aa,v 1.1 2009/09/09 15:28:04 drochner Exp $
+
+--- gnomevfs/FileInfo.cs.orig 2008-03-07 03:32:15.000000000 +0100
++++ gnomevfs/FileInfo.cs
+@@ -38,9 +38,19 @@ namespace Gnome.Vfs {
+ public long size;
+ public long block_count;
+ public uint io_block_size;
++#if TIMET_IS_64BITS
++ public long atime;
++ public long mtime;
++ public long ctime;
++#elif TIMET_IS_32BITS
++ public int atime;
++ public int mtime;
++ public int ctime;
++#else
+ public IntPtr atime;
+ public IntPtr mtime;
+ public IntPtr ctime;
++#endif
+ public IntPtr symlink_name;
+ public IntPtr mime_type;
+ public uint refcount;
+@@ -216,7 +226,7 @@ namespace Gnome.Vfs {
+ public System.DateTime Atime {
+ get {
+ if ((ValidFields & FileInfoFields.Atime) != 0)
+- return GLib.Marshaller.time_tToDateTime (Native.atime);
++ return GLib.Marshaller.time_tToDateTime ((IntPtr)Native.atime);
+ else
+ throw new ArgumentException ("Atime is not set");
+ }
+@@ -225,7 +235,7 @@ namespace Gnome.Vfs {
+ public System.DateTime Mtime {
+ get {
+ if ((ValidFields & FileInfoFields.Mtime) != 0)
+- return GLib.Marshaller.time_tToDateTime (Native.mtime);
++ return GLib.Marshaller.time_tToDateTime ((IntPtr)Native.mtime);
+ else
+ throw new ArgumentException ("Mtime is not set");
+ }
+@@ -234,7 +244,7 @@ namespace Gnome.Vfs {
+ public System.DateTime Ctime {
+ get {
+ if ((ValidFields & FileInfoFields.Ctime) != 0)
+- return GLib.Marshaller.time_tToDateTime (Native.ctime);
++ return GLib.Marshaller.time_tToDateTime ((IntPtr)Native.ctime);
+ else
+ throw new ArgumentException ("Ctime is not set");
+ }
diff -r 6609fbf5eff9 -r a615fad2e98a x11/gnome-sharp/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gnome-sharp/patches/patch-ab Wed Sep 09 15:28:04 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2009/09/09 15:28:04 drochner Exp $
+
+--- configure.orig 2009-03-03 17:09:53.000000000 +0100
++++ configure
+@@ -21774,7 +21774,7 @@ fi
+ fi
+
+ CSDEFINES='-define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20 -define:GNOME_SHARP_2_24'
+-CSFLAGS="$DEBUG_FLAGS $CSDEFINES"
++CSFLAGS="$DEBUG_FLAGS $CSDEFINES $EXTRACSDEFINES"
+
+
+ GTK_SHARP_VERSION_CFLAGS='-DGTK_SHARP_2_6 -DGTK_SHARP_2_8 -DGNOME_SHARP_2_16 -DGNOME_SHARP_2_20 -DGNOME_SHARP_2_24'
Home |
Main Index |
Thread Index |
Old Index