Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jul 2008 19:02:13 GMT
From:      Jens Rehsack <rehsack@web.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/126013: [Update] x11-fm/gnome-commander2/ to 1.2.6
Message-ID:  <200807271902.m6RJ2DZM011583@www.freebsd.org>
Resent-Message-ID: <200807271910.m6RJA2oX060475@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         126013
>Category:       ports
>Synopsis:       [Update] x11-fm/gnome-commander2/ to 1.2.6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 27 19:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Jens Rehsack
>Release:        FreeBSD7-STABLE
>Organization:
>Environment:
FreeBSD waldorf.muppets.liwing.de 7.0-STABLE FreeBSD 7.0-STABLE #1: Wed Jun 11 16:38:38 UTC 2008     root@waldorf.muppets.liwing.de:/usr/obj/usr/src/sys/WALDORF  amd64
>Description:
Updates x11-fm/gnome-commander2 to 1.2.6
If you want, you can give me the maintainership, if Marcelo agrees.

There seems to be problems with Umlauts in file names, but I'm not sure if this is a problem with gnome-commander or within devel/glib20.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: x11-fm/gnome-commander2/Makefile
===================================================================
diff -u x11-fm/gnome-commander2/Makefile.orig x11-fm/gnome-commander2/Makefile
--- x11-fm/gnome-commander2/Makefile.orig	2008-07-21 20:48:02.000000000 +0000
+++ x11-fm/gnome-commander2/Makefile	2008-07-27 17:58:21.000000000 +0000
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	gnome-commander
-PORTVERSION=	1.2.4
-PORTREVISION=	4
+PORTVERSION=	1.2.6
 PORTEPOCH=	1
 CATEGORIES=	x11-fm gnome
 MASTER_SITES=	${MASTER_SITE_GNOME}
@@ -27,17 +26,15 @@
 USE_BZIP2=	yes
 USE_GNOME=	gnomedocutils gnomehack gnomeprefix gnometarget intlhack libgnomeui
 USE_GMAKE=	yes
-USE_AUTOTOOLS=	libtool:15
+USE_AUTOTOOLS=	libtool:15 autoconf:262:env
+GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 INSTALLS_OMF=	yes
 
 MAN1=		gnome-commander.1
 
-.include <bsd.port.pre.mk>
+pre-configure:
+	cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTORECONF} -W none
 
-.if ${OSVERSION} >= 700000 && ${ARCH} == "amd64"
-IGNORE=		Does not run on amd64 and 7.X or greater
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: x11-fm/gnome-commander2/distinfo
===================================================================
diff -u x11-fm/gnome-commander2/distinfo.orig x11-fm/gnome-commander2/distinfo
--- x11-fm/gnome-commander2/distinfo.orig	2008-07-21 20:48:07.000000000 +0000
+++ x11-fm/gnome-commander2/distinfo	2008-07-21 20:53:11.000000000 +0000
@@ -1,3 +1,3 @@
-MD5 (gnome2/gnome-commander-1.2.4.tar.bz2) = 9897237e3d297086d88ddf3c7d0dc560
-SHA256 (gnome2/gnome-commander-1.2.4.tar.bz2) = a99cd22fc528e70e2a54aa3d1f0cefa04b416eee28a9b2c27bb973509c0459bf
-SIZE (gnome2/gnome-commander-1.2.4.tar.bz2) = 1738704
+MD5 (gnome2/gnome-commander-1.2.6.tar.bz2) = 4a3d3ebd24af3f386fbbf2985acbc786
+SHA256 (gnome2/gnome-commander-1.2.6.tar.bz2) = 0f7272b71ad60eccc08ad70d3eace182786e5eaf38c4cabac5ab693ffc088b33
+SIZE (gnome2/gnome-commander-1.2.6.tar.bz2) = 2281176
Index: x11-fm/gnome-commander2/pkg-plist
===================================================================
diff -u x11-fm/gnome-commander2/pkg-plist.orig x11-fm/gnome-commander2/pkg-plist
--- x11-fm/gnome-commander2/pkg-plist.orig	2008-07-27 10:57:32.000000000 +0000
+++ x11-fm/gnome-commander2/pkg-plist	2008-07-27 17:54:16.000000000 +0000
@@ -24,19 +24,26 @@
 share/gnome/help/gnome-commander/C/figures/extract_archive.png
 share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_adv_rename.png
 share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_bookmark.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_file_metadata.png
 share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_file_permissions.png
 share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_file_properties.png
-share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_ftp.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_keyboard_shortcuts.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_remote_connections.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_remote_server.png
 share/gnome/help/gnome-commander/C/figures/gnome-commander_dialog_search.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_options_confirmation.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_options_devices.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_options_filters.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_options_format.png
 share/gnome/help/gnome-commander/C/figures/gnome-commander_options_general.png
 share/gnome/help/gnome-commander/C/figures/gnome-commander_options_layout.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_options_network.png
+share/gnome/help/gnome-commander/C/figures/gnome-commander_options_programs.png
 share/gnome/help/gnome-commander/C/figures/gnome-commander_window.png
 share/gnome/help/gnome-commander/C/figures/mounting.png
 share/gnome/help/gnome-commander/C/gnome-commander.xml
 share/gnome/help/gnome-commander/C/legal.xml
 share/omf/gnome-commander/gnome-commander-C.omf
-share/pixmaps/gnome-commander/copy_file_names.xpm
-share/pixmaps/gnome-commander/desktop.xpm
 share/pixmaps/gnome-commander/device-icons/bluetooth.xpm
 share/pixmaps/gnome-commander/device-icons/burner.xpm
 share/pixmaps/gnome-commander/device-icons/camera.xpm
@@ -52,30 +59,13 @@
 share/pixmaps/gnome-commander/device-icons/wavelan-encrypted.xpm
 share/pixmaps/gnome-commander/device-icons/wavelan.xpm
 share/pixmaps/gnome-commander/device-icons/zip.xpm
-share/pixmaps/gnome-commander/exec.xpm
-share/pixmaps/gnome-commander/exec_wheel.xpm
-share/pixmaps/gnome-commander/file-type-icons/file_type_block_device.xpm
-share/pixmaps/gnome-commander/file-type-icons/file_type_char_device.xpm
 share/pixmaps/gnome-commander/file-type-icons/file_type_dir.xpm
-share/pixmaps/gnome-commander/file-type-icons/file_type_fifo.xpm
-share/pixmaps/gnome-commander/file-type-icons/file_type_regular.xpm
 share/pixmaps/gnome-commander/file-type-icons/file_type_socket.xpm
+share/pixmaps/gnome-commander/file-type-icons/file_type_block_device.xpm
+share/pixmaps/gnome-commander/file-type-icons/file_type_fifo.xpm
 share/pixmaps/gnome-commander/file-type-icons/file_type_symlink.xpm
-share/pixmaps/gnome-commander/flip-horizontal-16.xpm
-share/pixmaps/gnome-commander/flip-vertical-16.xpm
-share/pixmaps/gnome-commander/ftp.xpm
-share/pixmaps/gnome-commander/ftp_connect.xpm
-share/pixmaps/gnome-commander/ftp_disconnect.xpm
-share/pixmaps/gnome-commander/gnome-commander.xpm
-share/pixmaps/gnome-commander/gnome_cmd_arrow_blank.xpm
-share/pixmaps/gnome-commander/gnome_cmd_arrow_down.xpm
-share/pixmaps/gnome-commander/gnome_cmd_arrow_up.xpm
-share/pixmaps/gnome-commander/home.xpm
-share/pixmaps/gnome-commander/internal-viewer.xpm
-share/pixmaps/gnome-commander/python-plugin.svg
-share/pixmaps/gnome-commander/key.xpm
-share/pixmaps/gnome-commander/lock.xpm
-share/pixmaps/gnome-commander/menu_bookmark.xpm
+share/pixmaps/gnome-commander/file-type-icons/file_type_char_device.xpm
+share/pixmaps/gnome-commander/file-type-icons/file_type_regular.xpm
 share/pixmaps/gnome-commander/mime-icons/gnome-application-msword.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-pdf.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-postscript.png
@@ -86,6 +76,7 @@
 share/pixmaps/gnome-commander/mime-icons/gnome-application-vnd.sun.xml.impress.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-vnd.sun.xml.writer.math.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-vnd.sun.xml.writer.png
+share/pixmaps/gnome-commander/mime-icons/i-fifo.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-x-anjuta-project.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-x-arj.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-x-bzip-compressed-tar.png
@@ -97,6 +88,7 @@
 share/pixmaps/gnome-commander/mime-icons/gnome-application-x-glade.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-x-gnumeric.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-x-gzip.png
+share/pixmaps/gnome-commander/mime-icons/i-blockdev.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-x-mrproject.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-x-ogg.png
 share/pixmaps/gnome-commander/mime-icons/gnome-application-x-rpm.png
@@ -113,37 +105,44 @@
 share/pixmaps/gnome-commander/mime-icons/gnome-video-plain.png
 share/pixmaps/gnome-commander/mime-icons/gnome-x-directory-smb-server.png
 share/pixmaps/gnome-commander/mime-icons/gnome-x-directory-smb-workgroup.png
-share/pixmaps/gnome-commander/mime-icons/i-blockdev.png
 share/pixmaps/gnome-commander/mime-icons/i-chardev.png
 share/pixmaps/gnome-commander/mime-icons/i-directory.png
-share/pixmaps/gnome-commander/mime-icons/i-fifo.png
 share/pixmaps/gnome-commander/mime-icons/i-music.png
 share/pixmaps/gnome-commander/mime-icons/i-regular.png
 share/pixmaps/gnome-commander/mime-icons/i-socket.png
 share/pixmaps/gnome-commander/mime-icons/i-symlink.png
-share/pixmaps/gnome-commander/mkdir.xpm
+share/pixmaps/gnome-commander/copy_file_names.xpm
+share/pixmaps/gnome-commander/exec_wheel.xpm
+share/pixmaps/gnome-commander/flip-horizontal-16.xpm
+share/pixmaps/gnome-commander/flip-vertical-16.xpm
+share/pixmaps/gnome-commander/gnome_cmd_arrow_blank.xpm
+share/pixmaps/gnome-commander/gnome_cmd_arrow_down.xpm
+share/pixmaps/gnome-commander/gnome_cmd_arrow_up.xpm
+share/pixmaps/gnome-commander/gnome-commander.xpm
+share/pixmaps/gnome-commander/internal-viewer.xpm
+share/pixmaps/gnome-commander/menu_bookmark.xpm
+share/pixmaps/gnome-commander/nautilus.svg
 share/pixmaps/gnome-commander/overlay_symlink.xpm
 share/pixmaps/gnome-commander/overlay_umount.xpm
 share/pixmaps/gnome-commander/parent_dir.xpm
+share/pixmaps/gnome-commander/python.svg
 share/pixmaps/gnome-commander/root_dir.xpm
 share/pixmaps/gnome-commander/rotate-180-16.xpm
 share/pixmaps/gnome-commander/rotate-270-16.xpm
 share/pixmaps/gnome-commander/rotate-90-16.xpm
-share/pixmaps/gnome-commander/server.xpm
-share/pixmaps/gnome-commander/smb-computer.xpm
-share/pixmaps/gnome-commander/smb-network.xpm
 share/pixmaps/gnome-commander/toggle_horizontal.xpm
 share/pixmaps/gnome-commander/toggle_vertical.xpm
+share/pixmaps/gnome-commander/terminal.svg
 share/pixmaps/gnome-commander.png
 share/locale/ar/LC_MESSAGES/gnome-commander.mo
 share/locale/bg/LC_MESSAGES/gnome-commander.mo
 share/locale/ca/LC_MESSAGES/gnome-commander.mo
 share/locale/cs/LC_MESSAGES/gnome-commander.mo
 share/locale/de/LC_MESSAGES/gnome-commander.mo
-share/locale/dz/LC_MESSAGES/gnome-commander.mo
 share/locale/el/LC_MESSAGES/gnome-commander.mo
 share/locale/en_CA/LC_MESSAGES/gnome-commander.mo
 share/locale/en_GB/LC_MESSAGES/gnome-commander.mo
+share/locale/eo/LC_MESSAGES/gnome-commander.mo
 share/locale/es/LC_MESSAGES/gnome-commander.mo
 share/locale/eu/LC_MESSAGES/gnome-commander.mo
 share/locale/fi/LC_MESSAGES/gnome-commander.mo
@@ -161,7 +160,6 @@
 share/locale/pt_BR/LC_MESSAGES/gnome-commander.mo
 share/locale/ro/LC_MESSAGES/gnome-commander.mo
 share/locale/ru/LC_MESSAGES/gnome-commander.mo
-share/locale/rw/LC_MESSAGES/gnome-commander.mo
 share/locale/sk/LC_MESSAGES/gnome-commander.mo
 share/locale/sl/LC_MESSAGES/gnome-commander.mo
 share/locale/sq/LC_MESSAGES/gnome-commander.mo
@@ -170,19 +168,21 @@
 share/locale/sv/LC_MESSAGES/gnome-commander.mo
 share/locale/uk/LC_MESSAGES/gnome-commander.mo
 share/locale/vi/LC_MESSAGES/gnome-commander.mo
-share/locale/oc/LC_MESSAGES/gnome-commander.mo
 share/locale/zh_CN/LC_MESSAGES/gnome-commander.mo
 share/locale/zh_TW/LC_MESSAGES/gnome-commander.mo
+share/locale/rw/LC_MESSAGES/gnome-commander.mo
+share/locale/dz/LC_MESSAGES/gnome-commander.mo
+share/locale/oc/LC_MESSAGES/gnome-commander.mo
 @dirrmtry share/locale/oc/LC_MESSAGES
 @dirrmtry share/locale/oc
-@dirrm share/pixmaps/gnome-commander/mime-icons
-@dirrm share/pixmaps/gnome-commander/file-type-icons
-@dirrm share/pixmaps/gnome-commander/device-icons
-@dirrm share/pixmaps/gnome-commander
-@dirrm share/omf/gnome-commander
 @dirrm share/gnome/help/gnome-commander/C/figures
 @dirrm share/gnome/help/gnome-commander/C
 @dirrm share/gnome/help/gnome-commander
+@dirrm share/omf/gnome-commander
+@dirrm share/pixmaps/gnome-commander/device-icons
+@dirrm share/pixmaps/gnome-commander/file-type-icons
+@dirrm share/pixmaps/gnome-commander/mime-icons
+@dirrm share/pixmaps/gnome-commander
 @dirrm lib/gnome-commander/plugins
 @dirrm lib/gnome-commander
 @dirrmtry share/applications
Index: x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/filter.cc
===================================================================
diff -u x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/filter.cc.orig x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/filter.cc
--- x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/filter.cc.orig	2008-06-01 14:44:25.000000000 +0000
+++ x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/filter.cc	2008-07-27 18:16:31.000000000 +0000
@@ -25,10 +25,6 @@
 #include "gnome-cmd-includes.h"
 #include "filter.h"
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
 using namespace std;
 
 
@@ -55,7 +51,7 @@
     filter->fn_exp = g_strdup (exp);
     filter->fn_flags = FNM_NOESCAPE;
 
-#ifdef _GNU_SOURCE
+#ifdef FNM_CASEFOLD
     if (!case_sens)
         filter->fn_flags |= FNM_CASEFOLD;
 #endif
Index: x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/gnome-cmd-file-popmenu.cc
===================================================================
diff -u x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/gnome-cmd-file-popmenu.cc.orig x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/gnome-cmd-file-popmenu.cc
--- x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/gnome-cmd-file-popmenu.cc.orig	2008-06-01 14:44:25.000000000 +0000
+++ x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/gnome-cmd-file-popmenu.cc	2008-07-27 18:16:31.000000000 +0000
@@ -30,9 +30,6 @@
 #include "utils.h"
 #include "cap.h"
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
 #include <fnmatch.h>
 
 using namespace std;
@@ -284,7 +281,7 @@
             for (; files; files = files->next)
             {
                 gboolean ok = FALSE;
-#ifdef _GNU_SOURCE
+#ifdef FNM_CASEFOLD
                 gint fn_flags = FNM_NOESCAPE | FNM_CASEFOLD;
 #else
                 gint fn_flags = FNM_NOESCAPE;
Index: x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/utils.cc
===================================================================
diff -u x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/utils.cc.orig x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/utils.cc
--- x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/utils.cc.orig	2008-06-01 14:44:25.000000000 +0000
+++ x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/utils.cc	2008-07-27 18:16:31.000000000 +0000
@@ -33,9 +33,6 @@
 #include "gnome-cmd-con-list.h"
 #include "gnome-cmd-xfer.h"
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
 #include <fnmatch.h>
 
 using namespace std;
@@ -1328,7 +1325,7 @@
 gboolean patlist_matches (GList *pattern_list, const gchar *s)
 {
     for (GList *tmp = pattern_list; tmp; tmp = tmp->next)
-#ifdef _GNU_SOURCE
+#ifdef FNM_CASEFOLD
         if (fnmatch ((gchar *) tmp->data, s, FNM_NOESCAPE|FNM_CASEFOLD) == 0)
 #else
         if (fnmatch ((gchar *) tmp->data, s, FNM_NOESCAPE) == 0)   // omit FNM_CASEFOLD as it is a GNU extension.
Index: x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/gnome-cmd-file.cc
===================================================================
diff -u x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/gnome-cmd-file.cc.orig x11-fm/gnome-commander2/work/gnome-commander-1.2.6/src/gnome-cmd-file.cc
Index: x11-fm/gnome-commander2/work/gnome-commander-1.2.6/configure.in
===================================================================
diff -u x11-fm/gnome-commander2/work/gnome-commander-1.2.6/configure.in.orig x11-fm/gnome-commander2/work/gnome-commander-1.2.6/configure.in
--- x11-fm/gnome-commander2/work/gnome-commander-1.2.6/configure.in.orig	2008-06-01 14:44:25.000000000 +0000
+++ x11-fm/gnome-commander2/work/gnome-commander-1.2.6/configure.in	2008-07-27 18:16:31.000000000 +0000
@@ -237,7 +237,6 @@
 dnl Checks for library functions
 dnl =============================
 
-AC_FUNC_FNMATCH_GNU
 AC_FUNC_MMAP
 
 dnl ================================================================
Index: x11-fm/gnome-commander2/files/patch-gnome-cmd-python-plugin.cc
===================================================================
diff -uN x11-fm/gnome-commander2/files/patch-gnome-cmd-python-plugin.cc
--- x11-fm/gnome-commander2/files/patch-gnome-cmd-python-plugin.cc	2008-01-06 15:20:58.000000000 +0000
+++ /dev/null	2008-07-27 18:55:01.000000000 +0000
@@ -1,15 +0,0 @@
---- ./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)
Index: x11-fm/gnome-commander2/files/patch-fnmatch
===================================================================
diff -uN x11-fm/gnome-commander2/files/patch-fnmatch
--- /dev/null	2008-07-27 18:55:01.000000000 +0000
+++ x11-fm/gnome-commander2/files/patch-fnmatch	2008-07-27 17:58:53.000000000 +0000
@@ -0,0 +1,78 @@
+diff -ru gnome-commander-1.2.6/configure.in gnome-commander-1.2.6-patch/configure.in
+--- configure.in.orig	2008-06-01 16:44:26.000000000 +0200
++++ configure.in	2008-07-23 10:32:56.474220300 +0200
+@@ -237,7 +237,6 @@
+ dnl Checks for library functions
+ dnl =============================
+ 
+-AC_FUNC_FNMATCH_GNU
+ AC_FUNC_MMAP
+ 
+ dnl ================================================================
+diff -ru gnome-commander-1.2.6/src/filter.cc gnome-commander-1.2.6-patch/src/filter.cc
+--- src/filter.cc,orig	2008-06-01 16:44:26.000000000 +0200
++++ src/filter.cc	2008-07-23 10:32:56.489868100 +0200
+@@ -25,10 +25,6 @@
+ #include "gnome-cmd-includes.h"
+ #include "filter.h"
+ 
+-#ifndef _GNU_SOURCE
+-#define _GNU_SOURCE
+-#endif
+-
+ using namespace std;
+ 
+ 
+@@ -55,7 +51,7 @@
+     filter->fn_exp = g_strdup (exp);
+     filter->fn_flags = FNM_NOESCAPE;
+ 
+-#ifdef _GNU_SOURCE
++#ifdef FNM_CASEFOLD
+     if (!case_sens)
+         filter->fn_flags |= FNM_CASEFOLD;
+ #endif
+diff -ru gnome-commander-1.2.6/src/gnome-cmd-file-popmenu.cc gnome-commander-1.2.6-patch/src/gnome-cmd-file-popmenu.cc
+--- src/gnome-cmd-file-popmenu.cc.orig	2008-06-01 16:44:26.000000000 +0200
++++ src/gnome-cmd-file-popmenu.cc	2008-07-23 10:32:56.505515900 +0200
+@@ -30,9 +30,6 @@
+ #include "utils.h"
+ #include "cap.h"
+ 
+-#ifndef _GNU_SOURCE
+-#define _GNU_SOURCE
+-#endif
+ #include <fnmatch.h>
+ 
+ using namespace std;
+@@ -284,7 +281,7 @@
+             for (; files; files = files->next)
+             {
+                 gboolean ok = FALSE;
+-#ifdef _GNU_SOURCE
++#ifdef FNM_CASEFOLD
+                 gint fn_flags = FNM_NOESCAPE | FNM_CASEFOLD;
+ #else
+                 gint fn_flags = FNM_NOESCAPE;
+diff -ru gnome-commander-1.2.6/src/utils.cc gnome-commander-1.2.6-patch/src/utils.cc
+--- src/utils.cc.orig	2008-06-01 16:44:26.000000000 +0200
++++ src/utils.cc	2008-07-23 10:32:56.521163700 +0200
+@@ -33,9 +33,6 @@
+ #include "gnome-cmd-con-list.h"
+ #include "gnome-cmd-xfer.h"
+ 
+-#ifndef _GNU_SOURCE
+-#define _GNU_SOURCE
+-#endif
+ #include <fnmatch.h>
+ 
+ using namespace std;
+@@ -1328,7 +1325,7 @@
+ gboolean patlist_matches (GList *pattern_list, const gchar *s)
+ {
+     for (GList *tmp = pattern_list; tmp; tmp = tmp->next)
+-#ifdef _GNU_SOURCE
++#ifdef FNM_CASEFOLD
+         if (fnmatch ((gchar *) tmp->data, s, FNM_NOESCAPE|FNM_CASEFOLD) == 0)
+ #else
+         if (fnmatch ((gchar *) tmp->data, s, FNM_NOESCAPE) == 0)   // omit FNM_CASEFOLD as it is a GNU extension.


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807271902.m6RJ2DZM011583>