pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/40663: math/py-numpy seems to miss the f2c requirement (at least when building under Linux)



The following reply was made to PR pkg/40663; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/40663: math/py-numpy seems to miss the f2c requirement (at
 least when building under Linux)
Date: Tue, 17 Feb 2009 21:08:33 +0900

 On Mon, 16 Feb 2009 22:05:00 +0900, 
<harenberg%physik.uni-wuppertal.de@localhost> wrote:
 
 > => Applying pkgsrc patches for py25-numpy-1.1.0
 > ===> Creating toolchain wrappers for py25-numpy-1.1.0
 > ERROR: f2c>=20001205nb3 is not installed; can't buildlink files.
 > *** Error code 1
 
 It's known problem, same as PR#37536.
 
 Workaround:
 insert .include "../../mk/compiler.mk" to py-numpy/Makefile (like 
devel/kdevelop-base).
 
 Index: math/py-numpy/Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/math/py-numpy/Makefile,v
 retrieving revision 1.2
 diff -u -r1.2 Makefile
 --- math/py-numpy/Makefile     19 Dec 2008 22:09:55 -0000      1.2
 +++ math/py-numpy/Makefile     17 Feb 2009 11:50:56 -0000
 @@ -18,6 +18,8 @@
  PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
  MAKE_ENV+=    ATLAS=None
 
 +.include "../../mk/compler.mk"
 +
  .include "../../lang/python/extension.mk"
  .include "../../math/blas/buildlink3.mk"
  .include "../../math/lapack/buildlink3.mk"
 
 
 Background:
 math/py-numpy/Makefile added "fortran" to "USE_LANGUAGES".
 then include
   lang/python/extension.mk
 => lang/python25/buildlink3.mk
 ==> mk/bdb.buildlink3.mk
 ===> databases/db4/buildlink3.mk
 ====> mk/compiler.mk
 =====> comipler/f2c.mk
 ======> lang/f2c/buildlink3.mk
 
 Then f2c/buildlink3.mk recognizes that it is included by the other buildlink3 
file,
 not depends directly, no need to add itself to DEPENDS.
 
 Following patch should avoid the problem without any harmful effect.
 
 Index: mk/compiler/f2c.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/compiler/f2c.mk,v
 retrieving revision 1.11
 diff -u -r1.11 f2c.mk
 --- mk/compiler/f2c.mk 24 May 2008 07:27:11 -0000      1.11
 +++ mk/compiler/f2c.mk 17 Feb 2009 11:31:33 -0000
 @@ -99,6 +99,9 @@
 
  # Add the dependency on f2c.
  .  include "../../lang/f2c/buildlink3.mk"
 +.  if !defined(BUILDLINK_DEPENDS) || empty(BUILDLINK_DEPENDS:Mf2c)
 +BUILDLINK_DEPENDS+=   f2c
 +.  endif
 
  .  if defined(F2C_DIR) && !empty(F2C_DIR)
  PKGSRC_MAKE_ENV+=     F2C_DIR=${F2C_DIR:Q}
 
 -- 
 "Of course I love NetBSD":-)
 OBATA Akio / obache%NetBSD.org@localhost
 


Home | Main Index | Thread Index | Old Index