Bug#439339: libmath-pari-perl not currently buildable

Gunnar Wolf gwolf at gwolf.org
Wed Nov 7 16:56:58 UTC 2007


Hi,

439339 cannot be closed until 440527 is (i.e. until libmath-pari-perl
is included in Debian) - But building libmath-pari-perl is not
trivial, as it insists on including the sources for GP/PARI:

------------------------------------------------------------
0 gwolf at malenkaya[3]/tmp/Math-Pari-2.010709$ perl Makefile.PL 
Did not find GP/PARI build directory around.

Do you want to me to fetch GP/PARI automatically?

  (If you do not, you will need to fetch it manually, and/or direct me to
   the directory with GP/PARI source via the command-line option paridir=/dir)

Make sure you have a large scrollback buffer to see the messages, or `tee'
the STDOUT/STDERR to a file.

Fetch? (y/n, press Enter) n

Well, as you wish...

Rerun Makefile.PL when you fetched GP/PARI archive manually to the
current directory, or a (grand)parent directory of it.

  [Keep in mind that version of Math::Pari module corresponds to
   the last versions of GP/PARI it was tested with.]

    Alternatively, you may specify
      pari_tgz=PATH_TO_TAR_GZ
    option to Makefile.PL.  (There is no need to extract the archive, or
    build GP/PARI; but if you have it extracted [and patched, if needed],
    you may specify
      paridir=PATH_TO_DIST_DIR
    option to Makefile.PL)

Could not find GP/PARI build directory, please run Makefile.PL
with paridir=/directory option.
------------------------------------------------------------

As the build process should not depend on network connectivity (and
this looks like an invitation for a sudden FTBFS), we cannot say 'y'
to fetching this file; we could include it as part of our .diff.gz,
but that'd really be suboptimal - Not in small part, because that
would mean basically statically linking it.

Curiously, the package does not build even with libpari-dev installed
- It _does_ require the full sources (i.e. the test suite, at least):

------------------------------------------------------------
$ perl Makefile.PL paridir=/usr/include/pari/
Setting up Math::Pari with Perl 5.008008 on linux version 2.6.17-2-vserver-amd64;
   cc=cc, gccversion=4.2.3 20071014 (prerelease) (Debian 4.2.2-3), ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
   ld=cc, ldflags=' -L/usr/local/lib', optimize='-O2'.
Could not extract version from '/usr/include/pari/config/version';

   Do you remember that paridir should be location of PARI/GP source tree,
   not the location of compiled+installed files?

Trying extract from the directory name...
Directory `/usr/include/pari' has unknown syntax...
Found GP/PARI build directory in /usr/include/pari
     (integer-formatted version /usr/include/pari).
Cannot find tests in /usr/include/pari/src/test/in: No such file or directory at utils/Math/PariBuild.pm line 513.
------------------------------------------------------------

There are only two ways out for this: The first (and better, IMHO),
would be to ask Math::PARI's upstream (Ilya Zakharevich) to fix his
building not to require this (or to explain the rationale for the
requirement). As soon as this message is recorded in the BTS, I'll
copy it to CPAN's tracker.

The second way out is to request from libpari's maintainer, Bill
Alombert, to become maintainer for libmath-pari-perl as well (maybe
joining or co-maintaining with the pkg-perl group?). Bill, what do you
think about this?

Greetings,

-- 
Gunnar Wolf - gwolf at gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF





More information about the pkg-perl-maintainers mailing list