NetBSD-Bugs archive

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

Re: misc/50166: [PATCH] MAXPATHLEN / PATH_MAX definitions (for GNU/Hurd support in Rump)



The following reply was made to PR misc/50166; it has been noted by GNATS.

From: Robert Millan <rmh%gnu.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: misc/50166: [PATCH] MAXPATHLEN / PATH_MAX definitions (for GNU/Hurd
 support in Rump)
Date: Mon, 24 Aug 2015 20:11:37 +0200

 This is a multi-part message in MIME format.
 --------------000702000804050103070600
 Content-Type: text/plain; charset=windows-1252; format=flowed
 Content-Transfer-Encoding: 7bit
 
 El 24/08/15 a les 19:55, gnats-admin%netbsd.org@localhost ha escrit:
 > Thank you very much for your problem report.
 > It has the internal identification `misc/50166'.
 > The individual assigned to look at your
 > report is: misc-bug-people.
 >
 >> Category:       misc
 >> Responsible:    misc-bug-people
 >> Synopsis:       [PATCH] MAXPATHLEN / PATH_MAX definitions (for GNU/Hurd support in Rump)
 >> Arrival-Date:   Mon Aug 24 17:55:00 +0000 2015
 
 Thanks. Here's the patch.
 
 -- 
 Robert Millan
 
 --------------000702000804050103070600
 Content-Type: text/x-patch;
  name="hurd_3_limits.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="hurd_3_limits.diff"
 
 --- a/src/tools/compat/Makefile
 +++ b/src/tools/compat/Makefile
 @@ -38,6 +38,11 @@
  CPPFLAGS+=	-I. -I./include -I${.CURDIR} -I${.CURDIR}/sys \
  		-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64
  
 +# Define MAXPATHLEN limit on GNU/Hurd
 +.if ${BUILD_OSTYPE} == "GNU"
 +CPPFLAGS+=	-DMAXPATHLEN=1024 -DPATH_MAX=1024
 +.endif
 +
  .PATH:		${.CURDIR}/../../lib/libc/cdb \
  		${.CURDIR}/../../lib/libc/gen \
  		${.CURDIR}/../../lib/libc/hash \
 --- a/src/tools/compat/defs.mk.in
 +++ b/src/tools/compat/defs.mk.in
 @@ -79,6 +79,11 @@
  HOST_CPPFLAGS+=	${COMPATINCFLAGS} -I${NETBSDSRCDIR}/tools/compat \
  		-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64
  
 +# Define MAXPATHLEN limit on GNU/Hurd
 +.if ${BUILD_OSTYPE} == "GNU"
 +HOST_CPPFLAGS+= -DMAXPATHLEN=1024 -DPATH_MAX=1024
 +.endif
 +
  .if "${COMPATLIB_NO_LIB}" != "yes"
  DPADD+=		${COMPATLIBDIR}/libnbcompat.a
  LDADD+=		-L${COMPATLIBDIR} -lnbcompat @LIBS@
 --- a/src/tools/make/configure
 +++ b/src/tools/make/configure
 @@ -971,6 +971,10 @@
  #define DEFSHELL_CUSTOM "${BSHELL}"
  EOF
  
 +cat >>confdefs.h <<EOF
 +#define MAXPATHLEN 1024
 +EOF
 +
  # Make sure we have POSIX regex ability.
  ac_ext=c
  ac_cpp='$CPP $CPPFLAGS'
 --- a/src/tools/make/configure.ac
 +++ b/src/tools/make/configure.ac
 @@ -24,6 +24,7 @@
  
  AC_INIT([make], [noversion], [bin-bug-people%NetBSD.org@localhost])
  AC_CONFIG_FILES(buildmake.sh)
 +AC_CANONICAL_HOST()
  
  AC_PATH_PROG(BSHELL, sh)
  if test x"$BSHELL" = x; then
 @@ -31,6 +32,13 @@
  fi
  AC_DEFINE_UNQUOTED(DEFSHELL_CUSTOM, "${BSHELL}")
  
 +case $host_os in
 +	gnu*)
 +		# Define MAXPATHLEN limit on GNU/Hurd
 +		AC_DEFINE_UNQUOTED(MAXPATHLEN, 1024)
 +	;;
 +esac
 +
  # Make sure we have POSIX regex ability.
  AC_CHECK_HEADER(regex.h,, AC_MSG_ERROR([POSIX regex.h is required]))
  
 
 --------------000702000804050103070600--
 



Home | Main Index | Thread Index | Old Index