Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jul 2005 20:31:51 +0200 (CEST)
From:      Soeren Straarup <xride@x12.dk>
To:        Brett Goulder <predatorfreak@dcaf-security.org>
Cc:        freebsd-ports-bugs@FreeBSD.org, tg@FreeBSD.org
Subject:   Re: ports/83915: py-numeric fails to build properly due to naming error
Message-ID:  <20050722201829.S70851@x12.dk>
In-Reply-To: <200507221555.j6MFtBOM031049@www.freebsd.org>
References:  <200507221555.j6MFtBOM031049@www.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-90632274-1122057111=:70851
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Fri, 22 Jul 2005, Brett Goulder wrote:

>
>> Number:         83915
>> Category:       ports
>> Synopsis:       py-numeric fails to build properly due to naming error
>> Confidential:   no
>> Severity:       serious
>> Priority:       medium
>> Responsible:    freebsd-ports-bugs
>> State:          open
>> Quarter:
>> Keywords:
>> Date-Required:
>> Class:          sw-bug
>> Submitter-Id:   current-users
>> Arrival-Date:   Fri Jul 22 16:00:33 GMT 2005
>> Closed-Date:
>> Last-Modified:
>> Originator:     Brett Goulder
>> Release:        5.4-STABLE
>> Organization:
> DCAF_Security
>> Environment:
> FreeBSD predatorbox 5.4-STABLE FreeBSD 5.4-STABLE #5: Wed Jul 20 16:24:20=
 EDT 2005     predatorfreak@predatorbox:/usr/obj/usr/src/sys/PREDATOR  i386
>> Description:
> When updating py-numeric to 23.8, it will fail to build due to the source=
 directory's name (includes a capitol N instead of lower case), it will als=
o fail to install because numpy.pdf is being referenced from the wrong dire=
ctory.
>> How-To-Repeat:
> 1. cd /usr/ports/math/py-numeric/
> 2. make install
>> Fix:
> Apply the below diff, which fixes the problem.
>
> diff -Nurp /usr/ports/math/py-numeric/Makefile py-numeric/Makefile
> --- /usr/ports/math/py-numeric/Makefile=09Fri Jul 22 08:52:37 2005
> +++ py-numeric/Makefile=09Fri Jul 22 11:52:50 2005
> @@ -5,7 +5,7 @@
> # $FreeBSD: ports/math/py-numeric/Makefile,v 1.45 2005/07/22 12:52:37 tg =
Exp $
> #
>
> -PORTNAME=3D=09numeric
> +PORTNAME=3D=09Numeric
> PORTVERSION=3D=0923.8
> CATEGORIES=3D=09math python
> MASTER_SITES=3D=09http://numeric.scipy.org/:doc \
> @@ -44,7 +44,7 @@ post-install:
> =09${INSTALL_DATA} ${WRKSRC}/Demo/NumTut/* ${EXAMPLESDIR}/NumTut
> .if !defined(NOPORTDOCS)
> =09@${MKDIR} ${DOCSDIR}
> -=09${INSTALL_DATA} ${WRKDIR}/numpy.pdf ${DOCSDIR}
> +=09${INSTALL_DATA} ${WRKSRC}/numpy.pdf ${DOCSDIR}
> .endif
>
> .include <bsd.port.post.mk>
>> Release-Note:
>> Audit-Trail:
>> Unformatted:

Args forget last email.. version mismatch.

Here is what is needed in the Makefile
WRKSRC=3D<TAB>${WRKDIR}/Numeric-${PORTVERSION}

And in hte Makefile:
post-extract:
-    @${CP} ${DISTDIR}/numpy.pdf ${WRKSRC}
+    @${CP} ${DISTDIR}/numpy.pdf ${WRKDIR}

No need to rename the port

Best regards S=F8ren 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
--0-90632274-1122057111=:70851--



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