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.27; author dmcmahill; state Exp; branches; next 1.3; 1.3 date 98.08.25.08.54.07; author agc; state Exp; branches; next 1.2; 1.2 date 98.08.07.11.08.58; author agc; state Exp; branches; next 1.1; 1.1 date 98.07.21.16.40.46; 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-ae,v 1.10 2005/01/28 23:37:42 dmcmahill Exp $ --- libF77/makefile.orig Tue Sep 14 18:38:32 2004 +++ libF77/makefile @@@@ -1,7 +1,4 @@@@ -.SUFFIXES: .c .o -CC = cc -SHELL = /bin/sh -CFLAGS = -O +.SUFFIXES: .c .lo # If your system lacks onexit() and you are not using an # ANSI C compiler, then you should add -DNO_ONEXIT to CFLAGS, @@@@ -12,11 +9,10 @@@@ CFLAGS = -O # "CFLAGS =" line to # CFLAGS = -O -Donexit=on_exit -# compile, then strip unnecessary symbols -.c.o: - $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c - ld -r -x -o $*.xxx $*.o - mv $*.xxx $*.o +# 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 @@@@ -41,12 +37,12 @@@@ INT = i_abs.o i_dim.o i_dnnt.o i_indx.o HALF = h_abs.o h_dim.o h_dnnt.o h_indx.o h_len.o h_mod.o h_nint.o h_sign.o CMP = l_ge.o l_gt.o l_le.o l_lt.o hl_ge.o hl_gt.o hl_le.o hl_lt.o EFL = ef1asc_.o ef1cmc_.o -CHAR = F77_aloc.o s_cat.o s_cmp.o s_copy.o +CHAR = s_cat.o s_cmp.o s_copy.o F90BIT = lbitbits.o lbitshft.o QINT = pow_qq.o qbitbits.o qbitshft.o TIME = dtime_.o etime_.o -all: signal1.h libF77.a +all: signal1.h libF77.la # You may need to adjust signal1.h suitably for your system... signal1.h: signal1.h0 @@@@ -59,45 +55,26 @@@@ signal1.h: signal1.h0 # For INTEGER*8 support (which requires system-dependent adjustments to # f2c.h), add $(QINT) to the libf2c.a dependency list below... -libF77.a : $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ +OBJS = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ $(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT) $(TIME) - ar r libF77.a $? - ranlib libF77.a || true + +LTOBJS = ${OBJS:.o=.lo} + +libF77.la : $(LTOBJS) + ${LIBTOOL} --mode=link ${CC} -o $@@ ${LTOBJS} ${LDFLAGS} -rpath ${LIBDIR} -version-info ${F2CMAJOR}:${F2CMINOR} ### If your system lacks ranlib, you don't need it; see README. -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 cat /usr/include/f2c.h f2ch.add >f2c.h -install: libF77.a - mv libF77.a $(LIBDIR)/libF77.a - ranlib $(LIBDIR)/libF77.a || true +install: libF77.la + ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libF77.la ${LIBDIR} clean: rm -f libF77.a *.o -check: - xsum F77_aloc.c Notice README Version.c abort_.c c_abs.c c_cos.c \ - c_div.c c_exp.c c_log.c c_sin.c c_sqrt.c cabs.c d_abs.c d_acos.c \ - d_asin.c d_atan.c d_atn2.c d_cnjg.c d_cos.c d_cosh.c d_dim.c \ - d_exp.c d_imag.c d_int.c d_lg10.c d_log.c d_mod.c d_nint.c \ - d_prod.c d_sign.c d_sin.c d_sinh.c d_sqrt.c d_tan.c d_tanh.c \ - derf_.c derfc_.c dtime_.c \ - ef1asc_.c ef1cmc_.c erf_.c erfc_.c etime_.c exit_.c f2ch.add \ - getarg_.c getenv_.c h_abs.c h_dim.c h_dnnt.c h_indx.c h_len.c \ - h_mod.c h_nint.c h_sign.c hl_ge.c hl_gt.c hl_le.c hl_lt.c \ - i_abs.c i_dim.c i_dnnt.c i_indx.c i_len.c i_mod.c i_nint.c \ - i_sign.c iargc_.c l_ge.c l_gt.c l_le.c l_lt.c lbitbits.c lbitshft.c \ - main.c makefile pow_ci.c pow_dd.c pow_di.c pow_hh.c pow_ii.c \ - pow_qq.c pow_ri.c pow_zi.c pow_zz.c qbitbits.c qbitshft.c \ - r_abs.c r_acos.c r_asin.c r_atan.c r_atn2.c \ - r_cnjg.c r_cos.c r_cosh.c r_dim.c r_exp.c r_imag.c r_int.c r_lg10.c \ - r_log.c r_mod.c r_nint.c r_sign.c r_sin.c r_sinh.c r_sqrt.c \ - r_tan.c r_tanh.c s_cat.c s_cmp.c s_copy.c \ - s_paus.c s_rnge.c s_stop.c sig_die.c signal1.h0 signal_.c system_.c \ - z_abs.c z_cos.c z_div.c z_exp.c z_log.c z_sin.c z_sqrt.c >zap - cmp zap libF77.xsum && rm zap || diff libF77.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-ae,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$ d75 1 a75 1 + ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libF77.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-ae,v 1.10 2005/01/28 23:37:42 dmcmahill Exp $ d75 1 a75 1 + ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libF77.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-ae,v 1.7 2001/04/09 01:44:39 dmcmahill Exp $ d3 3 a5 5 use a bsd style makefile for building shared libs --- libF77/makefile.orig Fri Apr 6 22:20:09 2001 +++ libF77/makefile Fri Apr 6 22:20:40 2001 @@@@ -1,26 +1,5 @@@@ d10 8 a17 10 - -# If your system lacks onexit() and you are not using an -# ANSI C compiler, then you should add -DNO_ONEXIT to CFLAGS, -# e.g., by changing the above "CFLAGS =" line to -# CFLAGS = -O -DNO_ONEXIT - -# On at least some Sun systems, it is more appropriate to change the -# "CFLAGS =" line to -# CFLAGS = -O -Donexit=on_exit - d23 15 a37 11 -## 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 -DNO_ONEXIT -DSkip_f2c_Undefs +NOGCCERROR= #defined +MKLINT= no MISC = F77_aloc.o Version.o main.o s_rnge.o abort_.o getarg_.o iargc_.o \ getenv_.o signal_.o s_stop.o s_paus.o system_.o cabs.o\ @@@@ -47,57 +25,11 @@@@ d41 8 a48 12 - -# You may need to adjust signal1.h suitably for your system... -signal1.h: signal1.h0 - cp signal1.h0 signal1.h - -# If you get an error compiling dtime_.c or etime_.c, try adding -# -DUSE_CLOCK to the CFLAGS assignment above; if that does not work, -# omit $(TIME) from the dependency list for libF77.a below. - -# For INTEGER*8 support (which requires system-dependent adjustments to -# f2c.h), add $(QINT) to the libf2c.a dependency list below... - d50 1 a50 1 +OBJ= $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ d54 8 a61 3 - -### If your system lacks ranlib, you don't need it; see README. - d64 2 d67 3 a69 4 -# To compile with C++, first "make f2c.h" -f2c.h: f2ch.add - cat /usr/include/f2c.h f2ch.add >f2c.h +SRCS=${OBJ:.o=.c} d74 2 a75 1 +LIB=F77 d77 2 a78 2 -clean: - rm -f libF77.a *.o a100 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-ae,v 1.6 2001/04/07 12:43:48 dmcmahill Exp $ d33 1 a33 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,26 +1,4 @@@@ d34 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-ae,v 1.4 1999/12/16 00:58:27 dmcmahill Exp $ d3 8 a10 5 --- ./libF77/makefile.orig Tue Dec 7 17:52:36 1999 +++ ./libF77/makefile Tue Dec 7 18:03:51 1999 @@@@ -2,5 +2,5 @@@@ CC = cc SHELL = /bin/sh d12 63 a74 1 +CFLAGS = -fPIC -Wcast-align -O2 -DNO_ONEXIT d76 22 a97 1 # If your system lacks onexit() and you are not using an @ 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 -DNO_ONEXIT @ 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 Omit any package-modified files from the distributed checksum (the pkgsrc checksum is still valid) --- libF77/makefile.orig Sun Jul 19 22:58:11 1998 +++ libF77/makefile Sun Jul 19 23:11:54 1998 d9 1 a9 1 +CFLAGS = -O2 -DNO_ONEXIT a11 14 @@@@ -82,5 +82,5 @@@@ check: - xsum F77_aloc.c Notice README Version.c abort_.c c_abs.c c_cos.c \ + ../src/xsum F77_aloc.c Notice README Version.c abort_.c c_abs.c c_cos.c \ c_div.c c_exp.c c_log.c c_sin.c c_sqrt.c cabs.c d_abs.c d_acos.c \ d_asin.c d_atan.c d_atn2.c d_cnjg.c d_cos.c d_cosh.c d_dim.c \ @@@@ -93,5 +93,5 @@@@ i_abs.c i_dim.c i_dnnt.c i_indx.c i_len.c i_mod.c i_nint.c \ i_sign.c iargc_.c l_ge.c l_gt.c l_le.c l_lt.c lbitbits.c lbitshft.c \ - main.c makefile pow_ci.c pow_dd.c pow_di.c pow_hh.c pow_ii.c \ + main.c pow_ci.c pow_dd.c pow_di.c pow_hh.c pow_ii.c \ pow_qq.c pow_ri.c pow_zi.c pow_zz.c qbitbits.c qbitshft.c \ r_abs.c r_acos.c r_asin.c r_atan.c r_atn2.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 @