head 1.11; access; symbols pkgsrc-2013Q2:1.11.0.10 pkgsrc-2013Q2-base:1.11 pkgsrc-2012Q4:1.11.0.8 pkgsrc-2012Q4-base:1.11 pkgsrc-2011Q4:1.11.0.6 pkgsrc-2011Q4-base:1.11 pkgsrc-2011Q2:1.11.0.4 pkgsrc-2011Q2-base:1.11 pkgsrc-2009Q4:1.11.0.2 pkgsrc-2009Q4-base:1.11 pkgsrc-2009Q3:1.10.0.42 pkgsrc-2009Q3-base:1.10 pkgsrc-2009Q2:1.10.0.40 pkgsrc-2009Q2-base:1.10 pkgsrc-2009Q1:1.10.0.38 pkgsrc-2009Q1-base:1.10 pkgsrc-2008Q4:1.10.0.36 pkgsrc-2008Q4-base:1.10 pkgsrc-2008Q3:1.10.0.34 pkgsrc-2008Q3-base:1.10 cube-native-xorg:1.10.0.32 cube-native-xorg-base:1.10 pkgsrc-2008Q2:1.10.0.30 pkgsrc-2008Q2-base:1.10 cwrapper:1.10.0.28 pkgsrc-2008Q1:1.10.0.26 pkgsrc-2008Q1-base:1.10 pkgsrc-2007Q4:1.10.0.24 pkgsrc-2007Q4-base:1.10 pkgsrc-2007Q3:1.10.0.22 pkgsrc-2007Q3-base:1.10 pkgsrc-2007Q2:1.10.0.20 pkgsrc-2007Q2-base:1.10 pkgsrc-2007Q1:1.10.0.18 pkgsrc-2007Q1-base:1.10 pkgsrc-2006Q4:1.10.0.16 pkgsrc-2006Q4-base:1.10 pkgsrc-2006Q3:1.10.0.14 pkgsrc-2006Q3-base:1.10 pkgsrc-2006Q2:1.10.0.12 pkgsrc-2006Q2-base:1.10 pkgsrc-2006Q1:1.10.0.10 pkgsrc-2006Q1-base:1.10 pkgsrc-2005Q4:1.10.0.8 pkgsrc-2005Q4-base:1.10 pkgsrc-2005Q3:1.10.0.6 pkgsrc-2005Q3-base:1.10 pkgsrc-2005Q2:1.10.0.4 pkgsrc-2005Q2-base:1.10 pkgsrc-2005Q1:1.10.0.2 pkgsrc-2005Q1-base:1.10 pkgsrc-2004Q4:1.9.0.4 pkgsrc-2004Q4-base:1.9 pkgsrc-2004Q3:1.9.0.2 pkgsrc-2004Q3-base:1.9 pkgsrc-2004Q2:1.8.0.14 pkgsrc-2004Q2-base:1.8 pkgsrc-2004Q1:1.8.0.12 pkgsrc-2004Q1-base:1.8 pkgsrc-2003Q4:1.8.0.10 pkgsrc-2003Q4-base:1.8 netbsd-1-6-1:1.8.0.6 netbsd-1-6-1-base:1.8 netbsd-1-6:1.8.0.8 netbsd-1-6-RELEASE-base:1.8 pkgviews:1.8.0.4 pkgviews-base:1.8 buildlink2:1.8.0.2 buildlink2-base:1.8 netbsd-1-5-PATCH003:1.8 netbsd-1-5-PATCH001:1.7 netbsd-1-5-RELEASE:1.4 netbsd-1-4-PATCH003:1.4 netbsd-1-4-PATCH002:1.4 comdex-fall-1999:1.3 netbsd-1-4-PATCH001:1.3 netbsd-1-4-RELEASE:1.3 netbsd-1-3-PATCH003:1.3; locks; strict; comment @# @; 1.11 date 2009.11.22.12.52.54; author asau; state dead; branches; next 1.10; 1.10 date 2005.01.28.23.37.42; author dmcmahill; state Exp; branches; next 1.9; 1.9 date 2004.09.14.22.09.40; author dmcmahill; state Exp; branches 1.9.4.1; next 1.8; 1.8 date 2002.03.14.22.09.35; author dmcmahill; state Exp; branches; next 1.7; 1.7 date 2001.04.09.01.44.39; author dmcmahill; state Exp; branches; next 1.6; 1.6 date 2001.04.07.12.43.48; author dmcmahill; state Exp; branches; next 1.5; 1.5 date 2001.02.24.18.37.46; author dmcmahill; state Exp; branches; next 1.4; 1.4 date 99.12.16.00.58.28; author dmcmahill; state Exp; branches; next 1.3; 1.3 date 98.08.25.08.54.08; author agc; state Exp; branches; next 1.2; 1.2 date 98.08.07.11.08.59; author agc; state Exp; branches; next 1.1; 1.1 date 98.07.21.16.40.47; author agc; state Exp; branches; next ; 1.9.4.1 date 2005.01.29.01.20.06; author salo; state Exp; branches; next ; desc @@ 1.11 log @Update f2c to 2009-04-11 snapshot. Changes are mostly bug fixes. Perform conservative update: recreate libF77 and libI77 providing binary compatibility. Prefer files to patches creating respective files. Override build system completely, we effectively did that anyway. @ text @$NetBSD: patch-ag,v 1.10 2005/01/28 23:37:42 dmcmahill Exp $ --- libI77/makefile.orig Tue Sep 14 17:11:44 2004 +++ libI77/makefile @@@@ -1,13 +1,11 @@@@ -.SUFFIXES: .c .o -CC = cc -CFLAGS = -O -SHELL = /bin/sh - -# compile, then strip unnecessary symbols -.c.o: - $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c - ld -r -x -o $*.xxx $*.o - mv $*.xxx $*.o +all: libI77.la + +.SUFFIXES: .c .lo + +# compile +.c.lo: + ${LIBTOOL} --mode=compile $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c + ## Under Solaris (and other systems that do not understand ld -x), ## omit -x in the ld line above. ## If your system does not have the ld command, comment out @@@@ -17,18 +15,18 @@@@ OBJ = Version.o backspace.o close.o dfe. fmt.o fmtlib.o ftell_.o iio.o ilnw.o inquire.o lread.o lwrite.o \ open.o rdfmt.o rewind.o rsfe.o rsli.o rsne.o sfe.o sue.o typesize.o \ uio.o util.o wref.o wrtfmt.o wsfe.o wsle.o wsne.o xwsne.o -libI77.a: $(OBJ) - ar r libI77.a $? - ranlib libI77.a || true +LTOBJ= ${OBJ:.o=.lo} + +libI77.la: $(LTOBJ) + ${LIBTOOL} --mode=link ${CC} ${CFLAGS} -o $@@ ${LTOBJ} ${LDFLAGS} -rpath ${LIBDIR} -version-info ${F2CMAJOR}:${F2CMINOR} ### If your system lacks ranlib, you don't need it; see README. -install: libI77.a - cp libI77.a $(LIBDIR)/libI77.a - ranlib $(LIBDIR)/libI77.a || true +install: libI77.la + ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libI77.la ${LIBDIR} -Version.o: Version.c - $(CC) -c Version.c +Version.lo: Version.c + ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) -c Version.c # To compile with C++, first "make f2c.h" f2c.h: f2ch.add @@@@ -94,11 +92,3 @@@@ xwsne.o: fio.h xwsne.o: lio.h xwsne.o: fmt.h -check: - xsum Notice README Version.c backspace.c close.c dfe.c dolio.c \ - due.c endfile.c err.c f2ch.add fio.h fmt.c fmt.h fmtlib.c fp.h \ - ftell_.c iio.c ilnw.c inquire.c lio.h lread.c lwrite.c makefile \ - open.c rawio.h rdfmt.c rewind.c rsfe.c rsli.c rsne.c sfe.c sue.c \ - typesize.c uio.c util.c wref.c wrtfmt.c wsfe.c wsle.c wsne.c \ - xwsne.c >zap - cmp zap libI77.xsum && rm zap || diff libI77.xsum zap @ 1.10 log @update to f2c-20001205nb8 This addresses a temp file symlink race vulnerability. The f2c patch is adapted from the debian one. The f2c-f77 (wrapper script which emulates a fortran compiler) patch was done a bit differently. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.9 2004/09/14 22:09:40 dmcmahill Exp $ @ 1.9 log @libtool-ize this for building its shared libs instead of using bsd.lib.mk. Should address PR26628 where this package can't build on solaris. In addition, this cleans up some PLIST hacks. @ text @d1 1 a1 1 $NetBSD$ d45 1 a45 1 + ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libI77.la ${LIBDIR} @ 1.9.4.1 log @Pullup ticket 253 - requested by Dan McMahill security fix for f2c Revisions pulled up; - pkgsrc/lang/f2c/Makefile 1.33 - pkgsrc/lang/f2c/buildlink3.mk 1.4 - pkgsrc/lang/f2c/distinfo 1.13 - pkgsrc/lang/f2c/patches/patch-ac 1.15 - pkgsrc/lang/f2c/patches/patch-ae 1.10 - pkgsrc/lang/f2c/patches/patch-ag 1.10 - pkgsrc/lang/f2c/patches/patch-ak 1.1 Modified Files: pkgsrc/lang/f2c: Makefile buildlink3.mk distinfo pkgsrc/lang/f2c/patches: patch-ac patch-ae patch-ag Added Files: pkgsrc/lang/f2c/patches: patch-ak Log Message: update to f2c-20001205nb8 This addresses a temp file symlink race vulnerability. The f2c patch is adapted from the debian one. The f2c-f77 (wrapper script which emulates a fortran compiler) patch was done a bit differently. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.10 2005/01/28 23:37:42 dmcmahill Exp $ d45 1 a45 1 + ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libI77.la ${LIBDIR} @ 1.8 log @change NOGCCERROR from 'yes' to #defined. Addresses the build problems on -current reported in pkg/15844 by florence.henry@@obspm.fr @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.7 2001/04/09 01:44:39 dmcmahill Exp $ d3 3 a5 5 use a BSD style makefile for building shared libs --- libI77/makefile.orig Fri Apr 6 22:20:23 2001 +++ libI77/makefile Fri Apr 6 22:20:42 2001 @@@@ -1,16 +1,5 @@@@ d16 13 a28 10 -## Under Solaris (and other systems that do not understand ld -x), -## omit -x in the ld line above. -## If your system does not have the ld command, comment out -## or remove both the ld and mv lines above. +CPPFLAGS+= -Wcast-align -DSkip_f2c_Undefs +NOGCCERROR= #defined +MKLINT= no OBJ = Version.o backspace.o close.o dfe.o dolio.o due.o endfile.o err.o \ @@@@ -18,87 +6,7 @@@@ d34 7 a40 3 - -### If your system lacks ranlib, you don't need it; see README. - d44 3 a46 1 - d49 2 a50 11 - -# To compile with C++, first "make f2c.h" -f2c.h: f2ch.add - cat /usr/include/f2c.h f2ch.add >f2c.h - - -clean: - rm -f $(OBJ) libI77.a - -clobber: clean - rm -f libI77.a d52 5 a56 54 -backspace.o: fio.h -close.o: fio.h -dfe.o: fio.h -dfe.o: fmt.h -due.o: fio.h -endfile.o: fio.h rawio.h -err.o: fio.h rawio.h -fmt.o: fio.h -fmt.o: fmt.h -ftell_.o: fio.h -iio.o: fio.h -iio.o: fmt.h -ilnw.o: fio.h -ilnw.o: lio.h -inquire.o: fio.h -lread.o: fio.h -lread.o: fmt.h -lread.o: lio.h -lread.o: fp.h -lwrite.o: fio.h -lwrite.o: fmt.h -lwrite.o: lio.h -open.o: fio.h rawio.h -rdfmt.o: fio.h -rdfmt.o: fmt.h -rdfmt.o: fp.h -rewind.o: fio.h -rsfe.o: fio.h -rsfe.o: fmt.h -rsli.o: fio.h -rsli.o: lio.h -rsne.o: fio.h -rsne.o: lio.h -sfe.o: fio.h -sue.o: fio.h -uio.o: fio.h -util.o: fio.h -wref.o: fio.h -wref.o: fmt.h -wref.o: fp.h -wrtfmt.o: fio.h -wrtfmt.o: fmt.h -wsfe.o: fio.h -wsfe.o: fmt.h -wsle.o: fio.h -wsle.o: fmt.h -wsle.o: lio.h -wsne.o: fio.h -wsne.o: lio.h -xwsne.o: fio.h -xwsne.o: lio.h -xwsne.o: fmt.h +SRCS= ${OBJ:.o=.c} +LIB= I77 a65 1 +.include @ 1.7 log @-fix the combined f2c library. problem noted by Jason Beegan - enable the -N option to the f2c-f77. Allows increasing some runtime table sizes in the f2c compiler. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.6 2001/04/07 12:43:48 dmcmahill Exp $ d23 1 a23 1 +NOGCCERROR= yes @ 1.6 log @build and install shared libs as well as the static ones. add nb1 to the version. @ text @d1 1 a1 1 $NetBSD$ d7 1 a7 1 @@@@ -1,16 +1,4 @@@@ d24 2 a25 1 @ 1.5 log @update to f2c-20001205. while here, add more options to the f2c-f77 script: from Jason Beegan, -r8, promote REAL and COMPLEX to DOUBLE REAL and DOUBLE COMPLEX -s, to strip executible generalize the -Wall flag to accept -Wxxx and pass it to the c compiler -Wxxx for gcc warnings complete change log from the f2c maintainers since the last packaged version: ------------------------------------------ libf2c.zip: fix bug with the sequence backspace(n); endfile(n); rewind(n); read(n). Supply missing (long) casts in a couple of places where they matter when size(ftnint) == sizeof(int) < sizeof(long). Tue Jan 18 19:22:24 EST 2000 Arrange for parameter statements involving min(...) and max(...) functions of three or more arguments to work. Warn about text after "end" (rather than reporting a syntax error with a surprising line number). Accept preprocessor line numbers of the form "# 1234" (possibly with trailing blanks). Accept a comma after write(...) and before a list of things to write. Fri Jan 21 17:26:27 EST 2000 Minor updates to make compiling Win32 console binaries easier. A side effect is that the MSDOS restriction of only one Fortran file per invocation is lifted (and "f2c *.f") works. Tue Feb 1 18:38:32 EST 2000 f2c/src/tokdefs.h added (to help people on non-Unix systems -- the makefile has always had a rule for generating tokdefs.h). Fri Mar 10 18:48:17 EST 2000 libf77, libf2c.zip: z_log.c: the real part of the double complex log of numbers near, e.g., (+-1,eps) with |eps| small is now more accurate. For example if z = (1,1d-7), then "write(*,*) z" now writes "(5.E-15,1.E-07" rather than the previous "(4.88498131E-15,1.E-07)". Thu Apr 20 13:02:54 EDT 2000 libf77, libi77, libf2c.zip: s_cat.c, rsne.c, xwsne.c: fix type errors that only matter if sizeof(ftnint) != sizeof(ftnlen). Tue May 30 23:36:18 EDT 2000 expr.c: adjust subcheck() to use a temporary variable of type TYLONG rather than TYSHORT under -C -I2. Wed May 31 08:48:03 EDT 2000 Simplify yesterday's adjustment; today's change should be invisible. Tue Jul 4 22:52:21 EDT 2000 misc.c, function "addressable": fix fault with "f2c -I2 foo.f" when foo.f consists of the 4 lines subroutine foo(c) character*(*) c i = min(len(c),23) end Sundry files: tweaks for portability, e.g., for compilation by overly fastidious C++ compilers; "false" and "true" now treated as C keywords (so they get two underscores appended). libf77, libi77, libf2c.zip: "invisible" adjustments to permit compilation by C++ compilers; version numbers not changed. Thu Jul 6 23:46:07 EDT 2000 Various files: tweaks to banish more compiler warnings. lib?77, libf2c.zip/makefile.u: add "|| true" to ranlib invocations. Thanks to Nelson H. F. Beebe for messages leading to these changes (and to many of the ones two days ago). xsum.c: tweak include order. Fri Jul 7 18:01:25 EDT 2000 fc: accept -m xxx or -mxxx, pass them to the compiler as -mxxx (suggestion of Nelson Beebe). Note that fc simply appends to CFLAGS, so system-specific stuff can be supplied in the environment variable CFLAGS. With some shells, invocations of the form CFLAGS='system-specific stuff' fc ... are one way to do this. Thu Aug 17 21:38:36 EDT 2000 Fix obscure glitch: in "Error on line nnn of ...: Bad # line:...", get nnn right. Sat Sep 30 00:28:30 EDT 2000 libf77, libf2c.zip: dtime_.c, etime_.c: use floating-point divide; dtime_.d, erf_.c, erfc_.c, etime.c: for use with "f2c -R", compile with -DREAL=float. Tue Dec 5 22:55:56 EST 2000 lread.c: under namelist input, when reading a logical array, treat Tstuff= and Fstuff= as new assignments rather than as logical constants. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.4 1999/12/16 00:58:28 dmcmahill Exp $ d3 7 a9 5 --- ./libI77/makefile.orig Tue Dec 7 17:52:41 1999 +++ ./libI77/makefile Tue Dec 7 18:05:10 1999 @@@@ -1,5 +1,5 @@@@ .SUFFIXES: .c .o CC = cc d11 96 a106 2 +CFLAGS = -fPIC -Wcast-align -O2 SHELL = /bin/sh d108 9 @ 1.4 log @-Update to f2c-19991025. This newer version contains several bug fixes including (from f2c/changes) = permit long names in #line lines = minor tweaks to make some (C++) compilers happier = some casts for systems with 64-bit longs. = some fixes to format strings -Add a -v (verbose) option to the f2c-f77 script. This is (unfortunately) used by some GNU configure scripts (octave for example) for examining the fortran compiler behaviour. @ text @d1 1 a1 1 $NetBSD$ d9 1 a9 1 +CFLAGS = -Wcast-align -O2 @ 1.3 log @Update to the f2c package, from Dan McMahill (mcmahill@@mtl.mit.edu). Fixes PR pkg/6026. Modified slightly by me, to add NetBSD RCS Ids to patches, along with a minimalist comment about each patch, and also modified the top-level Makefile to use mkdir, rather than install -d (install -d was clobbering directory permissions on ${PREFIX}/{bin,lib,include}). @ text @d3 2 a4 5 Set optimisation level appropriately, and omit modified files from distributed checksum --- libI77/makefile.orig Sun Jul 19 22:58:35 1998 +++ libI77/makefile Sun Jul 19 23:13:08 1998 d9 1 a9 1 +CFLAGS = -O2 a11 10 @@@@ -96,7 +96,7 @@@@ check: - xsum Notice README Version.c backspace.c close.c dfe.c dolio.c \ + ../src/xsum Notice README Version.c backspace.c close.c dfe.c dolio.c \ due.c endfile.c err.c f2ch.add fio.h fmt.c fmt.h fmtlib.c fp.h \ - ftell_.c iio.c ilnw.c inquire.c lio.h lread.c lwrite.c makefile \ + ftell_.c iio.c ilnw.c inquire.c lio.h lread.c lwrite.c \ open.c rawio.h rdfmt.c rewind.c rsfe.c rsli.c rsne.c sfe.c sue.c \ typesize.c uio.c util.c wref.c wrtfmt.c wsfe.c wsle.c wsne.c \ @ 1.2 log @Add NetBSD RCS Ids. @ text @d3 3 @ 1.1 log @Addition of f2c, the Fortran to C translator/compiler, to the NetBSD packages collection. This is based on the 1998/05/16 version of f2c, and was submitted by Dan McMahill in PR pkg/5735. I modified some patches to contain the correct pathnames. @ text @d1 2 @