Subject: package conflicts
To: None <tech-pkg@netbsd.org>
From: Zdenek Salvet <salvet@ics.muni.cz>
List: tech-pkg
Date: 08/19/1998 16:30:19
Hello,

I have noticed  egcs-19980608 and f2c-19980516 use the same names
for important files (the contents are different):
/usr/pkg/bin/f77
/usr/pkg/include/f2c.h
/usr/pkg/lib/libf2c.a

I suggest to change the names 
/usr/pkg/bin/f77 -> /usr/pkg/bin/f2c-f77 for f2c-* package
/usr/pkg/lib/libf2c.a ->
   /usr/pkg/lib/gcc-lib/i386--netbsd/egcs-2.91.40/libf2c.a for egcs-19980516
/usr/pkg/include/f2c.h -> /usr/pkg/lib/gcc-lib/include/f2c.h for egcs-19980516

The are other such conflicts:

# comm -12 gtexinfo-3.12 teTeX-0.4p8
/usr/pkg/bin/texi2dvi
# comm -12 nocol-4.2b6 ucd-snmp-3.4
/usr/pkg/bin/snmpwalk
# comm -12 rumba-0.6 samba-1.9.18p8
/usr/pkg/man/man8/smbmount.8
# comm -12 texi2html-1.52 teTeX-0.4p8
/usr/pkg/bin/texi2html

PS. Please add -fPIC support to f2c-f77 of lang/f2c package,
    new patches/patch-ac follows:

--- fc.orig	Tue May 16 23:37:49 1995
+++ fc	Wed Aug 19 16:04:01 1998
@@ -1,5 +1,5 @@
 #!/bin/sh
-PATH=/v/bin:/bin:/usr/bin
+PATH=/bin:/usr/bin:PREFIX/bin
 # f77-style shell script to compile and load fortran, C, and assembly codes
 
 #	usage:	f77 [options] files [-l library]
@@ -20,6 +20,16 @@
 
 #		-w		omit all warning messages
 
+#		-Wall		turn on the -Wall flag to the c compiler
+
+#		-O		turn on the -O flag to the c compiler
+
+#		-O1		turn on the -O1 flag to the c compiler
+
+#		-O2		turn on the -O2 flag to the c compiler
+
+#		-O3		turn on the -O3 flag to the c compiler
+
 #		-w66		omit Fortran 66 compatibility warning messages
 
 #		files		FORTRAN source files ending in .f .
@@ -45,7 +55,7 @@
 
 s=/tmp/stderr_$$
 t=/tmp/f77_$$.o
-CC=${CC_f2c:-'cc -common'}
+CC=${CC_f2c:-'cc '}
 EFL=${EFL:-efl}
 EFLFLAGS=${EFLFLAGS:-'system=portable deltastno=10'}
 RATFOR=${RATFOR:-ratfor}
@@ -57,9 +67,10 @@
 trap "rm -f $s $t; exit \$rc" 0
 OUTF=a.out
 cOPT=1
-set -- `getopt cCD:gI:N:Oo:Suw6 "$@"`
+set -- `getopt cCD:gI:N:W:O:o:Suw6f: "$@"`
 case $? in 0);; *) rc=$?; exit;; esac
 CPPFLAGS=
+CFLAGS=-IPREFIX/include 
 while
 	test X"$1" != X--
 do
@@ -80,6 +91,10 @@
 		F2CFLAGS="$F2CFLAGS -g"
 		shift;;
 
+        -f)     CFLAGS="$CFLAGS -f$2"
+                shift 2
+                ;;
+
 	-I)	CPPFLAGS="$CPPFLAGS -I$2"
 		F2CFLAGS="$F2CFLAGS -I$2"
 		shift 2
@@ -89,12 +104,18 @@
 		shift 2
 		;;
 
-	-O)	case $2 in -1) O=-O1;; -2) O=-O2;; -3) O=-O3;; *) O=-O;; esac
+	-O)	case $2 in 1) O=-O1;; 2) O=-O2;; 3) O=-O3;; *) O=-O;; esac
 		case $O in -O);; *) shift;; esac
 		CFLAGS="$CFLAGS $O"
 		shift
 		;;
 
+	-W)	case $2 in all) W=-Wall;; *) echo "don't understand -W$2";; esac
+		case $O in -W);; *) shift;; esac
+		CFLAGS="$CFLAGS $W"
+		shift
+		;;
+
 	-u)	F2CFLAGS="$F2CFLAGS -u"
 		shift
 		;;
@@ -231,6 +252,6 @@
 	esac
 done
 
-case $cOPT in 2) $CC -o $OUTF -u MAIN__ $OFILES -lf2c -lm;; esac
+case $cOPT in 2) $CC -o $OUTF -u _MAIN__ $OFILES -LPREFIX/lib -lf2c -lm;; esac
 rc=$?
 exit $rc


-- 
Zdenek Salvet                                              salvet@ics.muni.cz 
----------------------------------------------------------------------------
           If God had meant for us to be in the Army,
         we would have been born with green, baggy skin.