summaryrefslogtreecommitdiff
path: root/sysutils/gnome-mount
diff options
context:
space:
mode:
authordsainty <dsainty@pkgsrc.org>2009-03-10 05:24:35 +0000
committerdsainty <dsainty@pkgsrc.org>2009-03-10 05:24:35 +0000
commit2b23ac1fa30614ca37ba60c7f97c9def11c4ba95 (patch)
tree7dd3173894ea029fbac7c946b8773c570b45bef7 /sysutils/gnome-mount
parentd00d21cb104aef3845840630e032db5f9dc0ae6e (diff)
downloadpkgsrc-2b23ac1fa30614ca37ba60c7f97c9def11c4ba95.tar.gz
Make include of <locale.h> unconditional. That's the way it is at the source,
and it's necessary to fix the build in at least some Linux environments. http://bugzilla.gnome.org/show_bug.cgi?id=442197 http://svn.gnome.org/viewvc/gnome-mount/trunk/src/gnome-mount.c?r1=183&r2=184 No PKGREVISION bump required, this change only affects platforms where the build was broken anyway.
Diffstat (limited to 'sysutils/gnome-mount')
-rw-r--r--sysutils/gnome-mount/distinfo4
-rw-r--r--sysutils/gnome-mount/patches/patch-ab35
2 files changed, 18 insertions, 21 deletions
diff --git a/sysutils/gnome-mount/distinfo b/sysutils/gnome-mount/distinfo
index 1cbf7841a60..46154f12d90 100644
--- a/sysutils/gnome-mount/distinfo
+++ b/sysutils/gnome-mount/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.2 2008/12/25 05:33:20 hasso Exp $
+$NetBSD: distinfo,v 1.3 2009/03/10 05:24:35 dsainty Exp $
SHA1 (gnome-mount-0.8.tar.gz) = 846ba178cf9009f3e32c7f55f912b3ca6b9ecedb
RMD160 (gnome-mount-0.8.tar.gz) = 003800eda3edb7747714b1002bd1a1b50ea44fe9
Size (gnome-mount-0.8.tar.gz) = 505788 bytes
SHA1 (patch-aa) = 31479b417cf7c645cef6f3539aa49576d5104795
-SHA1 (patch-ab) = d2f85ebb00a5a11e7b60d94b6fbd7b7e695185c8
+SHA1 (patch-ab) = ca905485a13762e197be6862b04a801f5716ddcd
SHA1 (patch-ac) = 026448555bd9710cda343b6573260e3dcaa28b20
diff --git a/sysutils/gnome-mount/patches/patch-ab b/sysutils/gnome-mount/patches/patch-ab
index 81baff483d4..9b968555d53 100644
--- a/sysutils/gnome-mount/patches/patch-ab
+++ b/sysutils/gnome-mount/patches/patch-ab
@@ -1,19 +1,16 @@
-$NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
+$NetBSD: patch-ab,v 1.3 2009/03/10 05:24:36 dsainty Exp $
---- src/gnome-mount.c.orig 2008-04-17 02:41:32 +0300
-+++ src/gnome-mount.c 2008-12-24 22:39:47 +0200
-@@ -31,6 +31,10 @@
+--- src/gnome-mount.c.orig 2008-04-17 11:41:32.000000000 +1200
++++ src/gnome-mount.c 2009-03-10 17:11:00.000000000 +1300
+@@ -30,6 +30,7 @@
+ #include <fcntl.h>
#include <string.h>
#include <stdlib.h>
-
-+#ifdef __NetBSD__
+#include <locale.h>
-+#endif
-+
+
#include <dbus/dbus.h>
#include <dbus/dbus-glib-lowlevel.h>
- #include <libhal.h>
-@@ -51,9 +55,9 @@
+@@ -51,9 +52,9 @@
#define NOTIFY_EXPIRES_DEFAULT -1
#endif
@@ -25,7 +22,7 @@ $NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
#include <fstab.h>
#include <sys/param.h>
#include <sys/ucred.h>
-@@ -677,15 +681,19 @@ static char *
+@@ -677,15 +678,19 @@
get_mntent_mount_point(const char *device_file)
{
char *mount_point;
@@ -47,7 +44,7 @@ $NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
#elif defined(sun)
FILE *f;
struct mnttab mnt;
-@@ -694,7 +702,7 @@ get_mntent_mount_point(const char *devic
+@@ -694,7 +699,7 @@
mount_point = NULL;
@@ -56,7 +53,7 @@ $NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
if ((f = setmntent ("/proc/mounts", "r")) != NULL) {
while ((mnte = getmntent_r (f, &mnt, buf, sizeof(buf))) != NULL) {
-@@ -717,13 +725,13 @@ get_mntent_mount_point(const char *devic
+@@ -717,13 +722,13 @@
}
fclose(f);
}
@@ -72,7 +69,7 @@ $NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
out:
return (mount_point);
-@@ -862,7 +870,7 @@ out:
+@@ -862,7 +867,7 @@
static gboolean
fstab_open (gpointer *handle)
{
@@ -81,7 +78,7 @@ $NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
return setfsent () == 1;
#else
*handle = fopen ("/etc/fstab", "r");
-@@ -873,7 +881,7 @@ fstab_open (gpointer *handle)
+@@ -873,7 +878,7 @@
static char *
fstab_next (gpointer handle, char **mount_point)
{
@@ -90,7 +87,7 @@ $NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
struct fstab *fstab;
fstab = getfsent ();
-@@ -901,7 +909,7 @@ fstab_next (gpointer handle, char **moun
+@@ -901,7 +906,7 @@
static void
fstab_close (gpointer handle)
{
@@ -99,7 +96,7 @@ $NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
endfsent ();
#else
fclose (handle);
-@@ -1116,7 +1124,7 @@ out:
+@@ -1116,7 +1121,7 @@
return ret;
}
@@ -108,7 +105,7 @@ $NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
#define MOUNT "/sbin/mount"
#define UMOUNT "/sbin/umount"
#else
-@@ -1451,7 +1459,7 @@ volume_mount (const char *udi, LibHalVol
+@@ -1451,7 +1456,7 @@
if (volume == NULL && (mount_options->len == 0)) {
/* volume from a non-pollable drive, just set uid.. */
@@ -117,7 +114,7 @@ $NetBSD: patch-ab,v 1.2 2008/12/25 05:33:20 hasso Exp $
snprintf (uidbuf, sizeof (uidbuf) - 1, "uid=%u", getuid ());
#else
snprintf (uidbuf, sizeof (uidbuf) - 1, "-u=%u", getuid ());
-@@ -1482,7 +1490,7 @@ volume_mount (const char *udi, LibHalVol
+@@ -1482,7 +1487,7 @@
g_debug ("read default option '%s' from gconf strlist key %s", option, key);
/* special workaround to replace "uid=" with "uid=<actual uid of caller>" */