freebsd-ports/x11-fm/nautilus2/files/patch-ad
Ade Lovett 34806178ac 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
2000-09-14 17:57:57 +00:00

31 lines
952 B
Plaintext

--- 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);