ports/83985: math/py-numeric build failure (patch included)
Conrad J. Sabatier
conrads at cox.net
Sun Jul 24 04:20:21 UTC 2005
>Number: 83985
>Category: ports
>Synopsis: math/py-numeric build failure (patch included)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 24 04:20:19 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Conrad J. Sabatier
>Release: FreeBSD 5.4-STABLE amd64
>Organization:
>Environment:
System:
FreeBSD serene.no-ip.org 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Jul 20 15:33:07 CDT 2005 conrads at serene.no-ip.org:/usr/obj/usr/src/sys/CUSTOM amd64
>Description:
Latest update to math/py-numeric fails in "make patch" due to
mismatch between ${PORTNAME} and the extracted ${WRKSRC}
directory's name.
Actually, there are two problems here:
1) The source distfile doesn't extract to the default of
${WRKDIR}/${PORTNAME}-${PORTVERSION}, the difference being that
the extracted ${WRKSRC} name is capitalized, while the port's name
is not.
2) The extra (doc) distfile "numpy.pdf" is first being copied to
${WRKSRC} in the post-extract target, but then the post-install
target tries to install it from ${WRKDIR} instead, resulting in a
"No such file or directory" error.
>How-To-Repeat:
cd ${PORTSDIR}/math/py-numeric; make install
>Fix:
Diff attached below to correct both of the aforementioned problems
in the port's Makefile. There are, of course, two possible
solutions to problem (2) above: either adjust the post-extract
target to copy the PDF file to ${WRKDIR} instead of ${WRKSRC}, or
adjust the post-install target to install the file from ${WRKSRC}
instead of ${WRKDIR}. In the patch below, I opted for the first
solution.
--- py24-numeric.diff begins here ---
--- Makefile.orig Sat Jul 23 22:36:13 2005
+++ Makefile Sat Jul 23 22:33:59 2005
@@ -16,6 +16,8 @@
numpy.pdf:doc
EXTRACT_ONLY= Numeric-${PORTVERSION}${EXTRACT_SUFX}
+WRKSRC= ${WRKDIR}/Numeric-${PORTVERSION}
+
MAINTAINER= tg at FreeBSD.org
COMMENT= The Numeric Extension to Python
@@ -35,7 +37,7 @@
.endif
post-extract:
- @${CP} ${DISTDIR}/numpy.pdf ${WRKSRC}
+ @${CP} ${DISTDIR}/numpy.pdf ${WRKDIR}
post-install:
@${MKDIR} ${EXAMPLESDIR}
--- py24-numeric.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list