diff options
author | ade <ade@FreeBSD.org> | 2000-09-14 17:57:57 +0000 |
---|---|---|
committer | ade <ade@FreeBSD.org> | 2000-09-14 17:57:57 +0000 |
commit | 7102d5e2ef09c841eb08c90c5fe424a51ae923ff (patch) | |
tree | 61bb1f00d34b97fe748ccb8954f16f8bbed2ea0a /x11-fm/nautilus2/files | |
parent | a991f348e0d853959eaf846e275d3b9b83dd133a (diff) | |
download | FreeBSD-ports-7102d5e2ef09c841eb08c90c5fe424a51ae923ff.zip FreeBSD-ports-7102d5e2ef09c841eb08c90c5fe424a51ae923ff.tar.gz |
Add nautilus, the file manager and graphical shell being
developed for GNOME 2.0
Please note: as it stands, this port compiles and installs
cleanly, but immediately coredumps if you try to run it.
I've only committed what I have so far so that any enterprising
souls can try and figure out what on earth is going wrong.
Bug report 3075 has been filed with bugzilla.eazel.com
Diffstat (limited to 'x11-fm/nautilus2/files')
-rw-r--r-- | x11-fm/nautilus2/files/patch-aa | 100 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-ab | 13 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-ac | 152 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-ad | 30 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-ae | 10 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-af | 11 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-ag | 13 |
7 files changed, 329 insertions, 0 deletions
diff --git a/x11-fm/nautilus2/files/patch-aa b/x11-fm/nautilus2/files/patch-aa new file mode 100644 index 0000000..ff17f0b --- /dev/null +++ b/x11-fm/nautilus2/files/patch-aa @@ -0,0 +1,100 @@ +--- configure.orig Mon Aug 14 19:47:02 2000 ++++ configure Mon Aug 28 13:34:38 2000 +@@ -2368,7 +2368,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lpam -ldl $LIBS" ++LIBS="-lpam $LIBS" + cat > conftest.$ac_ext <<EOF + #line 2374 "configure" + #include "confdefs.h" +@@ -2408,7 +2408,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lpam_misc -ldl -lpam $LIBS" ++LIBS="-lpam_misc -lpam $LIBS" + cat > conftest.$ac_ext <<EOF + #line 2414 "configure" + #include "confdefs.h" +@@ -2436,10 +2436,10 @@ + fi + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 +- PAM_LIBS="-ldl -lpam -lpam_misc" ++ PAM_LIBS="-lpam -lpam_misc" + else + echo "$ac_t""no" 1>&6 +-PAM_LIBS="-ldl -lpam" ++PAM_LIBS="-lpam" + fi + + else +@@ -2657,7 +2657,7 @@ + + CC=$_save_cc + +-LDFLAGS="$_save_cflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lgtksuperwin" ++LDFLAGS="$_save_cflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lstdc++ -lgtksuperwin" + echo $ac_n "checking for gdk_superwin_get_type in -lgtksuperwin""... $ac_c" 1>&6 + echo "configure:2663: checking for gdk_superwin_get_type in -lgtksuperwin" >&5 + ac_lib_var=`echo gtksuperwin'_'gdk_superwin_get_type | sed 'y%./+-%__p_%'` +@@ -2979,7 +2979,7 @@ + fi + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 +- rpm_libs=-lbz2 ++ rpm_libs="-lrpm -lbz2" + else + echo "$ac_t""no" 1>&6 + fi +@@ -3019,7 +3019,7 @@ + fi + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 +- rpm_libs=-lbz2 ++ rpm_libs="-lrpm -lbz2" + cat >> confdefs.h <<\EOF + #define bzread BZ2_bzread + EOF +@@ -3109,24 +3109,24 @@ + echo "$ac_t""no" 1>&6 + fi + +-echo $ac_n "checking for rpmRunTransactions in -lrpm""... $ac_c" 1>&6 +-echo "configure:3114: checking for rpmRunTransactions in -lrpm" >&5 +-ac_lib_var=`echo rpm'_'rpmRunTransactions | sed 'y%./+-%__p_%'` ++echo $ac_n "checking for rpmReadPackageInfo in -lrpm""... $ac_c" 1>&6 ++echo "configure:3114: checking for rpmReadPackageInfo in -lrpm" >&5 ++ac_lib_var=`echo rpm'_'rpmReadPackageInfo | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lrpm -lz $rpm_libs -ldb $LIBS" ++LIBS="-lrpm -lz $rpm_libs $LIBS" + cat > conftest.$ac_ext <<EOF + #line 3122 "configure" + #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +-char rpmRunTransactions(); ++char rpmReadPackageInfo(); + + int main() { +-rpmRunTransactions() ++rpmReadPackageInfo() + ; return 0; } + EOF + if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -3156,7 +3156,7 @@ + #define HAVE_RPM 1 + EOF + +- RPM_LIBS="-lrpm -lz $rpm_libs -ldb" ++ RPM_LIBS="-lrpm -lz $rpm_libs" + fi + + diff --git a/x11-fm/nautilus2/files/patch-ab b/x11-fm/nautilus2/files/patch-ab new file mode 100644 index 0000000..a46aeaa --- /dev/null +++ b/x11-fm/nautilus2/files/patch-ab @@ -0,0 +1,13 @@ +--- Makefile.in.orig Wed Aug 16 08:26:30 2000 ++++ Makefile.in Wed Aug 23 14:56:45 2000 +@@ -501,8 +501,8 @@ + $(mkinstalldirs) $(DESTDIR)/$(prefix)/bin + @list='nautilus-clean.sh'; for p in $$list; do\ + if test -f $(srcdir)/$$p; then \ +- echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ +- $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ ++ echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ ++ $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ + else :; fi; \ + done + diff --git a/x11-fm/nautilus2/files/patch-ac b/x11-fm/nautilus2/files/patch-ac new file mode 100644 index 0000000..708c7d4 --- /dev/null +++ b/x11-fm/nautilus2/files/patch-ac @@ -0,0 +1,152 @@ +--- libnautilus-extensions/nautilus-volume-monitor.c.orig Thu Aug 3 17:15:57 2000 ++++ libnautilus-extensions/nautilus-volume-monitor.c Tue Aug 22 17:45:07 2000 +@@ -22,6 +22,9 @@ + Authors: Gene Z. Ragan <gzr@eazel.com> + */ + ++#include <sys/param.h> ++#include <sys/mount.h> ++ + #include <config.h> + + #include <errno.h> +@@ -31,7 +34,6 @@ + #include <gnome.h> + #include <libgnome/gnome-i18n.h> + #include <libgnomevfs/gnome-vfs.h> +-#include <mntent.h> + #include <libnautilus-extensions/nautilus-cdrom-extensions.h> + #include <libnautilus-extensions/nautilus-directory-private.h> + #include <libnautilus-extensions/nautilus-file-utilities.h> +@@ -48,6 +50,11 @@ + #include <sys/types.h> + #include <xmlmemory.h> + ++#undef MOUNT_TYPE_ISO9660 ++#define MOUNT_TYPE_ISO9660 "cd9660" ++#undef MOUNT_TYPE_EXT2 ++#define MOUNT_TYPE_EXT2 "ufs" /* really ufs */ ++#define _PATH_MOUNTED "/etc/fstab" + + /* FIXME: Remove messages when this code is done. */ + #define MESSAGE g_message +@@ -91,7 +98,7 @@ + DeviceInfo *device); + static void mount_device_activate_floppy (NautilusVolumeMonitor *view, + DeviceInfo *device); +-static gboolean mntent_is_removable_fs (struct mntent *ent); ++static gboolean mntent_is_removable_fs (struct fstab *ent); + static void free_device_info (DeviceInfo *device, + NautilusVolumeMonitor *monitor); + static gboolean add_mount_link_property (const char *path); +@@ -197,21 +204,19 @@ + fm_desktop_get_removable_volume_list (void) + { + GList *list; +- FILE *mef; +- struct mntent *ent; ++ struct fstab *ent; + + list = NULL; + +- mef = setmntent (_PATH_FSTAB, "r"); +- g_return_val_if_fail (mef, NULL); ++ setfsent(); + +- while ((ent = getmntent (mef))) { ++ while ((ent = getfsent ())) { + if (mntent_is_removable_fs (ent)) { +- list = g_list_append (list, g_strdup (ent->mnt_dir)); ++ list = g_list_append (list, g_strdup (ent->fs_file)); + continue; + } + } +- endmntent (mef); ++ endfsent (); + + /* Move all floppy mounts to top of list */ + list = g_list_sort (list, (GCompareFunc) floppy_sort); +@@ -754,7 +759,7 @@ + + + static void +-add_mount_device (NautilusVolumeMonitor *monitor, struct mntent *ent) ++add_mount_device (NautilusVolumeMonitor *monitor, struct fstab *ent) + { + DeviceInfo *newdev = NULL; + gboolean mounted; +@@ -762,23 +767,23 @@ + newdev = g_new0 (DeviceInfo, 1); + g_assert (newdev); + newdev->device_fd = -1; +- newdev->fsname = g_strdup (ent->mnt_fsname); +- newdev->mount_path = g_strdup (ent->mnt_dir); ++ newdev->fsname = g_strdup (ent->fs_spec); ++ newdev->mount_path = g_strdup (ent->fs_file); + newdev->volume_name = NULL; + newdev->link_uri = NULL; + newdev->state = STATE_EMPTY; + + mounted = FALSE; + +- if (strcmp (ent->mnt_type, MOUNT_TYPE_ISO9660) == 0) { ++ if (strcmp (ent->fs_type, MOUNT_TYPE_ISO9660) == 0) { + mounted = mount_device_iso9660_add (monitor, newdev); +- } else if (strncmp (ent->mnt_fsname, "/dev/fd", strlen("/dev/fd")) == 0) { ++ } else if (strncmp (ent->fs_file, "/dev/fd", strlen("/dev/fd")) == 0) { + mounted = mount_device_floppy_add (monitor, newdev); +- } else if (strcmp (ent->mnt_type, MOUNT_TYPE_EXT2) == 0) { ++ } else if (strcmp (ent->fs_type, MOUNT_TYPE_EXT2) == 0) { + mounted = mount_device_ext2_add (newdev); + } else { + /* FIXME: Is this a reasonable way to report this error? */ +- MESSAGE ("Unknown file system: %s", ent->mnt_type); ++ MESSAGE ("Unknown file system: %s", ent->fs_type); + } + + if (mounted) { +@@ -794,13 +799,13 @@ + } + + static gboolean +-mntent_is_removable_fs (struct mntent *ent) ++mntent_is_removable_fs (struct fstab *ent) + { +- if (strcmp (ent->mnt_type, MOUNT_TYPE_ISO9660) == 0) { ++ if (strcmp (ent->fs_type, MOUNT_TYPE_ISO9660) == 0) { + return TRUE; + } + +- if (strncmp (ent->mnt_fsname, "/dev/fd", strlen("/dev/fd")) == 0) { ++ if (strncmp (ent->fs_file, "/dev/fd", strlen("/dev/fd")) == 0) { + return TRUE; + } + +@@ -833,14 +838,12 @@ + void + nautilus_volume_monitor_find_mount_devices (NautilusVolumeMonitor *monitor) + { +- FILE *mef; +- struct mntent *ent; ++ struct fstab *ent; + +- mef = setmntent (_PATH_MNTTAB, "r"); +- g_return_if_fail (mef); ++ setfsent (); + +- while ((ent = getmntent (mef))) { +- MESSAGE ("Checking device %s", ent->mnt_fsname); ++ while ((ent = getfsent ())) { ++ MESSAGE ("Checking device %s", ent->fs_spec); + + #if 0 + /* Think some more about these checks */ +@@ -859,7 +862,7 @@ + } + + +- endmntent (mef); ++ endfsent (); + + g_list_foreach (monitor->details->devices, (GFunc) mount_device_set_state, monitor); + diff --git a/x11-fm/nautilus2/files/patch-ad b/x11-fm/nautilus2/files/patch-ad new file mode 100644 index 0000000..5f1fee5 --- /dev/null +++ b/x11-fm/nautilus2/files/patch-ad @@ -0,0 +1,30 @@ +--- components/rpmview/nautilus-rpm-view.c.orig Mon Aug 7 18:31:00 2000 ++++ components/rpmview/nautilus-rpm-view.c Tue Aug 22 18:21:25 2000 +@@ -52,6 +52,10 @@ + #include <libgnorba/gnorba.h> + #include <limits.h> + ++#define FD_t int ++#define fdOpen open ++#define fdClose close ++ + #ifdef EAZEL_SERVICES + #include <libeazelinstall.h> + #include "nautilus-rpm-view-install.h" +@@ -399,7 +403,6 @@ + gint result = 0; + gchar *version_ptr, *release_ptr; + +- rpmReadConfigFiles (NULL, NULL); + rpm_result = rpmdbOpen ("", &rpm_db, O_RDONLY, 0644); + if (rpm_result != 0) { + g_message ("couldn't open package database: %d", rpm_result); +@@ -467,7 +470,7 @@ + + file_descriptor = fdOpen (path_name, O_RDONLY, 0644); + +- if (file_descriptor != NULL) { ++ if (file_descriptor != -1) { + + /* read out the appropriate fields, and set them up in the view */ + result = rpmReadPackageInfo (file_descriptor, &signature, &header_info); diff --git a/x11-fm/nautilus2/files/patch-ae b/x11-fm/nautilus2/files/patch-ae new file mode 100644 index 0000000..5feacc5 --- /dev/null +++ b/x11-fm/nautilus2/files/patch-ae @@ -0,0 +1,10 @@ +--- src/file-manager/fm-desktop-icon-view.c.orig Thu Aug 3 17:15:58 2000 ++++ src/file-manager/fm-desktop-icon-view.c Tue Aug 22 18:55:18 2000 +@@ -41,7 +41,6 @@ + #include <libnautilus-extensions/nautilus-link.h> + #include <libnautilus-extensions/nautilus-volume-monitor.h> + #include <limits.h> +-#include <mntent.h> + #include <stddef.h> + #include <stdio.h> + #include <string.h> diff --git a/x11-fm/nautilus2/files/patch-af b/x11-fm/nautilus2/files/patch-af new file mode 100644 index 0000000..f5c2357 --- /dev/null +++ b/x11-fm/nautilus2/files/patch-af @@ -0,0 +1,11 @@ +--- tools/Makefile.in.orig Wed Aug 16 08:29:15 2000 ++++ tools/Makefile.in Thu Aug 24 10:35:27 2000 +@@ -154,7 +154,7 @@ + + NULL = + +-SUBDIRS = leak-checker $(NULL) ++SUBDIRS = $(NULL) + + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = ../config.h diff --git a/x11-fm/nautilus2/files/patch-ag b/x11-fm/nautilus2/files/patch-ag new file mode 100644 index 0000000..b8000d5 --- /dev/null +++ b/x11-fm/nautilus2/files/patch-ag @@ -0,0 +1,13 @@ +--- src/Makefile.in.orig Wed Aug 16 08:29:06 2000 ++++ src/Makefile.in Wed Aug 23 14:53:30 2000 +@@ -573,8 +573,8 @@ + $(mkinstalldirs) $(DESTDIR)/$(prefix)/bin + @list='run-nautilus'; for p in $$list; do\ + if test -f $(srcdir)/$$p; then \ +- echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ +- $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ ++ echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ ++ $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ + else :; fi; \ + done + |