midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame patches/tcsh-6.20.00.local.patch

Lucio Andrés Illanes Albornoz 5b7840
--- tcsh-6.20.00.orig/configure 2018-06-21 16:23:41.803468940 +0200
Lucio Andrés Illanes Albornoz 5b7840
+++ tcsh-6.20.00/configure      2018-06-21 16:24:12.059836489 +0200
Lucio Andrés Illanes Albornoz 5b7840
@@ -4289,7 +4289,7 @@
Lucio Andrés Illanes Albornoz 5b7840
   return 0;
Lucio Andrés Illanes Albornoz 5b7840
 }
Lucio Andrés Illanes Albornoz 5b7840
 _ACEOF
Lucio Andrés Illanes Albornoz 5b7840
-for ac_lib in '' termlib termcap curses ncurses; do
Lucio Andrés Illanes Albornoz 5b7840
+for ac_lib in '' termlib termcap curses ncurses tinfo; do
Lucio Andrés Illanes Albornoz 5b7840
   if test -z "$ac_lib"; then
Lucio Andrés Illanes Albornoz 5b7840
     ac_res="none required"
Lucio Andrés Illanes Albornoz 5b7840
   else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
--- tcsh-6.20.00/config_f.h.orig	2016-04-16 17:44:18.000000000 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+++ tcsh-6.20.00/config_f.h	2016-12-18 02:01:28.699635400 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
@@ -139,11 +139,9 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
  *		This can be much slower and no memory statistics will be
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
  *		provided.
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
  */
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__) || defined(__OpenBSD__) || defined(__APPLE__) || defined (__ANDROID__)
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+/* always use the system malloc. seriously guys. */
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 # define SYSMALLOC
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-#else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-# undef SYSMALLOC
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 /*
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
  * USE_ACCESS	Use access(2) rather than stat(2) when POSIX is defined.
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
--- tcsh-6.20.00/configure.orig	2016-11-24 16:06:40.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+++ tcsh-6.20.00/configure	2016-12-18 01:59:04.537346800 +0100
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) 09c779
--- tcsh-6.20.00/Makefile.in.orig	2015-08-24 22:09:04.000000000 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+++ tcsh-6.20.00/Makefile.in	2016-12-18 02:00:06.570196600 +0100
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) 09c779
-	${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} $(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) 09c779
--- tcsh-6.20.00/sh.h.orig	2016-09-12 18:33:54.000000000 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+++ tcsh-6.20.00/sh.h	2016-12-18 01:59:27.797673400 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
@@ -338,7 +338,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 #endif /* POSIX && !WINNT_NATIVE */
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 #include <limits.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-#if SYSVREL > 0 || defined(_IBMR2) || defined(_MINIX) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+#if SYSVREL > 0 || defined(_IBMR2) || defined(_MINIX) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 # if !defined(pyr) && !defined(stellar)
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 #  include <time.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 #  ifdef _MINIX
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
--- tcsh-6.20.00/config/midipix.orig	1970-01-01 01:00:00.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+++ tcsh-6.20.00/config/midipix	2016-12-18 02:01:44.103473500 +0100
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 */