Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Sep 2014 10:40:55 +0000 (UTC)
From:      Dmitry Sivachenko <demon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r369447 - head/math/py-numpy
Message-ID:  <201409281040.s8SAetve060935@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: demon
Date: Sun Sep 28 10:40:54 2014
New Revision: 369447
URL: http://svnweb.freebsd.org/changeset/ports/369447
QAT: https://qat.redports.org/buildarchive/r369447/

Log:
  Fix
  ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found
  error when importing numpy module.
  
  PR:		188114
  Patch by Thierry Thomas <thierry@FreeBSD.org>

Modified:
  head/math/py-numpy/Makefile

Modified: head/math/py-numpy/Makefile
==============================================================================
--- head/math/py-numpy/Makefile	Sun Sep 28 10:38:02 2014	(r369446)
+++ head/math/py-numpy/Makefile	Sun Sep 28 10:40:54 2014	(r369447)
@@ -3,7 +3,7 @@
 
 PORTNAME=	numpy
 PORTVERSION=	1.8.1
-PORTREVISION=	3
+PORTREVISION=	4
 PORTEPOCH=	1
 CATEGORIES=	math python
 MASTER_SITES=	http://docs.scipy.org/doc/${PORTNAME}/:doc \
@@ -23,6 +23,7 @@ RUN_DEPENDS=	nosetests:${PORTSDIR}/devel
 
 USES=		fortran python
 USE_PYTHON=	concurrent distutils py3kplist
+LDFLAGS+=	-shared
 
 OPTIONS_DEFINE=		ATLAS SUITESPARSE DOCS
 OPTIONS_DEFAULT=	SUITESPARSE
@@ -48,14 +49,12 @@ PLIST_FILES+=	man/man1/f2py.1.gz
 .endif
 
 post-extract:
-	@${CP} ${DISTDIR}/numpy-ref-${PORTVERSION}.pdf ${WRKDIR}
-	@${CP} ${DISTDIR}/numpy-user-${PORTVERSION}.pdf ${WRKDIR}
+	${CP} ${DISTDIR}/numpy-ref-${PORTVERSION}.pdf ${WRKDIR}
+	${CP} ${DISTDIR}/numpy-user-${PORTVERSION}.pdf ${WRKDIR}
 
 post-patch:
-	@${REINPLACE_CMD} -e "s+%%FC%%+${FC}+" ${WRKSRC}/numpy/distutils/fcompiler/gnu.py
-	@${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg
-# ignore LDFLAGS from env, as it overrides internal flags (e.g. -shared) for some reason
-	@${REINPLACE_CMD} -e "s|'LDFLAGS'|None|" ${WRKSRC}/numpy/distutils/fcompiler/__init__.py
+	${REINPLACE_CMD} -e "s+%%FC%%+${FC}+" ${WRKSRC}/numpy/distutils/fcompiler/gnu.py
+	${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg
 
 GCCLIBDIR_CMDS=	${FC} -print-file-name=libgfortran.so|${SED} -e s/libgfortran.so//
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409281040.s8SAetve060935>