diff --git a/x11-fm/gnome-commander2/Makefile b/x11-fm/gnome-commander2/Makefile index 5fa380ee1134..348ccc0f7937 100644 --- a/x11-fm/gnome-commander2/Makefile +++ b/x11-fm/gnome-commander2/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnome-commander PORTVERSION= 1.2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-fm gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-commander/1.2 @@ -37,8 +37,8 @@ MAN1= gnome-commander.1 .include -.if ${OSVERSION} < 700000 && ${ARCH} == "amd64" -BROKEN= Does not compile +.if ${OSVERSION} >= 700000 && ${ARCH} == "amd64" +BROKEN= Does not run on amd64 and 7.X or greater .endif .include diff --git a/x11-fm/gnome-commander2/files/patch-gnome-cmd-python-plugin.cc b/x11-fm/gnome-commander2/files/patch-gnome-cmd-python-plugin.cc new file mode 100644 index 000000000000..53489317e203 --- /dev/null +++ b/x11-fm/gnome-commander2/files/patch-gnome-cmd-python-plugin.cc @@ -0,0 +1,15 @@ +--- ./src/gnome-cmd-python-plugin.cc.orig 2007-09-10 07:38:08.000000000 ++0000 ++++ ./src/gnome-cmd-python-plugin.cc 2007-09-11 00:29:03.000000000 +0000 +@@ -54,6 +54,11 @@ + } + + long dir_size = pathconf(".", _PC_PATH_MAX); ++ if( -1 == dir_size ) ++ { ++ g_warning ( "pathconf(.): %s", strerror(errno) ); ++ return; ++ } + gchar *prev_dir = (gchar *) g_malloc (dir_size); + + if (!prev_dir)