summaryrefslogtreecommitdiffstats
path: root/textproc/coco/files
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>1999-01-23 14:28:28 +0000
committersimokawa <simokawa@FreeBSD.org>1999-01-23 14:28:28 +0000
commit03e64bbe930d451acfe187a3f65a503a72bb6a69 (patch)
tree5d14b0b1226fb7b3f626ffff77beafa6a5c23ff5 /textproc/coco/files
parent19c57c41e3cc5477d5b7e438a96110b863e5013b (diff)
downloadFreeBSD-ports-03e64bbe930d451acfe187a3f65a503a72bb6a69.zip
FreeBSD-ports-03e64bbe930d451acfe187a3f65a503a72bb6a69.tar.gz
Add fix for Alpha.
- patch for configure, unexelf.c, alpha.h, PLIST and etc.
Diffstat (limited to 'textproc/coco/files')
-rw-r--r--textproc/coco/files/patch-ac17
-rw-r--r--textproc/coco/files/patch-af13
-rw-r--r--textproc/coco/files/patch-ag34
-rw-r--r--textproc/coco/files/patch-ah54
-rw-r--r--textproc/coco/files/patch-mn11
5 files changed, 123 insertions, 6 deletions
diff --git a/textproc/coco/files/patch-ac b/textproc/coco/files/patch-ac
index 32937f7..264e517 100644
--- a/textproc/coco/files/patch-ac
+++ b/textproc/coco/files/patch-ac
@@ -1,5 +1,5 @@
---- orig/s/freebsd.h Mon Jun 10 05:14:32 1996
-+++ src/s/freebsd.h Tue Sep 29 11:35:32 1998
+--- src/s/freebsd.h.orig Mon Jun 10 05:14:32 1996
++++ src/s/freebsd.h Sat Jan 16 22:17:58 1999
@@ -1,5 +1,15 @@
/* s/ file for freebsd system. */
@@ -24,16 +24,21 @@
#define SYSV_SYSTEM_DIR
-@@ -42,12 +51,28 @@
+@@ -42,12 +51,33 @@
#undef BSD_PGRPS
#define GETPGRP_NO_ARG
+#ifdef __ELF__
+
+#define LD_SWITCH_SYSTEM
++#ifdef i386
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
-+#define UNEXEC unexelf.o
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
++#else
++#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crtbegin.o
++#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
++#endif
++#define UNEXEC unexelf.o
+#undef LIB_GCC
+#define LIB_GCC
+
@@ -54,7 +59,7 @@
#ifndef N_TRELOFF
#define N_PAGSIZ(x) __LDPGSZ
-@@ -63,6 +88,8 @@
+@@ -63,6 +93,8 @@
#endif /* __FreeBSD__ */
#endif /* NO_SHARED_LIBS */
@@ -63,7 +68,7 @@
#define HAVE_WAIT_HEADER
#define HAVE_GETLOADAVG
/*#define HAVE_GETPAGESIZE /* configure now puts this in config.h */
-@@ -80,6 +107,8 @@
+@@ -80,6 +112,8 @@
#define BSD 199103
#elif __FreeBSD__ == 2
#define BSD 199306
diff --git a/textproc/coco/files/patch-af b/textproc/coco/files/patch-af
new file mode 100644
index 0000000..23092a4
--- /dev/null
+++ b/textproc/coco/files/patch-af
@@ -0,0 +1,13 @@
+--- configure.orig Tue Aug 20 13:11:26 1996
++++ configure Sat Jan 16 23:18:54 1999
+@@ -756,6 +756,10 @@
+ machine=alpha opsys=gnu-linux
+ ;;
+
++ alpha-*-freebsd* )
++ machine=alpha opsys=freebsd
++ ;;
++
+ ## Altos 3068
+ m68*-altos-sysv* )
+ machine=altos opsys=usg5-2
diff --git a/textproc/coco/files/patch-ag b/textproc/coco/files/patch-ag
new file mode 100644
index 0000000..a556bd2
--- /dev/null
+++ b/textproc/coco/files/patch-ag
@@ -0,0 +1,34 @@
+--- src/m/alpha.h.orig Sat Aug 10 07:03:36 1996
++++ src/m/alpha.h Sat Jan 16 22:34:10 1999
+@@ -234,7 +234,11 @@
+
+ #ifndef NOT_C_CODE
+ /* We need these because pointers are larger than the default ints. */
++#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
+ #include <alloca.h>
++#else
++#include <stdlib.h>
++#endif
+
+ /* Hack alert! For reasons unknown to mankind the string.h file insists
+ on defining bcopy etc. as taking char pointers as arguments. With
+@@ -299,10 +303,18 @@
+ termio and struct termios are mutually incompatible. */
+ #define NO_TERMIO
+
+-#ifdef LINUX
++#if defined(LINUX) || \
++ defined(__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__)
+ # define TEXT_END ({ extern int _etext; &_etext; })
+ # ifndef __ELF__
+ # define COFF
+ # define DATA_END ({ extern int _EDATA; &_EDATA; })
+ # endif /* notdef __ELF__ */
+ #endif
++
++#if (defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__)) \
++ && defined (__ELF__)
++#define HAVE_TEXT_START
++#endif
++
++
diff --git a/textproc/coco/files/patch-ah b/textproc/coco/files/patch-ah
new file mode 100644
index 0000000..3f990e4
--- /dev/null
+++ b/textproc/coco/files/patch-ah
@@ -0,0 +1,54 @@
+--- src/unexelf1.c.orig Sat Aug 10 06:56:52 1996
++++ src/unexelf1.c Sun Jan 17 00:28:21 1999
+@@ -423,12 +423,50 @@
+ #include <elf.h>
+ #include <sys/mman.h>
+
+-#ifdef __alpha__
++#if defined(__alpha__) && defined(__osf__)
+ # include <sym.h> /* get COFF debugging symbol table declaration */
++#else if defined(__alpha__)
++typedef struct {
++ short magic;
++ short vstamp;
++ int ilineMax;
++ int idnMax;
++ int ipdMax;
++ int isymMax;
++ int ioptMax;
++ int iauxMax;
++ int issMax;
++ int issExtMax;
++ int ifdMax;
++ int crfd;
++ int iextMax;
++ long cbLine;
++ long cbLineOffset;
++ long cbDnOffset;
++ long cbPdOffset;
++ long cbSymOffset;
++ long cbOptOffset;
++ long cbAuxOffset;
++ long cbSsOffset;
++ long cbSsExtOffset;
++ long cbFdOffset;
++ long cbRfdOffset;
++ long cbExtOffset;
++} HDRR, *pHDRR;
++#define cbHDRR sizeof(HDRR)
++#define hdrNil ((pHDRR)0)
+ #endif
+
+ #if __GNU_LIBRARY__ - 0 >= 6
+ # include <link.h> /* get ElfW etc */
++#endif
++
++#ifdef __FreeBSD__
++# ifdef __STDC__
++# define ElfW(type) Elf_##type
++# else
++# define ElfW(type) Elf_/**/type
++# endif
+ #endif
+
+ #ifndef ElfW
diff --git a/textproc/coco/files/patch-mn b/textproc/coco/files/patch-mn
new file mode 100644
index 0000000..2ac99a2
--- /dev/null
+++ b/textproc/coco/files/patch-mn
@@ -0,0 +1,11 @@
+--- src/coding.c.orig Sun Jan 17 04:48:45 1999
++++ src/coding.c Sun Jan 17 04:49:02 1999
+@@ -154,7 +154,7 @@
+ /* 92.4.3, 92.12.18 by K.Handa */
+ Lisp_Object Qcoding_system, Qcoding_system_p, Qnon_nil_coding_system_p;
+ Lisp_Object Qeol_type;
+-Lisp_Object Qpriority;
++extern Lisp_Object Qpriority;
+ /* end of patch */
+ #endif /* emacs */
+
OpenPOWER on IntegriCloud