From conrads@cox.net  Sun Jul 24 04:13:18 2005
Return-Path: <conrads@cox.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7EDD216A420;
	Sun, 24 Jul 2005 04:13:17 +0000 (GMT)
	(envelope-from conrads@cox.net)
Received: from lakermmtai20.cox.net (lakermmtai20.cox.net [68.230.240.39])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A4CAF43D48;
	Sun, 24 Jul 2005 04:13:16 +0000 (GMT)
	(envelope-from conrads@cox.net)
Received: from serene.no-ip.org ([68.11.71.10]) by centrmmtao04.cox.net
          (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP
          id <20050724040521.VJLT23525.centrmmtao04.cox.net@serene.no-ip.org>;
          Sun, 24 Jul 2005 00:05:21 -0400
Received: from serene.no-ip.org (localhost [127.0.0.1])
	by serene.no-ip.org (8.13.3/8.13.3) with ESMTP id j6O45JUq044577;
	Sat, 23 Jul 2005 23:05:20 -0500 (CDT)
	(envelope-from conrads@serene.no-ip.org)
Received: (from root@localhost)
	by serene.no-ip.org (8.13.3/8.13.3/Submit) id j6O45EId044576;
	Sat, 23 Jul 2005 23:05:14 -0500 (CDT)
	(envelope-from conrads)
Message-Id: <200507240405.j6O45EId044576@serene.no-ip.org>
Date: Sat, 23 Jul 2005 23:05:14 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Reply-To: "Conrad J. Sabatier" <conrads@cox.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: tg@freebsd.org
Subject: math/py-numeric build failure (patch included)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         83985
>Category:       ports
>Synopsis:       math/py-numeric build failure (patch included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 24 04:20:19 GMT 2005
>Closed-Date:    Sun Jul 24 17:35:18 GMT 2005
>Last-Modified:  Sun Jul 24 17:35:18 GMT 2005
>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@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@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:

From: Soeren Straarup <xride@x12.dk>
To: bug-followup@freebsd.org, "Conrad J. Sabatier" <conrads@cox.net>
Cc: tg@freebsd.org, freebsd-ports-bugs@freebsd.org
Subject: Re: ports/83985: math/py-numeric build failure (patch included)
Date: Sun, 24 Jul 2005 08:51:07 +0200 (CEST)

 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
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sun Jul 24 17:35:12 GMT 2005 
State-Changed-Why:  
Fixed! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83985 
>Unformatted:
