* Re: does bash (gnu shell) run on OSF1?
1993-06-16 20:24 does bash (gnu shell) run on OSF1? Gautam H. Thaker
@ 1993-06-17 10:05 ` Arne Henrik Juul
1993-06-18 6:51 ` Pete KAISER
1 sibling, 0 replies; 3+ messages in thread
From: Arne Henrik Juul @ 1993-06-17 10:05 UTC (permalink / raw)
In article <GTHAKER.93Jun16162429@trantor.atl.ge.com> gthaker@atl.ge.com (Gautam H. Thaker) writes:
>I am using
>
>Paragon OSF/1 Release 1.0.1 Server 1.0 R1.0; Mon Apr 19 13:37:28 PDT 1993;
>Paragon OSF/1 Release 1.0.1 Server 1.0 R1.0; Mon Apr 19 13:37:28 PDT 1993;
>
>Paragon OSF/1 Release R1.0 April 14, 1993
>
>Does anyone know if bash runs on this OS?
>
>Thanks.
>
>Gautam H. Thaker (gthaker@atl.ge.com) 609-866-6412 (fax x6397. Dialcom 8-777)
>Martin Adv. Tech. Lab., MS 145-2; Route 38; Moorestown, NJ 08057. 767-4396 (H)
Yes :-)
Paragon OSF/1 Release 1.0.1 Server 1.0 R1.0; Mon Apr 19 13:37:28 PDT 1993;
bash$ uname -a
Paragon OSF/1 paragon 1.0.1 R1.0 paragon
The biggest problem is making the bash-Makefile. It wants a "good"
old cpp, and the CPP860 provided doesn't cut it. (How they got X
to compile, I don't know, but I guess they just compiled a BSD
version of cpp for that). Provided you compile your own cpp (BSD
or GNU), or do that processing on another machine, things are
quite smooth. (Another option is cross-compiling using ICC860
from a normal UNIX machine - this also works well).
I compiled when running an alpha version of the operating system,
so my patches may not be very optimal, but they still worked when
compiling today.
Good luck,
Arne H. Juul (arnej@lise.unit.no)
NOTE: I'll be on vacation soon, so I may not answer mail.
diff -rc src-1.12/Makefile paragon-1.12/Makefile
*** src-1.12/Makefile Sat Jan 18 20:43:12 1992
--- paragon-1.12/Makefile Thu Jun 17 04:35:36 1993
***************
*** 10,25 ****
#
# If you haven't read README, now might be a good time.
! DESTDIR = /usr/gnu/bin
MAKE = make
RM = rm -f
SHELL = /bin/sh
GAWK = awk
- # GAWK = gawk
! CPPNAME = /lib/cpp
! CPP = $(CPPNAME) `$(CPPMAGIC) $(GETCPPSYMS) $(CPPNAME)` -P
! # CPP = $(CC) -E
CPP_MAKEFILE = cpp-Makefile
--- 10,23 ----
#
# If you haven't read README, now might be a good time.
! DESTDIR = /local/bin
MAKE = make
RM = rm -f
SHELL = /bin/sh
GAWK = awk
! CPPNAME = /home/paragon/nth/arnej/bin/cpp
! CPP = $(CPPNAME) `$(CPPMAGIC) $(GETCPPSYMS) $(CPPNAME)`
CPP_MAKEFILE = cpp-Makefile
diff -rc src-1.12/builtins/hashcom.h paragon-1.12/builtins/hashcom.h
*** src-1.12/builtins/hashcom.h Mon Jul 8 00:03:38 1991
--- paragon-1.12/builtins/hashcom.h Thu Jun 17 03:06:11 1993
***************
*** 3,9 ****
#define FILENAME_HASH_BUCKETS 631
! HASH_TABLE *hashed_filenames;
typedef struct {
char *path; /* The full pathname of the file. */
--- 3,9 ----
#define FILENAME_HASH_BUCKETS 631
! extern HASH_TABLE *hashed_filenames;
typedef struct {
char *path; /* The full pathname of the file. */
diff -rc src-1.12/config.h paragon-1.12/config.h
*** src-1.12/config.h Mon Nov 4 06:21:13 1991
--- paragon-1.12/config.h Thu Jun 17 03:06:12 1993
***************
*** 87,99 ****
#endif /* READLINE */
/* The default value of the PATH variable. */
#define DEFAULT_PATH_VALUE \
! ":/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:/etc:/usr/etc"
/* The value for PATH when invoking `command -p'. This is only used when
the Posix.2 confstr () function, or CS_PATH define are not present. */
#define STANDARD_UTILS_PATH \
! "/bin:/usr/bin:/usr/ucb:/usr/sbin:/etc:/usr/etc"
/* Define V9_ECHO if you want to give the echo builtin backslash-escape
interpretation using the -e option, in the style of the Bell Labs 9th
--- 87,101 ----
#endif /* READLINE */
/* The default value of the PATH variable. */
+ /* May need to add X11 or apollo things here, too. */
+
#define DEFAULT_PATH_VALUE \
! "/store/gnu/bin:/store/bin:local/bin:/usr/ucb:/bin:/usr/bin:/local/etc:/etc:/usr/etc"
/* The value for PATH when invoking `command -p'. This is only used when
the Posix.2 confstr () function, or CS_PATH define are not present. */
#define STANDARD_UTILS_PATH \
! "/store/gnu/bin:/store/bin:local/bin:/usr/ucb:/bin:/usr/bin:/local/etc:/etc:/usr/etc"
/* Define V9_ECHO if you want to give the echo builtin backslash-escape
interpretation using the -e option, in the style of the Bell Labs 9th
diff -rc src-1.12/cpp-Makefile paragon-1.12/cpp-Makefile
*** src-1.12/cpp-Makefile Sun Jan 26 03:16:31 1992
--- paragon-1.12/cpp-Makefile Thu Jun 17 04:35:47 1993
***************
*** 69,75 ****
#include "config.h"
/**/# Here is a rule for making .o files from .c files that does not
! /**/# force the type of the machine (like -M_MACHINE) into the flags.
.c.o:
$(RM) $@
$(CC) $(CFLAGS) $(CPPFLAGS) -c $*.c
--- 69,75 ----
#include "config.h"
/**/# Here is a rule for making .o files from .c files that does not
! /**/# force the type of the machine (like -M_XMACHINE) into the flags.
.c.o:
$(RM) $@
$(CC) $(CFLAGS) $(CPPFLAGS) -c $*.c
***************
*** 111,117 ****
RM = rm -f
AR = ar
! MACHINE = M_MACHINE
OS = M_OS
/**/# PROFILE_FLAGS is either -pg, to generate profiling info for use
--- 111,117 ----
RM = rm -f
AR = ar
! XMACHINE = M_MACHINE
OS = M_OS
/**/# PROFILE_FLAGS is either -pg, to generate profiling info for use
***************
*** 191,198 ****
SYSTEM_FLAGS = $(LINEBUF) $(VPRINTF) $(UNISTD) $(GROUPS) $(RESOURCE) \
$(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
! -D$(MACHINE) -D$(OS)
! DEBUG_FLAGS = $(PROFILE_FLAGS) -g
LDFLAGS = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
CFLAGS = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS)
CPPFLAGS= -I$(LIBSRC)
--- 191,198 ----
SYSTEM_FLAGS = $(LINEBUF) $(VPRINTF) $(UNISTD) $(GROUPS) $(RESOURCE) \
$(SIGHANDLER) $(SYSDEP) $(WAITH) $(GETWD) $(DUP2) $(STRERROR) \
! -D$(XMACHINE) -D$(OS)
! DEBUG_FLAGS = $(PROFILE_FLAGS) -O
LDFLAGS = $(NOSHARE) $(SYSDEP_LD) $(EXTRA_LD_PATH) $(DEBUG_FLAGS)
CFLAGS = $(DEBUG_FLAGS) $(SYSTEM_FLAGS) -DSHELL $(ALLOCA_CFLAGS)
CPPFLAGS= -I$(LIBSRC)
***************
*** 228,237 ****
/* Flags used when building libraries. */
LIBRARY_CFLAGS = $(DEBUG_FLAGS) $(SIGHANDLER) $(ALLOCA_CFLAGS) \
! $(SYSDEP) -D$(MACHINE) -D$(OS) $(UNISTD) -DSHELL
/**/# These are required for sending bug reports.
! SYSTEM_NAME = $(MACHINE)
OS_NAME = $(OS)
/**/# The name of this program.
--- 228,237 ----
/* Flags used when building libraries. */
LIBRARY_CFLAGS = $(DEBUG_FLAGS) $(SIGHANDLER) $(ALLOCA_CFLAGS) \
! $(SYSDEP) -D$(XMACHINE) -D$(OS) $(UNISTD) -DSHELL
/**/# These are required for sending bug reports.
! SYSTEM_NAME = $(XMACHINE)
OS_NAME = $(OS)
/**/# The name of this program.
***************
*** 401,407 ****
#if defined (HAVE_READLINE_SOURCE)
READLINE_CFLAGS = $(DEBUG_FLAGS) $(SIGHANDLER) $(ALLOCA_CFLAGS) \
! $(SYSDEP) -D$(MACHINE) -D$(OS) $(UNISTD)
#define READLINE_LIBRARY ./lib/readline/libreadline.a
#else
#define READLINE_LIBRARY -lreadline
--- 401,407 ----
#if defined (HAVE_READLINE_SOURCE)
READLINE_CFLAGS = $(DEBUG_FLAGS) $(SIGHANDLER) $(ALLOCA_CFLAGS) \
! $(SYSDEP) -D$(XMACHINE) -D$(OS) $(UNISTD)
#define READLINE_LIBRARY ./lib/readline/libreadline.a
#else
#define READLINE_LIBRARY -lreadline
***************
*** 616,626 ****
@echo
@echo " ***************************************************"
@echo " * *"
! @echo " * Making Bash-`cat .distribution` for a $(MACHINE) running $(OS)."
@echo " * *"
@echo " ***************************************************"
@echo
! @echo "$(PROGRAM) last made for a $(MACHINE) running $(OS)" >.machine
version.h: newversion.aux
if ./newversion.aux -build; then mv -f newversion.h version.h; fi
--- 616,626 ----
@echo
@echo " ***************************************************"
@echo " * *"
! @echo " * Making Bash-`cat .distribution` for a $(XMACHINE) running $(OS)."
@echo " * *"
@echo " ***************************************************"
@echo
! @echo "$(PROGRAM) last made for a $(XMACHINE) running $(OS)" >.machine
version.h: newversion.aux
if ./newversion.aux -build; then mv -f newversion.h version.h; fi
***************
*** 756,762 ****
compress -f $(PROGRAM).tar
clone: $(THINGS_TO_TAR)
! @$(MKTARFILE) +notar $(MACHINE) $(OS) $(THINGS_TO_TAR)
install: .made
-if [ -f $(DESTDIR)/$(PROGRAM) ]; \
--- 756,762 ----
compress -f $(PROGRAM).tar
clone: $(THINGS_TO_TAR)
! @$(MKTARFILE) +notar $(XMACHINE) $(OS) $(THINGS_TO_TAR)
install: .made
-if [ -f $(DESTDIR)/$(PROGRAM) ]; \
***************
*** 809,822 ****
/**/# Here is a convenient rule when you arrive at a new site and wish to
/**/# install bash on several different architectures. It creates a new
/**/# directory to hold the results of compilatation. The directory is
! /**/# named MACHINE-OS.
! architecture: $(MACHINE)-$(OS)/$(PROGRAM)
! $(MACHINE)-$(OS):
! -mkdir $(MACHINE)-$(OS)
! $(MACHINE)-$(OS)/$(PROGRAM): $(MACHINE)-$(OS) $(PROGRAM)
! mv $(PROGRAM) $(MACHINE)-$(OS)
! mv sysdefs.h $(MACHINE)-$(OS)
! mv $(SDIR)getcppsyms $(MACHINE)-$(OS)
$(MAKE) $(MFLAGS) clean
--- 809,822 ----
/**/# Here is a convenient rule when you arrive at a new site and wish to
/**/# install bash on several different architectures. It creates a new
/**/# directory to hold the results of compilatation. The directory is
! /**/# named XMACHINE-OS.
! architecture: $(XMACHINE)-$(OS)/$(PROGRAM)
! $(XMACHINE)-$(OS):
! -mkdir $(XMACHINE)-$(OS)
! $(XMACHINE)-$(OS)/$(PROGRAM): $(XMACHINE)-$(OS) $(PROGRAM)
! mv $(PROGRAM) $(XMACHINE)-$(OS)
! mv sysdefs.h $(XMACHINE)-$(OS)
! mv $(SDIR)getcppsyms $(XMACHINE)-$(OS)
$(MAKE) $(MFLAGS) clean
diff -rc src-1.12/hash.c paragon-1.12/hash.c
*** src-1.12/hash.c Sun Jul 7 23:53:51 1991
--- paragon-1.12/hash.c Thu Jun 17 03:06:11 1993
***************
*** 28,39 ****
#define FILENAME_HASH_BUCKETS 107
- /* Create the hash table for filenames that we use in the shell. */
- initialize_hashed_filenames ()
- {
- hashed_filenames = make_hash_table (FILENAME_HASH_BUCKETS);
- }
-
/* Make a new hash table with BUCKETS number of buckets. Initialize
each slot in the table to NULL. */
HASH_TABLE *
--- 28,33 ----
diff -rc src-1.12/lib/readline/readline.c paragon-1.12/lib/readline/readline.c
*** src-1.12/lib/readline/readline.c Sat Jan 25 22:47:30 1992
--- paragon-1.12/lib/readline/readline.c Thu Jun 17 03:06:11 1993
***************
*** 3587,3593 ****
/* The basic list of characters that signal a break between words for the
completer routine. The contents of this variable is what breaks words
in the shell, i.e. " \t\n\"\\'`@$><=" */
! char *rl_basic_word_break_characters = " \t\n\"\\'`@$><=;|&{(";
/* The list of characters that signal a break between words for
rl_complete_internal. The default list is the contents of
--- 3587,3598 ----
/* The basic list of characters that signal a break between words for the
completer routine. The contents of this variable is what breaks words
in the shell, i.e. " \t\n\"\\'`@$><=" */
! /* AHJ: When did @ become a valid shell-level word break ?
! What is really needed is to spruce up the file-name completer
! so it quotes and continues when there are space etc. in file names.
! tcsh does it, so it must be possible. */
!
! char *rl_basic_word_break_characters = " \t\n\"\\'`$><=;|&{(";
/* The list of characters that signal a break between words for
rl_complete_internal. The default list is the contents of
diff -rc src-1.12/machines.h paragon-1.12/machines.h
*** src-1.12/machines.h Fri Jan 17 22:42:24 1992
--- paragon-1.12/machines.h Thu Jun 17 03:42:44 1993
***************
*** 330,335 ****
--- 330,358 ----
/* ************************ */
/* */
+ /* Intel Paragon */
+ /* */
+ /* ************************ */
+ #if defined (__i860) && defined(__PARAGON__)
+ #define M_MACHINE "Paragon"
+ #define M_OS IntelOSF
+ #define HAVE_ALLOCA
+ #define HAVE_DUP2
+ #define HAVE_GETCWD
+ #define HAVE_GETGROUPS
+ #define HAVE_GETWD
+ #define HAVE_RESOURCE
+ #define HAVE_SETLINEBUF
+ #define HAVE_STRERROR
+ #define HAVE_SYS_SIGLIST
+ #define HAVE_UNISTD_H
+ #define HAVE_VFPRINTF
+ #define HAVE_VPRINTF
+ #define HAVE_WAIT_H
+ #endif /* __i860 && __PARAGON__ */
+
+ /* ************************ */
+ /* */
/* IBMRT */
/* */
/* ************************ */
diff -rc src-1.12/make_cmd.c paragon-1.12/make_cmd.c
*** src-1.12/make_cmd.c Tue Jan 21 18:41:40 1992
--- paragon-1.12/make_cmd.c Thu Jun 17 03:06:12 1993
***************
*** 27,32 ****
--- 27,33 ----
#include "command.h"
#include "flags.h"
#include "filecntl.h"
+ #include "config.h"
#if defined (JOB_CONTROL)
#include "jobs.h"
diff -rc src-1.12/support/cppmagic paragon-1.12/support/cppmagic
*** src-1.12/support/cppmagic Fri Nov 22 07:30:33 1991
--- paragon-1.12/support/cppmagic Thu Jun 17 03:34:33 1993
***************
*** 17,23 ****
# First flag might be `-traditional' if this is Gnu Cpp.
unknown_flag=`$Cpp -traditional /dev/null 2>&1 |
! egrep 'known|recognized|valid|bad'`
if [ ! "$unknown_flag" ]; then
TRADITIONAL=-traditional
fi
--- 17,23 ----
# First flag might be `-traditional' if this is Gnu Cpp.
unknown_flag=`$Cpp -traditional /dev/null 2>&1 |
! egrep 'known|legal|recognized|valid|bad'`
if [ ! "$unknown_flag" ]; then
TRADITIONAL=-traditional
fi
diff -rc src-1.12/support/getcppsyms.c paragon-1.12/support/getcppsyms.c
*** src-1.12/support/getcppsyms.c Thu Jan 9 09:33:05 1992
--- paragon-1.12/support/getcppsyms.c Thu Jun 17 03:09:56 1993
***************
*** 8,13 ****
--- 8,37 ----
#include <stdio.h>
main ()
{
+ #if defined (__i860)
+ printf (" -D__i860");
+ #endif
+ #if defined (__i860__)
+ printf (" -D__i860__");
+ #endif
+ #if defined (__PARAGON__)
+ printf (" -D__PARAGON__");
+ #endif
+ #if defined (__OSF1__)
+ printf (" -D__OSF1__");
+ #endif
+ #if defined (__PGC__)
+ printf (" -D__PGC__");
+ #endif
+ #if defined (_PGC_)
+ printf (" -D_PGC_");
+ #endif
+ #if defined (_COFF)
+ printf (" -D_COFF");
+ #endif
+ #if defined (MACH)
+ printf (" -DMACH");
+ #endif
#if defined (CMU)
printf (" -DCMU");
#endif /* CMU */
diff -rc src-1.12/support/mksysdefs paragon-1.12/support/mksysdefs
*** src-1.12/support/mksysdefs Thu Jan 9 08:45:08 1992
--- paragon-1.12/support/mksysdefs Thu Jun 17 03:06:12 1993
***************
*** 43,66 ****
fi
# Get name of maintainer.
! if (whoami) >/dev/null 2>&1 && (hostname) >/dev/null 2>&1; then
! WHOAMI=`whoami`@`hostname`;
! else
! WHOAMI=`who am i | awk '{ print $1; }'`
! fi
!
! if [ "$WHOAMI" = "" ]; then
! WHOAMI=`id | sed 's/uid=[01-9]*(//' | sed 's/) [) A-Za-z01-9(=,]*//'`
! if (hostname) >/dev/null 2>&1; then
! WHOAMI=$WHOAMI@`hostname`
! elif test -f /usr/bin/uuname -o -f /bin/uuname; then
! WHOAMI=`uuname -l`!$WHOAMI
! fi
! fi
!
! if [ "$WHOAMI" = "" ]; then
! WHOAMI=root
! fi
echo "" >>$sysdefs
echo "#if !defined (MAINTAINER)" >>$sysdefs
--- 43,49 ----
fi
# Get name of maintainer.
! WHOAMI=arnej@lise.unit.no
echo "" >>$sysdefs
echo "#if !defined (MAINTAINER)" >>$sysdefs
diff -rc src-1.12/variables.c paragon-1.12/variables.c
*** src-1.12/variables.c Sat Jan 18 20:46:31 1992
--- paragon-1.12/variables.c Thu Jun 17 04:28:01 1993
***************
*** 41,47 ****
/* The current variable context. This is really a count of how deep into
executing functions we are. */
! int variable_context = 0;
/* The array of shell assignments which are made only in the environment
for a single command. */
--- 41,47 ----
/* The current variable context. This is really a count of how deep into
executing functions we are. */
! int variable_context ;
/* The array of shell assignments which are made only in the environment
for a single command. */
^ permalink raw reply [flat|nested] 3+ messages in thread