summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-03-08 21:52:08 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2009-03-08 21:52:08 +0000
commit1361828622d86accd885008d7e4a16f413906228 (patch)
tree150daf3f1c20c0832ad789126a7335cbb71d7d92 /gnome-base/gnome-vfs
parentMarked ppc64 for bug #259080. (diff)
downloadgentoo-2-1361828622d86accd885008d7e4a16f413906228.tar.gz
gentoo-2-1361828622d86accd885008d7e4a16f413906228.tar.bz2
gentoo-2-1361828622d86accd885008d7e4a16f413906228.zip
Bump to 2.24.0-r1.
* Prevent showing duplicate volumes with UUID or LABEL, bug #193083. * Allow building with gnutls >= 2.7, bug #253729. (Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'gnome-base/gnome-vfs')
-rw-r--r--gnome-base/gnome-vfs/ChangeLog12
-rw-r--r--gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-gnutls27.patch25
-rw-r--r--gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-uuid-mount.patch57
-rw-r--r--gnome-base/gnome-vfs/gnome-vfs-2.20.1-r1.ebuild6
-rw-r--r--gnome-base/gnome-vfs/gnome-vfs-2.24.0-r1.ebuild116
5 files changed, 212 insertions, 4 deletions
diff --git a/gnome-base/gnome-vfs/ChangeLog b/gnome-base/gnome-vfs/ChangeLog
index 93eaccb22d27..3efa0444f1d1 100644
--- a/gnome-base/gnome-vfs/ChangeLog
+++ b/gnome-base/gnome-vfs/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for gnome-base/gnome-vfs
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-vfs/ChangeLog,v 1.295 2009/03/06 15:36:08 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-vfs/ChangeLog,v 1.296 2009/03/08 21:52:08 eva Exp $
+
+*gnome-vfs-2.24.0-r1 (08 Mar 2009)
+
+ 08 Mar 2009; Gilles Dartiguelongue <eva@gentoo.org>
+ +files/gnome-vfs-2.24.0-gnutls27.patch,
+ +files/gnome-vfs-2.24.0-uuid-mount.patch, gnome-vfs-2.20.1-r1.ebuild,
+ +gnome-vfs-2.24.0-r1.ebuild:
+ Bump to 2.24.0-r1.
+ * Prevent showing duplicate volumes with UUID or LABEL, bug #193083.
+ * Allow building with gnutls >= 2.7, bug #253729.
06 Mar 2009; Brent Baude <ranger@gentoo.org> gnome-vfs-2.24.0.ebuild:
Marking gnome-vfs-2.24.0 ppc stable for bug 260063
diff --git a/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-gnutls27.patch b/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-gnutls27.patch
new file mode 100644
index 000000000000..15483c681f3d
--- /dev/null
+++ b/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-gnutls27.patch
@@ -0,0 +1,25 @@
+# Allow gnome-vfs-2.24 to build with gnutls >= 2.7.0
+# Use pkg-config in place of gnutls own macro since it's not present anymore.
+--- a/configure.in 2009-03-07 19:59:53.805507753 +0100
++++ b/configure.in 2009-03-07 18:34:36.928169018 +0100
+@@ -686,14 +686,14 @@
+ AC_MSG_ERROR([*** Can't use both openssl and gnutls at the same time. Please pick one only. ***])
+ else
+ AC_CHECK_HEADER(gcrypt.h,, AC_MSG_ERROR([*** Need gcrypt.h to compile with GnuTLS support ***]))
+- AM_PATH_LIBGNUTLS(1.0.0, [AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if GnuTLS is available])
+- have_ssl=true])
++ PKG_CHECK_MODULES(LIBGNUTLS, gnutls >= 1.0.0, [AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if GnuTLS is available])
++ have_ssl = true])
+
+ if test "x${LIBGNUTLS_LIBS}" = "x"; then
+- AM_PATH_LIBGNUTLS(0.5.1, [AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if GnuTLS is available])
+- AC_DEFINE(GNUTLS_COMPAT, 1, [FIXME])
+- have_ssl=true],
+- AC_MSG_ERROR([Unable to find GNUTLS]))
++ PKG_CHECK_MODULES(LIBGNUTLS, gnutls >= 0.5.1, [AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if GnuTLS is available])
++ AC_DEFINE(GNUTLS_COMPAT, 1, [FIXME])
++ have_ssl=true],
++ AC_MSG_ERROR([Unable to find GNUTLS]))
+ fi
+ fi
+ fi
diff --git a/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-uuid-mount.patch b/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-uuid-mount.patch
new file mode 100644
index 000000000000..364834875fe9
--- /dev/null
+++ b/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-uuid-mount.patch
@@ -0,0 +1,57 @@
+# Prevent gnome-vfs to show duplicate volumes due to LABEL and UUID in /etc/fstab
+#
+# Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=357156
+# Gentoo: https://bugs.gentoo.org/attachment.cgi?id=131308
+# Similar to http://patches.ubuntu.com/by-release/extracted/ubuntu/g/gnome-vfs/1:2.24.0-1ubuntu2/15_uuid_mount.patch
+--- a/libgnomevfs/gnome-vfs-unix-mounts.c 2007-04-10 15:03:59.000000000 +0300
++++ b/libgnomevfs/gnome-vfs-unix-mounts.c 2007-09-18 17:48:49.000000000 +0300
+@@ -290,6 +290,15 @@ _gnome_vfs_get_current_unix_mounts (GLis
+
+ mount_entry->mount_path = g_strdup (mntent->mnt_dir);
+ mount_entry->device_path = g_strdup (mntent->mnt_fsname);
++
++ if (g_file_test (mntent->mnt_fsname, G_FILE_TEST_IS_SYMLINK)) {
++ char rpath[PATH_MAX];
++ if (realpath (mntent->mnt_fsname, rpath)) {
++ g_free (mount_entry->device_path);
++ mount_entry->device_path = g_strdup (rpath);
++ }
++ }
++
+ mount_entry->filesystem_type = g_strdup (mntent->mnt_type);
+
+ g_hash_table_insert (mounts_hash,
+@@ -571,9 +580,31 @@ _gnome_vfs_get_unix_mount_table (GList *
+ }
+
+ mount_entry = g_new0 (GnomeVFSUnixMountPoint, 1);
+-
++
++ if(strlen(mntent->mnt_fsname) >= 5 && !strncmp (mntent->mnt_fsname, "UUID=", 5)) {
++ mount_entry->device_path = g_strdup_printf ("/dev/disk/by-uuid/%s", mntent->mnt_fsname+5);
++ }
++ else if(strlen(mntent->mnt_fsname) >= 6 && !strncmp (mntent->mnt_fsname, "LABEL=", 6)) {
++ mount_entry->device_path = g_strdup_printf ("/dev/disk/by-label/%s", mntent->mnt_fsname+6);
++ }
++ else {
++ mount_entry->device_path = g_strdup (mntent->mnt_fsname);
++ }
++
++ if (g_file_test (mount_entry->device_path, G_FILE_TEST_IS_SYMLINK)) {
++ char rpath[PATH_MAX];
++ if (realpath (mount_entry->device_path, rpath)) {
++ g_free (mount_entry->device_path);
++ mount_entry->device_path = g_strdup (rpath);
++ }
++ else {
++ g_free (mount_entry->device_path);
++ g_free (mount_entry);
++ continue;
++ }
++ }
++
+ mount_entry->mount_path = g_strdup (mntent->mnt_dir);
+- mount_entry->device_path = g_strdup (mntent->mnt_fsname);
+ mount_entry->filesystem_type = g_strdup (mntent->mnt_type);
+
+ #ifdef HAVE_HASMNTOPT
diff --git a/gnome-base/gnome-vfs/gnome-vfs-2.20.1-r1.ebuild b/gnome-base/gnome-vfs/gnome-vfs-2.20.1-r1.ebuild
index d95bc3c262c2..008ff888f3b5 100644
--- a/gnome-base/gnome-vfs/gnome-vfs-2.20.1-r1.ebuild
+++ b/gnome-base/gnome-vfs/gnome-vfs-2.20.1-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-vfs/gnome-vfs-2.20.1-r1.ebuild,v 1.9 2008/04/20 01:35:53 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-vfs/gnome-vfs-2.20.1-r1.ebuild,v 1.10 2009/03/08 21:52:08 eva Exp $
WANT_AUTOMAKE=1.8
inherit eutils gnome2 autotools
@@ -10,7 +10,7 @@ HOMEPAGE="http://www.gnome.org/"
LICENSE="GPL-2 LGPL-2"
SLOT="2"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
+KEYWORDS="arm sh"
IUSE="acl avahi doc gnutls hal ipv6 kerberos samba ssl"
RDEPEND=">=gnome-base/gconf-2
diff --git a/gnome-base/gnome-vfs/gnome-vfs-2.24.0-r1.ebuild b/gnome-base/gnome-vfs/gnome-vfs-2.24.0-r1.ebuild
new file mode 100644
index 000000000000..0e66a581c630
--- /dev/null
+++ b/gnome-base/gnome-vfs/gnome-vfs-2.24.0-r1.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-vfs/gnome-vfs-2.24.0-r1.ebuild,v 1.1 2009/03/08 21:52:08 eva Exp $
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="Gnome Virtual Filesystem"
+HOMEPAGE="http://www.gnome.org/"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="acl avahi doc fam gnutls hal ipv6 kerberos samba ssl"
+
+RDEPEND=">=gnome-base/gconf-2
+ >=dev-libs/glib-2.9.3
+ >=dev-libs/libxml2-2.6
+ app-arch/bzip2
+ fam? ( virtual/fam )
+ gnome-base/gnome-mime-data
+ >=x11-misc/shared-mime-info-0.14
+ >=dev-libs/dbus-glib-0.71
+ samba? ( >=net-fs/samba-3 )
+ gnutls? (
+ net-libs/gnutls
+ !gnome-extra/gnome-vfs-sftp )
+ ssl? (
+ !gnutls? (
+ >=dev-libs/openssl-0.9.5
+ !gnome-extra/gnome-vfs-sftp ) )
+ hal? ( >=sys-apps/hal-0.5.7 )
+ avahi? ( >=net-dns/avahi-0.6 )
+ kerberos? ( virtual/krb5 )
+ acl? (
+ sys-apps/acl
+ sys-apps/attr )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ gnome-base/gnome-common
+ >=dev-util/intltool-0.40
+ >=dev-util/pkgconfig-0.9
+ >=dev-util/gtk-doc-am-1.10-r1
+ doc? ( >=dev-util/gtk-doc-1 )"
+PDEPEND="hal? ( >=gnome-base/gnome-mount-0.6 )"
+
+DOCS="AUTHORS ChangeLog HACKING NEWS README TODO"
+
+pkg_setup() {
+ G2CONF="${G2CONF}
+ --disable-schemas-install
+ --disable-static
+ --disable-cdda
+ --disable-howl
+ $(use_enable acl)
+ $(use_enable avahi)
+ $(use_enable fam)
+ $(use_enable gnutls)
+ $(use_enable hal)
+ $(use_enable ipv6)
+ $(use_enable kerberos krb5)
+ $(use_enable samba)
+ $(use_enable ssl openssl)"
+ # Useless ? --enable-http-neon
+
+ if use hal ; then
+ G2CONF="${G2CONF}
+ --with-hal-mount=/usr/bin/gnome-mount
+ --with-hal-umount=/usr/bin/gnome-umount
+ --with-hal-eject=/usr/bin/gnome-eject"
+ fi
+
+ # this works because of the order of configure parsing
+ # so should always be behind the use_enable options
+ # foser <foser@gentoo.org 19 Apr 2004
+ use gnutls && use ssl && G2CONF="${G2CONF} --disable-openssl"
+}
+
+src_unpack() {
+ gnome2_src_unpack
+
+ # Allow the Trash on afs filesystems (#106118)
+ epatch "${FILESDIR}"/${PN}-2.12.0-afs.patch
+
+ # Fix compiling with headers missing
+ epatch "${FILESDIR}"/${PN}-2.15.2-headers-define.patch
+
+ # Fix for crashes running programs via sudo
+ epatch "${FILESDIR}"/${PN}-2.16.0-no-dbus-crash.patch
+
+ # Fix automagic dependencies, upstream bug #493475
+ epatch "${FILESDIR}"/${PN}-2.20.0-automagic-deps.patch
+ epatch "${FILESDIR}"/${PN}-2.20.1-automagic-deps.patch
+
+ # Fix to identify ${HOME} (#200897)
+ # thanks to debian folks
+ epatch "${FILESDIR}"/${PN}-2.20.0-home_dir_fakeroot.patch
+
+ # Configure with gnutls-2.7, bug #253729
+ epatch "${FILESDIR}"/${P}-gnutls27.patch
+
+ # Prevent duplicated volumes, bug #193083
+ epatch "${FILESDIR}"/${P}-uuid-mount.patch
+
+ # Fix deprecated API disabling in used libraries - this is not future-proof, bug 212163
+ # upstream bug #519632
+ sed -i -e '/DISABLE_DEPRECATED/d' \
+ daemon/Makefile.am daemon/Makefile.in \
+ libgnomevfs/Makefile.am libgnomevfs/Makefile.in \
+ modules/Makefile.am modules/Makefile.in \
+ test/Makefile.am test/Makefile.in
+ sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' \
+ programs/Makefile.am programs/Makefile.in
+
+ intltoolize --force --copy --automake || die "intltoolize failed"
+ eautoreconf
+}