midipix / 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/config.sub.orig	2014-07-20 09:14:34.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+++ tcsh-6.19.00/config.sub	2016-05-26 11:49:50.223735101 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
@@ -789,6 +789,10 @@
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	microblaze*)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 		basic_machine=microblaze-xilinx
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
+		basic_machine=x86_64-pc
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+		os=-midipix
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+		;;
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	mingw64)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 		basic_machine=x86_64-pc
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 		os=-mingw64
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
@@ -1365,7 +1369,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	      | -chorusos* | -chorusrdb* | -cegcc* \
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
-	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
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) c688c1
--- tcsh-6.19.00/config/midipix.orig	2016-05-26 11:54:37.763728719 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+++ tcsh-6.19.00/config/midipix	2016-05-26 11:56:37.751726056 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
@@ -0,0 +1,90 @@
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) c688c1
+#undef 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) c688c1
+#define SYSVREL	0
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) 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) 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 */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
--- tcsh-6.19.00/sh.h.orig	2015-05-10 13:29:28.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+++ tcsh-6.19.00/sh.h	2016-05-26 12:16:19.303699832 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
@@ -333,7 +333,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 #endif /* POSIX && !WINNT_NATIVE */
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 #include <limits.h>
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
-#if SYSVREL > 0 || defined(_IBMR2) || defined(_MINIX) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+#if SYSVREL > 0 || defined(_IBMR2) || defined(_MINIX) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 # if !defined(pyr) && !defined(stellar)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 #  include <time.h>
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 #  ifdef _MINIX
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
--- tcsh-6.19.00/Makefile.in.orig	2014-07-24 22:52:13.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+++ tcsh-6.19.00/Makefile.in	2016-05-26 12:43:28.099663682 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
@@ -24,6 +24,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 CF=-c
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 CPPFLAGS=-I. -I$(srcdir)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+CPPFLAGS_FOR_GETHOST=-I. -I$(srcdir)
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 LFLAGS=
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 # hpux lint
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
@@ -449,7 +450,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 gethost:  gethost.c sh.err.h tc.const.h sh.h
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	rm -f gethost
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
-	${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} ${CFLAGS} $(srcdir)/gethost.c
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
+	${CC_FOR_GETHOST} -o gethost ${CPPFLAGS_FOR_GETHOST} ${CFLAGS_FOR_GETHOST} $(srcdir)/gethost.c
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 tc.defs.c:	gethost host.defs
Lucio Andrés Illanes Albornoz (arab, vxp) c688c1
 	@rm -f $@.tmp