Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] numpy-1.3.0 problems with freebsd-7.2
Date: Tue, 28 Jul 2009 08:52:25
Message-Id: 20090728085322.GB9767@gentoo.org
In Reply to: Re: [gentoo-alt] numpy-1.3.0 problems with freebsd-7.2 by Michael Yang
1 On 28-07-2009 00:23:31 -0400, Michael Yang wrote:
2 > Since I unfortunately lack the effort to dig around in the original
3 > ebuild/numpy/python scripts, I made a single-line change to the
4 > numpy-1.3.0.ebuild file:
5 >
6 > --- numpy-1.3.0.ebuild.orig 2009-07-28 04:01:47 -0400
7 > +++ numpy-1.3.0.ebuild 2009-07-28 04:07:27 -0400
8 > @@ -48,6 +48,9 @@
9 > epatch "${FILESDIR}/${P}-parisc.patch" # bug 277438
10 > epatch "${FILESDIR}/${P}-alpha.patch" # bug 277438
11 >
12 > + # copy numpy/core/include/numpy/fenv/fenv.h to numpy/core/include
13 > + cp ${S}/numpy/core/include/numpy/fenv/fenv.h ${S}/numpy/core/include
14 > +
15 > # Gentoo patch for ATLAS library names
16 > sed -i \
17 > -e "s:'f77blas':'blas':g" \
18 >
19 > which just copies the fenv.h to the numpy/core/include directory so
20 > that -Inumpy/core/include will pick it up. This is a hack but
21 > whatever, it works in my overlay. I'm open to better practices and
22 > perhaps a solution that will throw the proper
23 > -Inumpy/core/include/numpy/fenv into the build process.
24
25 Hmm, this makes me think that perhaps it's easier to patch the
26 #include <fenv.h>
27 into
28 #include <fenv/fenv.h>
29
30 that should make it work, and even avoid the entire conflict with
31 /usr/include/fenv.h
32
33
34 --
35 Fabian Groffen
36 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-alt] numpy-1.3.0 problems with freebsd-7.2 Michael Yang <yangofzeal@×××××.com>