Subject: math/R build problem on Mac OS X 10.4.6
To: None <>
From: Mark E. Perkins <>
List: pkgsrc-users
Date: 04/21/2006 11:17:33
The configure phase for math/R breaks on Mac OS X 10.4.6 (maintainer cc'd).

math/R needs a Fortran complier, so the build made a diversion that installed
lang/f2c. Then the configure phase died because it couldn't determine a
legitimate value for FPICFLAGS:

	configure: WARNING: I could not determine FPICFLAGS.
	configure: error: See the file INSTALL for more information.
	*** Error code 1

	bmake: stopped in /Volumes/NetBSD/pkgsrc/math/R

Wading through the configure script, I found that the following patch allows
the build to proceed (it's running now):

============================== begin patch ==============================
--- configure.orig      2006-04-21 10:52:09.000000000 -0400
+++ configure   2006-04-21 11:12:39.000000000 -0400
@@ -29412,7 +29412,7 @@
 if test -z "${FPICFLAGS}" \
     && test -z "${F2C}"; then
   case "${host_os}" in
-    aix*|irix*|mingw*|osf*)
+    aix*|irix*|mingw*|osf*|darwin*)
       { echo "$as_me:$LINENO: WARNING: I could not determine FPICFLAGS." >&5
============================== end patch ==============================

Note that this is a patch-to-the-patch for configure. configure is already
fairly heavily patched, so I'm sending it along this way to make the change
easily visible. I'm also not sure this is the best approach or even that it
makes sense (since I *am* using f2c, I don't know why F2C is not set), but
acccording to config.log F2C is not set, and this is where configure died.