aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-12-27 22:41:37 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-12-27 22:41:37 +0000
commit41fb88d2c111754d647a2d88c4dd7b1bd64f8f0a (patch)
tree5a253426ccedd7784438ce28d781e230adf439a5 /mail
parent87fd1edb1609f646254124f840a9df8daecd12a6 (diff)
downloadports-41fb88d2c111754d647a2d88c4dd7b1bd64f8f0a.tar.gz
ports-41fb88d2c111754d647a2d88c4dd7b1bd64f8f0a.zip
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/mh/files/patch-ad216
1 files changed, 216 insertions, 0 deletions
diff --git a/mail/mh/files/patch-ad b/mail/mh/files/patch-ad
new file mode 100644
index 000000000000..9cf2db46f21e
--- /dev/null
+++ b/mail/mh/files/patch-ad
@@ -0,0 +1,216 @@
+Received: from freefall.cdrom.com (freefall.cdrom.com [192.216.222.4]) by time.cdrom.com (8.6.9/8.6.9) with ESMTP id LAA01600 for <jkh@time.cdrom.com>; Tue, 27 Dec 1994 11:39:33 -0800
+Received: (from gnats@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id LAA20701; Tue, 27 Dec 1994 11:40:03 -0800
+Date: Tue, 27 Dec 1994 11:40:03 -0800
+Message-Id: <199412271940.LAA20701@freefall.cdrom.com>
+From: Mark Murray <mark@grondar.za>
+Reply-To: Mark Murray <mark@grondar.za>
+To: core@freefall.cdrom.com
+Cc: current@freefall.cdrom.com
+Subject: misc/88: MH has no 'local' shared libraries.
+In-Reply-To: Your message of Tue, 27 Dec 1994 21:34:40 +0200
+ <199412271934.VAA13910@grunt.grondar.za>
+
+
+>Number: 88
+>Category: misc
+>Synopsis: MH has no 'local' shared libraries.
+>Confidential: no
+>Severity: non-critical
+>Priority: low
+>Responsible: core (FreeBSD core team)
+>State: open
+>Class: change-request
+>Submitter-Id: current-users
+>Arrival-Date: Tue Dec 27 11:40:01 1994
+>Originator: Mark Murray
+>Organization:
+GTA
+>Release: FreeBSD 2.1.0-Development i386
+>Environment:
+
+I use MH as my mailer of choice (I know, I'm a geek ;-), and I used the
+ports-mail port of MH to compile MH on my -current system.
+
+>Description:
+
+I noticed at compile time that MH had not been configured to take
+advantage of the SUN/SYS5 shared libraries (in sbr/), so I did it.
+
+>How-To-Repeat:
+
+Compile ports/mail/mh.
+
+>Fix:
+
+Please could some kind soul with commit powers commit the following
+as patch-ad in ports-mail/mh/patches? Obviously those already using
+MH will have to re-ldconfig, as the library gets dumped into
+/usr/local/lib/libmh.so.3.2, and MH will break if it can't find this.
+
+------8<--------------patch-ad-------------------------------------------
+*** ../mh-6.8.3.orig/conf/FreeBSD Tue Dec 27 20:36:52 1994
+--- conf/FreeBSD Tue Dec 27 19:10:35 1994
+***************
+*** 9,14 ****
+--- 9,16 ----
+ mts sendmail/smtp
+ cc cc
+ signal void
++ sharedlib fbsd
++ slflags -fpic
+
+ # Good options for all MH installations (personal preferences)
+ options ATHENA DUMB FOLDPROT='"0700"' MHE MHRC RPATHS SBACKUP='"\\043"'
+*** ../mh-6.8.3.orig/conf/makefiles/sbr Wed Dec 1 06:00:23 1993
+--- conf/makefiles/sbr Tue Dec 27 19:01:07 1994
+***************
+*** 123,128 ****
+--- 123,131 ----
+ @BEGIN: SYS5SHLIB
+ (cd shared; ld -G -o ../$@ -h $@.$(SLIBVER) $(OFILES))
+ @END: SYS5SHLIB
++ @BEGIN: FBSDSHLIB
++ (cd shared; ld -Bshareable -o ../$@ $(OFILES))
++ @END: FBSDSHLIB
+ -@rm -f $@.$(SLIBVER)
+ ln $@ $@.$(SLIBVER)
+ -@ls -l $@*
+*** ../mh-6.8.3.orig/conf/makefiles/uip Wed Dec 1 06:00:23 1993
+--- conf/makefiles/uip Tue Dec 27 19:30:22 1994
+***************
+*** 138,147 ****
+ SLIBVER = .@(SLIBVER)
+ @END: SUN4SHLIB
+ @BEGIN: SHAREDLIB
+! LIBES = ../config/config.o ../sbr/libmh.so ../mts/libmts.a \
+! ../zotnet/libzot.a
+ LDLIBES = ../config/config.o -Bdynamic @(SLDFLAG) -lmh$(SLIBVER) \
+ ../mts/libmts.a ../zotnet/libzot.a
+ LDLIBS = $(LDLIBES) ../config/version.o $(LDOPTLIB)
+ @END: SHAREDLIB
+ LINT = lint
+--- 138,157 ----
+ SLIBVER = .@(SLIBVER)
+ @END: SUN4SHLIB
+ @BEGIN: SHAREDLIB
+! @BEGIN: SUN4SHLIB
+! LDLIBES = ../config/config.o -Bdynamic @(SLDFLAG) -lmh$(SLIBVER) \
+! ../mts/libmts.a ../zotnet/libzot.a
+! @END: SUN4SHLIB
+! @BEGIN: SYS5SHLIB
+ LDLIBES = ../config/config.o -Bdynamic @(SLDFLAG) -lmh$(SLIBVER) \
+ ../mts/libmts.a ../zotnet/libzot.a
++ @END: SYS5SHLIB
++ @BEGIN: FBSDSHLIB
++ LDLIBES = ../config/config.o @(SLDFLAG) -lmh$(SLIBVER) \
++ ../mts/libmts.a ../zotnet/libzot.a
++ @END: FBSDSHLIB
++ LIBES = ../config/config.o ../sbr/libmh.so ../mts/libmts.a \
++ ../zotnet/libzot.a
+ LDLIBS = $(LDLIBES) ../config/version.o $(LDOPTLIB)
+ @END: SHAREDLIB
+ LINT = lint
+*** ../mh-6.8.3.orig/conf/mhconfig.c Wed Dec 1 06:00:24 1993
+--- conf/mhconfig.c Tue Dec 27 19:08:40 1994
+***************
+*** 32,38 ****
+ #define MHRELEASE "6.8.3" /* for version: "Maj.min.pat" */
+ #define MHCENTERFOOT "MH.6.8" /* for nroff page footers */
+ #define MHLEFTFOOT "[mh.6]" /* [mh.6] MH.6.6 page# */
+! #define MHSLIBVER "3.2" /* SunOS4 shared library version */
+
+ #define NOTOK (-1)
+
+--- 32,38 ----
+ #define MHRELEASE "6.8.3" /* for version: "Maj.min.pat" */
+ #define MHCENTERFOOT "MH.6.8" /* for nroff page footers */
+ #define MHLEFTFOOT "[mh.6]" /* [mh.6] MH.6.6 page# */
+! #define MHSLIBVER "3.2" /* Shared library version */
+
+ #define NOTOK (-1)
+
+***************
+*** 456,461 ****
+--- 456,465 ----
+ fprintf (fp, "/^@BEGIN: SYS5SHLIB$/d\n/^@END: SYS5SHLIB$/d\n");
+ else
+ fprintf (fp, "/^@BEGIN: SYS5SHLIB$/,/^@END: SYS5SHLIB$/d\n");
++ if (strcmp (sharedlib, "fbsd") == 0)
++ fprintf (fp, "/^@BEGIN: FBSDSHLIB$/d\n/^@END: FBSDSHLIB$/d\n");
++ else
++ fprintf (fp, "/^@BEGIN: FBSDSHLIB$/,/^@END: FBSDSHLIB$/d\n");
+
+ /* */
+
+***************
+*** 774,782 ****
+
+ if (strcmp (sharedlib, "on") && strcmp (sharedlib, "off")
+ && strcmp (sharedlib, "sun4") && strcmp (sharedlib, "sys5")
+! && strcmp (sharedlib, "secure"))
+ adios (NULLCP,
+! "sharedlib should be either \"sun4\", \"sys5\", or \"off\", not %s",
+ sharedlib);
+
+ (void) sprintf(buffer, "TYPESIG=%s", signl);
+--- 778,786 ----
+
+ if (strcmp (sharedlib, "on") && strcmp (sharedlib, "off")
+ && strcmp (sharedlib, "sun4") && strcmp (sharedlib, "sys5")
+! && strcmp (sharedlib, "fbsd") && strcmp (sharedlib, "secure"))
+ adios (NULLCP,
+! "sharedlib should be either \"sun4\", \"sys5\", \"fbsd\" or \"off\", not %s",
+ sharedlib);
+
+ (void) sprintf(buffer, "TYPESIG=%s", signl);
+*** ../mh-6.8.3.orig/support/bboards/mmdfII/bboards/lock.c Wed Dec 1 06:01:30 1993
+--- support/bboards/mmdfII/bboards/lock.c Tue Dec 27 19:58:05 1994
+***************
+*** 47,52 ****
+--- 47,56 ----
+ #include <sys/file.h>
+ #endif
+
++ #ifdef __FreeBSD__
++ #include <fcntl.h>
++ #endif
++
+ #ifdef SYS5
+ #define u_short ushort
+ #define u_long ulong
+*** ../mh-6.8.3.orig/support/pop/mmdfII/pop/lock.c Wed Dec 1 06:01:30 1993
+--- support/pop/mmdfII/pop/lock.c Tue Dec 27 19:58:05 1994
+***************
+*** 47,52 ****
+--- 47,56 ----
+ #include <sys/file.h>
+ #endif
+
++ #ifdef __FreeBSD__
++ #include <fcntl.h>
++ #endif
++
+ #ifdef SYS5
+ #define u_short ushort
+ #define u_long ulong
+diff -cdr ../mh-6.8.3.orig/zotnet/mts/lock.c ./zotnet/mts/lock.c
+*** ../mh-6.8.3.orig/zotnet/mts/lock.c Wed Dec 1 06:01:30 1993
+--- zotnet/mts/lock.c Tue Dec 27 19:58:05 1994
+***************
+*** 47,52 ****
+--- 47,56 ----
+ #include <sys/file.h>
+ #endif
+
++ #ifdef __FreeBSD__
++ #include <fcntl.h>
++ #endif
++
+ #ifdef SYS5
+ #define u_short ushort
+ #define u_long ulong
+------8<--------------patch-ad-------------------------------------------
+>Audit-Trail:
+>Unformatted:
+
+