Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame tcsh-6.19.00.local.patch

Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
--- tcsh-6.19.00/configure.orig	2015-05-21 21:41:48.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+++ tcsh-6.19.00/configure	2016-05-26 11:51:44.823732557 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
@@ -2975,6 +2975,11 @@
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
     tcsh_config_file=qnx6
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
   ;;
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+  ## midipix
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+  *-midipix*)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+    tcsh_config_file=midipix
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+  ;;
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
   * )
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
     as_fn_error $? "Tcsh can't guess the configuration file name
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 for \`${host}' systems.
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
--- tcsh-6.19.00/sh.h.orig	2015-05-10 13:29:28.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+++ tcsh-6.19.00/sh.h	2016-05-26 12:16:19.303699832 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
@@ -333,7 +333,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 #endif /* POSIX && !WINNT_NATIVE */
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 #include <limits.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
-#if SYSVREL > 0 || defined(_IBMR2) || defined(_MINIX) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#if SYSVREL > 0 || defined(_IBMR2) || defined(_MINIX) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 # if !defined(pyr) && !defined(stellar)
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 #  include <time.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 #  ifdef _MINIX
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
--- tcsh-6.19.00/Makefile.in.orig	2014-07-24 22:52:13.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+++ tcsh-6.19.00/Makefile.in	2016-05-26 12:43:28.099663682 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
@@ -24,6 +24,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 CF=-c
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 CPPFLAGS=-I. -I$(srcdir)
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+CPPFLAGS_FOR_GETHOST=-I. -I$(srcdir)
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 LFLAGS=
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 # hpux lint
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
@@ -449,7 +450,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 gethost:  gethost.c sh.err.h tc.const.h sh.h
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 	rm -f gethost
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
-	${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} ${CFLAGS} $(srcdir)/gethost.c
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+	${CC_FOR_GETHOST} -o gethost ${CPPFLAGS_FOR_GETHOST} ${CFLAGS_FOR_GETHOST} $(srcdir)/gethost.c
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 tc.defs.c:	gethost host.defs
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
 	@rm -f $@.tmp
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
--- tcsh-6.19.00/config/midipix.orig	1970-01-01 00:00:00.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+++ tcsh-6.19.00/config/midipix	2016-05-26 13:04:58.627635040 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
@@ -0,0 +1,138 @@
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * config.h -- configure various defines for tcsh
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * All source files should #include this FIRST.
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * This is the config file for midipix systems
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#ifndef _h_config
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#define _h_config
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/****************** System dependant compilation flags ****************/
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * POSIX	This system supports IEEE Std 1003.1-1988 (POSIX).
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#define POSIX
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * POSIXJOBS	This system supports the optional IEEE Std 1003.1-1988 (POSIX)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		job control facilities.
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#define POSIXJOBS
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * VFORK	This machine has a vfork().  
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		It used to be that for job control to work, this define
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		was mandatory. This is not the case any more.
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		If you think you still need it, but you don't have vfork, 
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		define this anyway and then do #define vfork fork.  
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		I do this anyway on a Sun because of yellow pages brain damage,
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		[should not be needed under 4.1]
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		and on the iris4d cause	SGI's fork is sufficiently "virtual" 
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		that vfork isn't necessary.  (Besides, SGI's vfork is weird).
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		Note that some machines eg. rs6000 have a vfork, but not
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		with the berkeley semantics, so we cannot use it there either.
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#undef VFORK
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * BSDJOBS	You have BSD-style job control (both process groups and
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		a tty that deals correctly
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#define BSDJOBS
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * BSDTIMES	You have BSD-style process time stuff (like rusage)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		This may or may not be true.  For example, Apple Unix
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		(OREO) has BSDJOBS but not BSDTIMES.
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#define BSDTIMES
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * BSDLIMIT	You have BSD-style resource limit stuff (getrlimit/setrlimit)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#define BSDLIMIT
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * TERMIO	You have struct termio instead of struct sgttyb.
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * 		This is usually the case for SVID systems, where
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		BSD uses sgttyb. POSIX systems should define this
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		anyway, even though they use struct termios.
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#define TERMIO
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * SYSVREL	Your machine is SYSV based (HPUX, A/UX)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		NOTE: don't do this if you are on a Pyramid -- tcsh is
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		built in a BSD universe.
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		you are running. Or set it to 0 if you are not SYSV based
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		Note: Linux should work with any SYSVREL < 3.
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#define SYSVREL	2
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ * YPBUGS	Work around Sun YP bugs that cause expansion of ~username
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ *		to send command output to /dev/null
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#undef YPBUGS
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+ * Get the name space we want.
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+ *
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+ * The more recent defaults for gcc (e.g. on Red Hat 7.0)
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+ * also define _POSIX_C_SOURCE, which throws our code off.
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#define __STRICT_ANSI__
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#ifndef _BSD_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define _BSD_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#ifndef _SVID_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define _SVID_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#ifndef _POSIX_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define _POSIX_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#ifndef _XOPEN_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define _XOPEN_SOURCE 500
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#ifndef _GNU_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define _GNU_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+/*
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+ * Large file support from <features.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+ */
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#ifndef _LARGEFILE_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define _LARGEFILE_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#ifndef _LARGEFILE64_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define _LARGEFILE64_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#ifndef _FILE_OFFSET_BITS
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define _FILE_OFFSET_BITS 64
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/****************** local defines *********************/
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#ifndef _PATH_TCSHELL
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#define _PATH_TCSHELL "/bin/tcsh"
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#define ECHO_STYLE      BOTH_ECHO
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#if !defined(SYSMALLOC)
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define SYSMALLOC
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#if !defined(NISPLUS)
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define NISPLUS
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#if !defined(POSIX)
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+# define POSIX
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8afad0
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+/* midipix allows paths prepended with double slashes (network paths). */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#define HAVE_SLASHSLASH 1
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#endif /* _h_config */
23357f
--- tcsh-6.19.00/config_f.h.orig	2015-02-22 17:31:54.000000000 +0100
23357f
+++ tcsh-6.19.00/config_f.h	        2016-10-14 22:10:42.212000000 +0200
23357f
@@ -135,11 +135,9 @@
23357f
  *		This can be much slower and no memory statistics will be
23357f
  *		provided.
23357f
  */
23357f
-#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__) || defined(__OpenBSD__) || defined(__APPLE__)
23357f
+
23357f
+/* always use the system malloc. seriously guys. */
23357f
 # define SYSMALLOC
23357f
-#else
23357f
-# undef SYSMALLOC
23357f
-#endif
23357f
 
23357f
 /*
23357f
  * USE_ACCESS	Use access(2) rather than stat(2) when POSIX is defined.