[Bug 257340] math/adol-c fails to stage with python 2.7 installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 22 Jul 2021 17:49:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257340

            Bug ID: 257340
           Summary: math/adol-c fails to stage with python 2.7 installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: alt2600@icloud.com
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

Basically the autoconfigure finds the first instance of python you have and
tries to build the swig interfaces for the library. It seems we do not want the
python interfaces based on no USES=python directive in the make. I tried to
disable by adding --disable-python and then --disable-swig into CONFIGURE_ARGS
but it doesn't accept these as options. I think this requires patching out
python in the configure.ac file to skip these checks. I have python 2.7 as a
couple things still need a limited install of it, but I don't have py27-swig.
I'm not sure how to patch python out, or if its better to just make it
USES=python3+ . ADOL-C wants python 2.7 first in the search, and even if PYTHON
environment isn't set, which I confirmed with make -v PYTHON it finds it by
checking known executable names of python. I will try some other things and
post a patch if i can figure something out, but not sure which way the
maintainer wants to go with python as a dependency here.


 /bin/mkdir -p '/usr/ports/math/adol-c/work/stage/usr/local/include/adolc'
 install  -m 0644 adolc.h adalloc.h adouble.h adutils.h adutilsc.h convolut.h
fortutils.h interfaces.h taping.h externfcts.h checkpointing.h fixpoint.h
adolc_sparse.h adolc_openmp.h revolve.h advector.h adolc_fatalerror.h adtl.h
adtl_indo.h adtl_hov.h adoublecuda.h param.h externfcts2.h edfclasses.h
'/usr/ports/math/adol-c/work/stage/usr/local/include/adolc'
gmake[8]: Leaving directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/include/adolc'
gmake[7]: Leaving directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/include/adolc'
gmake[6]: Leaving directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/include/adolc'
gmake[6]: Entering directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/include'
gmake[7]: Entering directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/include'
gmake[7]: Nothing to be done for 'install-exec-am'.
gmake[7]: Nothing to be done for 'install-data-am'.
gmake[7]: Leaving directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/include'
gmake[6]: Leaving directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/include'
gmake[5]: Leaving directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/include'
Making install in swig
gmake[5]: Entering directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/swig'
CXX=c++ /usr/local/bin/python2.7 setup.py install --prefix=/usr/local
--only-swig
Traceback (most recent call last):
  File "setup.py", line 15, in <module>
    from numpy.distutils import misc_util as np_dist
ImportError: No module named numpy.distutils
gmake[5]: *** [Makefile:490: install] Error 1
gmake[5]: Leaving directory
'/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/swig'
gmake[4]: *** [Makefile:554: install-recursive] Error 1
gmake[4]: Leaving directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C'
gmake[3]: *** [Makefile:711: install] Error 2
gmake[3]: Leaving directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C'
gmake[2]: *** [Makefile:537: install-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2'
gmake[1]: *** [Makefile:841: install-strip] Error 2
gmake[1]: Leaving directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2'
*** Error code 2

Stop.
make: stopped in /usr/ports/math/adol-c

-- 
You are receiving this mail because:
You are the assignee for the bug.