1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/lang/sml-nj/files/patch-ab
Joseph Koshy 1353f66bf5 Fix building of SML/NJ under 4-CURRENT after 1999/7/25.
The trap handler returns different information after this date for
numeric error conditions.  Since kern.osreldate is not a reliable
indicator of when this change occurred, we revert to checking for
the presence of a particular #define in <machine/trap.h> to decide
if the SML/NJ runtime sources need to use the newer interface.

Submitted by:	 Tom <tcrimi@andrew.cmu.edu> (in part)
2000-01-28 06:36:13 +00:00

22 lines
645 B
Plaintext

--- config/install.sh.orig Wed Aug 5 13:43:43 1998
+++ config/install.sh Sat Jan 29 20:46:09 2000
@@ -181,6 +181,18 @@
if [ "$?" != "0" ]; then
exit $?
fi
+# we need to patch just before build
+echo "applying source patches"
+patch_file="${FILESDIR}/patch-global-names"
+if [ -f $patch_file ]; then
+ $PATCH $PATCH_ARGS < $patch_file
+fi
+if grep -w FPE_INTDIV /usr/include/machine/trap.h > /dev/null 2>&1; then
+ patch_file="${FILESDIR}/patch-signals"
+ if [ -f $patch_file ]; then
+ $PATCH $PATCH_ARGS < $patch_file
+ fi
+fi
if [ ! -x $RUNDIR/run.$ARCH-$OPSYS ]; then
cd $SRCDIR/runtime/objs
echo "compiling the run-time system"