~ubuntu-branches/ubuntu/edgy/gtk+2.0/edgy-proposed

« back to all changes in this revision

Viewing changes to debian/patches/0815_ia32-hack.patch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-03-02 00:18:29 UTC
  • Revision ID: james.westby@ubuntu.com-20060302001829-i7ac3r7jjrij5gdr
Tags: 2.8.13-1ubuntu4
And now fix it ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
   return result;
32
32
 }
33
33
 
 
34
--- gtk+-2.8.13/gtk/gtkprivate.h~       2005-03-22 03:14:55.000000000 +0100
 
35
+++ gtk+-2.8.13/gtk/gtkprivate.h        2006-03-01 19:51:42.510740384 +0100
 
36
@@ -96,6 +96,13 @@
 
37
 
 
38
 #endif /* G_OS_WIN32 */
 
39
 
 
40
+#if defined(__linux__) && defined (__i386__)
 
41
+const gchar *_gtk_get_libdir ();
 
42
+
 
43
+#undef GTK_LIBDIR
 
44
+#define GTK_LIBDIR _gtk_get_libdir ()
 
45
+#endif
 
46
+
 
47
 gboolean _gtk_fnmatch (const char *pattern,
 
48
                       const char *string,
 
49
                       gboolean    no_leading_period);
 
50
--- gtk+-2.8.13/gtk/gtkmain.c~  2005-12-06 17:14:30.000000000 +0100
 
51
+++ gtk+-2.8.13/gtk/gtkmain.c   2006-03-01 20:36:05.175953744 +0100
 
52
@@ -42,6 +42,7 @@
 
53
 #include <unistd.h>
 
54
 #endif
 
55
 #include <sys/types.h>         /* For uid_t, gid_t */
 
56
+#include <sys/utsname.h>
 
57
 
 
58
 #ifdef G_OS_WIN32
 
59
 #define STRICT
 
60
@@ -336,6 +337,28 @@
 
61
 
 
62
 #endif /* G_OS_WIN32 */
 
63
 
 
64
+#if defined(__linux__) && defined (__i386__)
 
65
+const gchar *
 
66
+_gtk_get_libdir (void)
 
67
+{
 
68
+  static char *gtk_libdir = NULL;
 
69
+  if (gtk_libdir == NULL)
 
70
+    {
 
71
+#if defined(__linux__) && defined (__i386__)
 
72
+      struct utsname uts;
 
73
+
 
74
+      uname(&uts);
 
75
+      if (!strcmp("x86_64", uts.machine)
 
76
+         && !access("/usr/lib32/gtk-2.0", R_OK|X_OK))
 
77
+       gtk_libdir = "/usr/lib32";
 
78
+      else
 
79
+#endif
 
80
+      gtk_libdir = "/usr/lib";
 
81
+    }
 
82
+  return gtk_libdir;
 
83
+}
 
84
+#endif
 
85
+
 
86
 static gboolean do_setlocale = TRUE;
 
87
 
 
88
 /**
34
89
--- gtk+-2.8.13/gtk/gtkrc.c~    2005-11-23 15:24:51.000000000 +0100
35
90
+++ gtk+-2.8.13/gtk/gtkrc.c     2006-03-01 20:33:25.952159440 +0100
36
91
@@ -38,6 +38,10 @@