pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44944: [patch] sysutils/mc build failure on DragonFly due to missing MAXNAMLEN define



>Number:         44944
>Category:       pkg
>Synopsis:       [patch] sysutils/mc build failure on DragonFly due to missing 
>MAXNAMLEN define
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 08 19:20:00 +0000 2011
>Originator:     Matthias Rampke
>Release:        DragonFlyBSD 2.10 and 2.11
>Organization:
>Environment:
DragonFly zz.2pktfkt.net 2.11-DEVELOPMENT DragonFly 
v2.11.0.125.g6d9e20-DEVELOPMENT #11: Thu May  5 14:20:50 CEST 2011     
matthias%zz.2pktfkt.net@localhost:/usr/obj/usr/src/sys/X86_64_GENERIC_SMP  
x86_64
DragonFly tp.2pktfkt.net 2.10-RELEASE DragonFly v2.10.1.6.g25419-RELEASE #0: 
Mon May 2 02:26:36 CEST 2011 
matthias%tp.2pktfkt.net@localhost:/usr/obj/usr/src/sys/GENERIC i386
>Description:
DragonFly does not define MAXNAMLEN in dirent.h and never will 
<http://bugs.dragonflybsd.org/issue843> so define it when needed.
>How-To-Repeat:
build on DragonFly
>Fix:
diff --git a/sysutils/mc/distinfo b/sysutils/mc/distinfo
index 253b49f..3fb189e 100644
--- a/sysutils/mc/distinfo
+++ b/sysutils/mc/distinfo
@@ -9,3 +9,4 @@ SHA1 (patch-ac) = 04ee1f389ef7015d4976544404d8b9245839bf7b
 SHA1 (patch-ad) = 4484b91511cf5bac73f4ae940988d46239e2cd95
 SHA1 (patch-ae) = b25734f82e46a92eb2a6d6590b0f7524f63040b3
 SHA1 (patch-af) = cff069eb20a5df7095805e800a141f8bb1d94c7d
+SHA1 (patch-lib_vfs_mc__vfs_vfs.c) = 8b5a1bbdf49c210f6d13848a608808706c92be72
diff --git a/sysutils/mc/patches/patch-lib_vfs_mc__vfs_vfs.c 
b/sysutils/mc/patches/patch-lib_vfs_mc__vfs_vfs.c
new file mode 100644
index 0000000..5bbea9e
--- /dev/null
+++ b/sysutils/mc/patches/patch-lib_vfs_mc__vfs_vfs.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+--- lib/vfs/mc-vfs/vfs.c.orig  2010-11-08 11:46:13 +0000
++++ lib/vfs/mc-vfs/vfs.c
+@@ -74,6 +74,14 @@
+ #  define NAME_MAX FILENAME_MAX
+ #endif
+ 
++#ifndef MAXNAMLEN
++#ifdef NAME_MAX
++#define MAXNAMLEN NAME_MAX
++#else
++#define MAXNAMLEN 255
++#endif
++#endif
++
+ /** They keep track of the current directory */
+ static struct vfs_class *current_vfs;
+ static char *current_dir;



Home | Main Index | Thread Index | Old Index