Bug 217233 - math/p5-Math-Pari port fails build
Summary: math/p5-Math-Pari port fails build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-perl (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-19 19:03 UTC by nico
Modified: 2017-02-24 14:26 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (perl)


Attachments
math/p5-Math-Pari build log (189.34 KB, text/plain)
2017-02-19 19:03 UTC, nico
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nico 2017-02-19 19:03:39 UTC
Created attachment 180148 [details]
math/p5-Math-Pari build log

math/p5-Math-Pari from ports is failing to build for me. At least one other person could not reproduce the problem on the same platform and version (amd64/11.0) and it also builds successfully in poudriere.

Full build log is attached.

I've also tried to disable CPU_OPTS for gmp but no change.


Depconfig tree:
===> The following configuration options are available for p5-Math-Pari-2.01080900 and dependencies
===> The following configuration options are available for perl5-5.24.1:
     DEBUG=off: Build with debugging support
     DTRACE=off: Build with DTrace probes
     GDBM=off: GDBM_File extension
     MULTIPLICITY=on: Use multiplicity
     PERL_64BITINT=on: Use 64 bit integers (on i386)
     PTHREAD=on: Build with -lpthread
     SITECUSTOMIZE=off: Run-time customization of @INC
====> Exclusive OPTIONS: you can only select none or one of them
     THREADS=on: Build threaded perl
     PERL_MALLOC=off: Use Perl malloc
===> Use 'make config' to modify these settings
===> The following configuration options are available for gmp-6.1.2:
     CPU_OPTS=on: Enable assembly optimizations for your CPU
===> Use 'make config' to modify these settings
===> The following configuration options are available for texinfo-6.1.20160425,1:
     NLS=on: Native Language Support
===> Use 'make config' to modify these settings
===> The following configuration options are available for help2man-1.47.4:
     NLS=on: Native Language Support
===> Use 'make config' to modify these settings
===> The following configuration options are available for gettext-tools-0.19.8.1:
     DOCS=on: Build and/or install documentation
     THREADS=on: Threading support
===> Use 'make config' to modify these settings
===> The following configuration options are available for libiconv-1.14_10:
     DOCS=on: Build and/or install documentation
     ENCODINGS=on: Include extra character sets
     PATCHES=on: Apply patches to fix CP932, add EUCJP-MS
===> Use 'make config' to modify these settings
===> The following configuration options are available for gmake-4.2.1_1:
     NLS=on: Native Language Support
===> Use 'make config' to modify these settings
Comment 1 Walter Schwarzenfeld freebsd_triage 2017-02-19 20:22:49 UTC
The problematic file is /usr/local/include/pari/paridecl.h
I don't have it on my system. I grepped in the portstree 
all pkg-plists with no result.

Try
pkg which /usr/local/include/pari/paridecl.h
to find out which package has installed it. Maybe, it is 
a rest of an old install.

Maybe, you can try to rename this file.
Comment 2 Walter Schwarzenfeld freebsd_triage 2017-02-19 21:46:49 UTC
Sorry, my statement was wrong.
paridecl.h is installed by /usr/ports/math/pari. (I puzzled
it with p5-Math-Pari).
Comment 3 Walter Schwarzenfeld freebsd_triage 2017-02-19 21:56:39 UTC
As workaround:
deinstall math/pari
install math/p5-Math-Pari
install math/pari again.

This is working.
Comment 4 Walter Schwarzenfeld freebsd_triage 2017-02-19 22:20:47 UTC
Found another solution:
change in files/patch-Makefile.PL

the line
+              INC           => '-I$(PREFIX)/include/pari -I$(PARI_DIR)/src',
to
+              INC           => '-I$(PARI_DIR)/src',
Comment 5 nico 2017-02-20 18:42:47 UTC
Yep, that works.
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-02-24 14:22:37 UTC
A commit references this bug:

Author: mat
Date: Fri Feb 24 14:22:13 UTC 2017
New revision: 434719
URL: https://svnweb.freebsd.org/changeset/ports/434719

Log:
  Fix build if math/pari is installed.

  PR:		217233
  Submitted by:	w schwarzenfeld utanet at
  Reported by:	nico lifeisabug com
  Sponsored by:	Absolight

Changes:
  head/math/p5-Math-Pari/files/patch-Makefile.PL
Comment 7 Mathieu Arnold freebsd_committer freebsd_triage 2017-02-24 14:26:37 UTC
Thanks for the patch.