Bug 83985

Summary: math/py-numeric build failure (patch included)
Product: Ports & Packages Reporter: Conrad J. Sabatier <conrads>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: tg
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
py24-numeric.diff none

Description Conrad J. Sabatier 2005-07-24 05:20:19 UTC
	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.

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.
How-To-Repeat: 	cd ${PORTSDIR}/math/py-numeric; make install
Comment 1 Soeren Straarup 2005-07-24 07:51:07 UTC
This is similar to ports/83944

Best regards Soeren Straarup

Soeren Straarup   | aka OZ2DAK aka Xride
FreeBSD wannabe   | FreeBSD since 2.2.6-R
    'We wanted to believe. But the tools
     had been taken away..' Mulder
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-07-24 18:35:12 UTC
State Changed
From-To: open->closed

Fixed!