nedi fails to build (on p5-math-pari)

Bryan Blackburn blb at macports.org
Thu Nov 6 19:15:25 PST 2008


On Thu, Nov 06, 2008 at 04:56:01PM -0600, Ryan Schmidt said:
>
> On Nov 6, 2008, at 10:29, Christoph Tilley wrote:
>> On 06.11.2008, at 09:53, Bryan Blackburn wrote:
>>> On Thu, Nov 06, 2008 at 06:16:02AM +0100, Tilley Christoph said:
>>>> Same thing again, unfortunately:
>>>>
>>>> tilley:~ srv_adm$ sudo port clean p5-math-pari
>>> [...]
>>>> Getting GP/PARI from ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/
>>>
>>> The issue is that the module wants to download a copy of the pari  
>>> tarball,
>>> and is doing so via ftp (which appears to not work for you).
>>>
>>> I tried both updating the port to the current version and updating it 
>>> to try
>>> and grab the file itself, but ran into several issues on my MBP.
>>>
>>> pari does some asm and some of this doesn't carry over into the perl 
>>> module.
>>> I get undefined symbols, as it appears those symbols are declared  
>>> common,
>>> trying various things to change this runs into further issues.  Since 
>>> my
>>> Intel assembly + Mac experience is too small, I had to quit at this 
>>> point.
>>
>> Seems like we're stuck here, doesn't it? Unless someone helps us.
>>
>> Please help!
>
>
> Bryan,
>
> Could you share your portfile diffs or what you did to get to where you 
> were? Maybe someone else can pick it up.

I've attached my updates to p5-math-pari's Portfile, which update the
version and integrate fetching pari's tarball into the port instead of
having the perl module fetch it itself.

The major thing is in pari-2.1.7/src/kernel/ix86/l0asm.c, first is that
ASM_UNDERSCORE needs to be set for __APPLE__ as well, then we run into the
issue that overflow and hiremainder are common symbols, which get lost when
the perl module bundle is built.  Combining Intel assembly with the Mac's
interesting linking put it outside my area of knowledge (eg, trying to make
those symbols not common, I ran into issues with other things being claimed
note to be relocatable).

Bryan

-------------- next part --------------
Index: Portfile
===================================================================
--- Portfile	(revision 41594)
+++ Portfile	(working copy)
@@ -2,12 +2,26 @@
 
 PortSystem          1.0
 PortGroup           perl5 1.0
-perl5.setup         Math-Pari 2.010709
+perl5.setup         Math-Pari 2.010800
 maintainers         nomaintainer
 description         perl interface to pari.
 long_description    ${description}
 
 platforms           darwin
 
-checksums           md5 58fdea358b37d00072723bd9cd69ce9e
+dist_subdir         pari
+# Math::Pari prefers the 2.1.7 version so we use it here, even though the
+# pari port itself is at 2.3.4
+set pari_dist       pari-2.1.7.tgz
+master_sites-append http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/:pari
+distfiles-append    ${pari_dist}:pari
 
+checksums           ${distname}${extract.suffix} \
+                    md5     43d050e73068360599cde6cc076f1d32 \
+                    sha1    785baa00b7cb1ac47030d9afc22cdad825942587 \
+                    rmd160  40bdec281f6d9fa6fc6c937d3f7f7e0d869a7162 \
+                    ${pari_dist} \
+                    md5     357b7a42e89e2761a5367bbcbfcca5f2 \
+                    sha1    dca15bb3ac6dfdcc7934569fe3a65cb16f812a4e \
+                    rmd160  6d7ca649cdd457d96c12e1f9333143d496a78b7e
+


More information about the macports-users mailing list