diff options
author | wiz <wiz@pkgsrc.org> | 2013-10-17 04:28:33 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2013-10-17 04:28:33 +0000 |
commit | 8853f89044557eaa54321cfa915de59a20e9ccd1 (patch) | |
tree | 9518c581fb5e00bdb60e14617f905f700397b656 /databases | |
parent | 08fde902088ca9e708a98870e5fb1bb9d6ea2158 (diff) | |
download | pkgsrc-8853f89044557eaa54321cfa915de59a20e9ccd1.tar.gz |
fdatasync needs a writable file descriptor.
Addresses PR 48300.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/shared-mime-info/Makefile | 4 | ||||
-rw-r--r-- | databases/shared-mime-info/distinfo | 4 | ||||
-rw-r--r-- | databases/shared-mime-info/patches/patch-aa | 19 |
3 files changed, 19 insertions, 8 deletions
diff --git a/databases/shared-mime-info/Makefile b/databases/shared-mime-info/Makefile index 2dd33627e5d..7721a5c5105 100644 --- a/databases/shared-mime-info/Makefile +++ b/databases/shared-mime-info/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.56 2013/10/08 10:40:21 wiz Exp $ +# $NetBSD: Makefile,v 1.57 2013/10/17 04:28:33 wiz Exp $ DISTNAME= shared-mime-info-1.2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= databases MASTER_SITES= http://people.freedesktop.org/~hadess/ EXTRACT_SUFX= .tar.xz diff --git a/databases/shared-mime-info/distinfo b/databases/shared-mime-info/distinfo index bbc7b67feb6..2883a8e7ac0 100644 --- a/databases/shared-mime-info/distinfo +++ b/databases/shared-mime-info/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.23 2013/10/06 16:05:32 wiz Exp $ +$NetBSD: distinfo,v 1.24 2013/10/17 04:28:33 wiz Exp $ SHA1 (shared-mime-info-1.2.tar.xz) = 4c1598e30c632f1f9e825d95da7e3a1f47a32948 RMD160 (shared-mime-info-1.2.tar.xz) = fb1dca4b9f866dc1c6cc9ac4bab066a2a5bc69b6 Size (shared-mime-info-1.2.tar.xz) = 514612 bytes -SHA1 (patch-aa) = a3df00b2bf0607c6295ef3d08111af6cee0574f7 +SHA1 (patch-aa) = a09516d6d91d890552db2ddded06be1d08b7422f diff --git a/databases/shared-mime-info/patches/patch-aa b/databases/shared-mime-info/patches/patch-aa index 0825d03a33b..b4fa33205be 100644 --- a/databases/shared-mime-info/patches/patch-aa +++ b/databases/shared-mime-info/patches/patch-aa @@ -1,10 +1,21 @@ -$NetBSD: patch-aa,v 1.5 2013/03/15 21:50:15 wiz Exp $ +$NetBSD: patch-aa,v 1.6 2013/10/17 04:28:33 wiz Exp $ -Adapt for pkgsrc. +fdatasync needs a writable file descriptor. ---- update-mime-database.c.orig 2007-06-27 21:46:53.000000000 +0200 +Adapt paths for pkgsrc. + +--- update-mime-database.c.orig 2013-07-09 22:10:53.000000000 +0000 +++ update-mime-database.c -@@ -1510,7 +1510,7 @@ static void check_in_path_xdg_data(const +@@ -951,7 +951,7 @@ static gboolean atomic_update(const gcha + new_name = g_strndup(pathname, len - 4); + + #ifdef HAVE_FDATASYNC +- fd = open(pathname, O_RDONLY); ++ fd = open(pathname, O_RDWR); + if (fd == -1) + { + set_error_from_errno(error); +@@ -2135,7 +2135,7 @@ static void check_in_path_xdg_data(const env = getenv("XDG_DATA_DIRS"); if (!env) |