Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615016 - sci-mathematics/pari fails install without '.' in @INC (Can't locate PARI/ in @INC)
Summary: sci-mathematics/pari fails install without '.' in @INC (Can't locate PARI/822...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
Depends on:
Blocks: perl-5.26-no-dot-inc perl-5.26-unmask
  Show dependency tree
Reported: 2017-04-08 20:12 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2017-06-11 15:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-04-08 20:12:11 UTC
All pari versions are affected by this, and some dancing will need to be done with the observation that dev-perl/Math-Pari requires old versions still.

See bug #612408 for more details.

Please keep this bug open till all affected versions are removed from tree.

x86_64-pc-linux-gnu-gcc  -c -I. -I../src/headers -fPIC -march=native -mtune=native -O2 -pipe -fno-strict-aliasing -DGCC_INLINE -fPIC -o compat.o ../src/language/compat.c
x86_64-pc-linux-gnu-gcc  -c -I. -I../src/headers -fPIC -march=native -mtune=native -O2 -pipe -fno-strict-aliasing -DGCC_INLINE -fPIC -o compile.o ../src/language/compile.c
x86_64-pc-linux-gnu-gcc  -c -I. -I../src/headers -fPIC -march=native -mtune=native -O2 -pipe -fno-strict-aliasing -DGCC_INLINE -fPIC -o default.o ../src/language/default.c
x86_64-pc-linux-gnu-gcc  -c -I. -I../src/headers -fPIC -march=native -mtune=native -O2 -pipe -fno-strict-aliasing -DGCC_INLINE -fPIC -o es.o ../src/language/es.c
x86_64-pc-linux-gnu-gcc  -c -I. -I../src/headers -fPIC -march=native -mtune=native -O2 -pipe -fno-strict-aliasing -DGCC_INLINE -fPIC -o eval.o ../src/language/eval.c
x86_64-pc-linux-gnu-gcc  -c -I. -I../src/headers -fPIC -march=native -mtune=native -O2 -pipe -fno-strict-aliasing -DGCC_INLINE -fPIC -o hash.o ../src/language/hash.c
f=funclist-$$-linux-x86_64.tmp; (cd ../src/desc && /usr/bin/perl merge_822 ../funclist > $f) && mv ../src/desc/$f ../src/desc/pari.desc
Can't locate PARI/ in @INC (you may need to install the PARI::822 module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.25.11/x86_64-linux /usr/local/lib64/perl5/5.25.11 /usr/lib64/perl5/vendor_perl/5.25.11/x86_64-linux /usr/lib64/perl5/vendor_perl/5.25.11 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.25.11 /usr/lib64/perl5/vendor_perl/5.22.3 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.25.11/x86_64-linux /usr/lib64/perl5/5.25.11) at merge_822 line 2.
BEGIN failed--compilation aborted at merge_822 line 2.                                                                                                
make: *** [Makefile:847: ../src/desc/pari.desc] Error 2                                                                        
make: *** Waiting for unfinished jobs....                                                                                                                                                                                                                      
 * ERROR: sci-mathematics/pari-2.7.1::gentoo failed (compile phase):                          
 *   emake failed                                                                                                                                                     
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-06-10 23:52:56 UTC
Suggested fix for review:
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-06-11 15:14:47 UTC
commit:  820fcd22ef2a0a5d8eefb18e86ab21ba76d96e3f
author:  2017-06-11 11:48:16 +1200 Kent Fredric <>
commit:  2017-06-12 02:29:18 +1200 Kent Fredric <>
gpg-key: E854324B1366A820

    sci-mathematics/pari: Fix for '.' in @INC on perl 5.26 re bug #615016

    Perl 5.26 removes implied cwd from library loading paths, and
    subsequently Pari's compile fails due to reliance on this implication.
    These patches rectify that by constructing a library path the same
    as the scripts directory, and inserting that into `@INC`
    Of course, we still need the oldest pari because dev-perl/Math-Pari
    needs the old version.
    And of course, the files in question have minor changes over the
    handful of versions, necessitating 3 *mostly* identical but slightly
    different patches for the relevant versions.
    I haven't filed this issue upstream, as their bug reporting stuff
    looked dizzyingly confusing.
    Package-Manager: Portage-2.3.6, Repoman-2.3.2

 sci-mathematics/pari/files/pari-2.3.5-no-dot-inc.patch | 61 ++++
 sci-mathematics/pari/files/pari-2.5.0-no-dot-inc.patch | 61 ++++
 sci-mathematics/pari/files/pari-2.7.0-no-dot-inc.patch | 64 +++++
 sci-mathematics/pari/pari-2.3.5.ebuild                 |  3 +-
 sci-mathematics/pari/pari-2.5.0-r3.ebuild              |  4 +-
 sci-mathematics/pari/pari-2.5.1-r1.ebuild              |  4 +-
 sci-mathematics/pari/pari-2.5.1.ebuild                 |  4 +-
 sci-mathematics/pari/pari-2.5.2.ebuild                 |  4 +-
 sci-mathematics/pari/pari-2.5.3.ebuild                 |  4 +-
 sci-mathematics/pari/pari-2.5.4.ebuild                 |  4 +-
 sci-mathematics/pari/pari-2.7.0.ebuild                 |  4 +-
 sci-mathematics/pari/pari-2.7.1.ebuild                 |  4 +-
 12 files changed, 212 insertions(+), 9 deletions(-)