pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/gnome-mount Make include of <locale.h> uncond...
details: https://anonhg.NetBSD.org/pkgsrc/rev/50055a9be802
branches: trunk
changeset: 555829:50055a9be802
user: dsainty <dsainty%pkgsrc.org@localhost>
date: Tue Mar 10 05:24:35 2009 +0000
description:
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:
sysutils/gnome-mount/distinfo | 4 ++--
sysutils/gnome-mount/patches/patch-ab | 35 ++++++++++++++++-------------------
2 files changed, 18 insertions(+), 21 deletions(-)
diffs (125 lines):
diff -r d8a4aed9a8fc -r 50055a9be802 sysutils/gnome-mount/distinfo
--- a/sysutils/gnome-mount/distinfo Tue Mar 10 03:31:22 2009 +0000
+++ b/sysutils/gnome-mount/distinfo Tue Mar 10 05:24:35 2009 +0000
@@ -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 -r d8a4aed9a8fc -r 50055a9be802 sysutils/gnome-mount/patches/patch-ab
--- a/sysutils/gnome-mount/patches/patch-ab Tue Mar 10 03:31:22 2009 +0000
+++ b/sysutils/gnome-mount/patches/patch-ab Tue Mar 10 05:24:35 2009 +0000
@@ -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>
++#include <locale.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 @@
#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 @@
#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 @@
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 @@
out:
return (mount_point);
-@@ -862,7 +870,7 @@ out:
+@@ -862,7 +867,7 @@
static gboolean
fstab_open (gpointer *handle)
{
@@ -81,7 +78,7 @@
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 @@
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 @@
endfsent ();
#else
fclose (handle);
-@@ -1116,7 +1124,7 @@ out:
+@@ -1116,7 +1121,7 @@
return ret;
}
@@ -108,7 +105,7 @@
#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 @@
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>" */
Home |
Main Index |
Thread Index |
Old Index