summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorChuck Robey <chuckr@FreeBSD.org>1998-10-19 12:40:42 +0000
committerChuck Robey <chuckr@FreeBSD.org>1998-10-19 12:40:42 +0000
commitd85fa44c8f8f5c0fecf7d5efafe232e53c686f19 (patch)
treec9fbb93c95065117b82842d71efdad195a6bcc2a /net
parentAdd patches to bring up to 2.0 patchlevel 2 (diff)
Addition of 3 patches makes this compile for ELF. Don't take off
the BROKEN yet, I haven't yet had time to review the PLIST. It might well have changed due to the addition of patch-a[bc]. patch-ad made it respect statfs better for 3.0. PR: 8364 Submitted by: David A. Bader <dbader@eece.unm.edu>
Notes
Notes: svn path=/head/; revision=14066
Diffstat (limited to 'net')
-rw-r--r--net/mpich/files/patch-ab134
-rw-r--r--net/mpich2/files/patch-ab134
2 files changed, 268 insertions, 0 deletions
diff --git a/net/mpich/files/patch-ab b/net/mpich/files/patch-ab
new file mode 100644
index 000000000000..6503718924ae
--- /dev/null
+++ b/net/mpich/files/patch-ab
@@ -0,0 +1,134 @@
+--- util/makesharedlib.orig Wed Jul 1 13:56:20 1998
++++ util/makesharedlib Sat Oct 17 07:26:06 1998
+@@ -10,6 +10,9 @@
+ ;;
+ -kind=*) kind=`echo A$arg | sed -e 's/A-kind=//g'`
+ ;;
++ -suffix=*) slsuffix=`echo A$arg | sed -e 's/A-suffix=//g'`
++ ;;
++ -echo) set -x ;;
+ *)
+ echo "Unrecognized option $arg"
+ exit 1
+@@ -17,42 +20,70 @@
+ esac
+ done
+
++if [ "$SHELL_ECHO" = "on" ] ; then
++ set -x
++fi
+ #
+ # This is the default
+-if test "$kind" = "ignore" ; then
++if [ "$kind" = "ignore" ] ; then
+ exit 0
+ fi
+
+-if test -z "$slsuffix" ; then
++if [ -z "$slsuffix" ] ; then
+ slsuffix=so.1.0
++ req_slsuffix=so
++fi
++if [ -z "$req_slsuffix" ] ; then
++ req_slsuffix=$slsuffix
+ fi
+-if test -z "$AR" ; then
++if [ -z "$AR" ] ; then
+ AR=ar
+ fi
+-if test -z "$LD" ; then
++if [ -z "$LD" ] ; then
+ LD=ld
+ fi
+-if test -z "$CLINKER" ; then
+- if test -n "$CC" ; then
++if [ -z "$CLINKER" ] ; then
++ if [ -n "$CC" ] ; then
+ CLINKER=$CC
+ else
+ echo "No C linker or C compiler specified!"
+ exit 1
+ fi
+ fi
+-if test -z "$SHLIBS" ; then
++if [ -z "$SHLIBS" ] ; then
+ echo "No libraries specified!"
+ exit 1
+ fi
++#
++# Check that there are libraries
++foundlib=0
++for libname in $SHLIBS ; do
++ libnamelocal=`basename $libname`
++ if [ -s $libnamelocal ] ; then
++ foundlib=1
++ break
++ fi
++done
++if [ $foundlib = 0 ] ; then
++ echo "Could not find $SHLIBS"
++ exit 1
++fi
++if [ ! -d shared ] ; then
++ mkdir shared
++fi
+ case $kind in
+ gcc)
+ for libname in $SHLIBS ; do
+ mkdir .tmp
+ cd .tmp
+ $AR x ../$libname
+- $CLINKER -shared -Wl,-soname,$libname.$slsuffix \
+- -o ../$libname.$slsuffix *.o
++ libbase=`basename $libname .a`
++ $CLINKER -shared -Wl,-soname,$libbase.$slsuffix \
++ -o ../shared/$libbase.$slsuffix *.o
+ cd ..
++ if [ $slsuffix != $req_slsuffix ] ; then
++ (cd shared ; ln -s $libbase.$slsuffix $libbase.$req_slsuffix )
++ fi
+ rm -rf .tmp
+ done
+ ;;
+@@ -61,8 +92,12 @@
+ mkdir .tmp
+ cd .tmp
+ $AR x ../$libname
+- $LD -G -h $libname.$slsuffix -o ../$libname.$slsuffix *.o
++ libbase=`basename $libname .a`
++ $LD -G -h $libbase.$slsuffix -o ../shared/$libbase.$slsuffix *.o
+ cd ..
++ if [ $slsuffix != $req_slsuffix ] ; then
++ ( cd shared ; ln -s $libbase.$slsuffix $libbase.$req_slsuffix )
++ fi
+ rm -rf .tmp
+ done
+ ;;
+@@ -73,20 +108,22 @@
+ mkdir .tmp
+ cd .tmp
+ ar x ../$libname
++ libbase=`basename $libname .a`
+ nm -g -p *.o | awk '{ if ($2 == "T") { print $1 ; }}' | \
+- sed -e 's/^\.//g' > $libname.exp
++ sed -e 's/^\.//g' > $libbase.exp
+ # xlC doesn't work with this!
+ # cc misses the iargc/getarg libraries
+- xlf -o ../$libname.so *.o -bE:$libname.exp -bM:SRE -bnoentry
++ xlf -o ../shared/$libbase.so *.o -bE:$libbase.exp -bM:SRE -bnoentry
+ # create new shared file name
+- newfile=`basename $libname`
+- newfile="${newfile}shared.a"
++ newfile="${libbase}shared.a"
+ /bin/rm -f $newfile
+- ar qv $newfile ../$libname.so
++ ar qv $newfile ../shared/$libbase.so
+ /bin/rm -f *.o
+ cd ..
+ /bin/rm -rf .tmp
+ done
++ ;;
++
+ *)
+ echo "Unknown shared library type $kind"
+ exit 1
diff --git a/net/mpich2/files/patch-ab b/net/mpich2/files/patch-ab
new file mode 100644
index 000000000000..6503718924ae
--- /dev/null
+++ b/net/mpich2/files/patch-ab
@@ -0,0 +1,134 @@
+--- util/makesharedlib.orig Wed Jul 1 13:56:20 1998
++++ util/makesharedlib Sat Oct 17 07:26:06 1998
+@@ -10,6 +10,9 @@
+ ;;
+ -kind=*) kind=`echo A$arg | sed -e 's/A-kind=//g'`
+ ;;
++ -suffix=*) slsuffix=`echo A$arg | sed -e 's/A-suffix=//g'`
++ ;;
++ -echo) set -x ;;
+ *)
+ echo "Unrecognized option $arg"
+ exit 1
+@@ -17,42 +20,70 @@
+ esac
+ done
+
++if [ "$SHELL_ECHO" = "on" ] ; then
++ set -x
++fi
+ #
+ # This is the default
+-if test "$kind" = "ignore" ; then
++if [ "$kind" = "ignore" ] ; then
+ exit 0
+ fi
+
+-if test -z "$slsuffix" ; then
++if [ -z "$slsuffix" ] ; then
+ slsuffix=so.1.0
++ req_slsuffix=so
++fi
++if [ -z "$req_slsuffix" ] ; then
++ req_slsuffix=$slsuffix
+ fi
+-if test -z "$AR" ; then
++if [ -z "$AR" ] ; then
+ AR=ar
+ fi
+-if test -z "$LD" ; then
++if [ -z "$LD" ] ; then
+ LD=ld
+ fi
+-if test -z "$CLINKER" ; then
+- if test -n "$CC" ; then
++if [ -z "$CLINKER" ] ; then
++ if [ -n "$CC" ] ; then
+ CLINKER=$CC
+ else
+ echo "No C linker or C compiler specified!"
+ exit 1
+ fi
+ fi
+-if test -z "$SHLIBS" ; then
++if [ -z "$SHLIBS" ] ; then
+ echo "No libraries specified!"
+ exit 1
+ fi
++#
++# Check that there are libraries
++foundlib=0
++for libname in $SHLIBS ; do
++ libnamelocal=`basename $libname`
++ if [ -s $libnamelocal ] ; then
++ foundlib=1
++ break
++ fi
++done
++if [ $foundlib = 0 ] ; then
++ echo "Could not find $SHLIBS"
++ exit 1
++fi
++if [ ! -d shared ] ; then
++ mkdir shared
++fi
+ case $kind in
+ gcc)
+ for libname in $SHLIBS ; do
+ mkdir .tmp
+ cd .tmp
+ $AR x ../$libname
+- $CLINKER -shared -Wl,-soname,$libname.$slsuffix \
+- -o ../$libname.$slsuffix *.o
++ libbase=`basename $libname .a`
++ $CLINKER -shared -Wl,-soname,$libbase.$slsuffix \
++ -o ../shared/$libbase.$slsuffix *.o
+ cd ..
++ if [ $slsuffix != $req_slsuffix ] ; then
++ (cd shared ; ln -s $libbase.$slsuffix $libbase.$req_slsuffix )
++ fi
+ rm -rf .tmp
+ done
+ ;;
+@@ -61,8 +92,12 @@
+ mkdir .tmp
+ cd .tmp
+ $AR x ../$libname
+- $LD -G -h $libname.$slsuffix -o ../$libname.$slsuffix *.o
++ libbase=`basename $libname .a`
++ $LD -G -h $libbase.$slsuffix -o ../shared/$libbase.$slsuffix *.o
+ cd ..
++ if [ $slsuffix != $req_slsuffix ] ; then
++ ( cd shared ; ln -s $libbase.$slsuffix $libbase.$req_slsuffix )
++ fi
+ rm -rf .tmp
+ done
+ ;;
+@@ -73,20 +108,22 @@
+ mkdir .tmp
+ cd .tmp
+ ar x ../$libname
++ libbase=`basename $libname .a`
+ nm -g -p *.o | awk '{ if ($2 == "T") { print $1 ; }}' | \
+- sed -e 's/^\.//g' > $libname.exp
++ sed -e 's/^\.//g' > $libbase.exp
+ # xlC doesn't work with this!
+ # cc misses the iargc/getarg libraries
+- xlf -o ../$libname.so *.o -bE:$libname.exp -bM:SRE -bnoentry
++ xlf -o ../shared/$libbase.so *.o -bE:$libbase.exp -bM:SRE -bnoentry
+ # create new shared file name
+- newfile=`basename $libname`
+- newfile="${newfile}shared.a"
++ newfile="${libbase}shared.a"
+ /bin/rm -f $newfile
+- ar qv $newfile ../$libname.so
++ ar qv $newfile ../shared/$libbase.so
+ /bin/rm -f *.o
+ cd ..
+ /bin/rm -rf .tmp
+ done
++ ;;
++
+ *)
+ echo "Unknown shared library type $kind"
+ exit 1