Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 766291 - sci-mathematics/maxima-5.44.0 calls python directly (dev-lang/python-exec[-native-symlinks])
Summary: sci-mathematics/maxima-5.44.0 calls python directly (dev-lang/python-exec[-na...
Status: RESOLVED FIXED
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 762406
  Show dependency tree
 
Reported: 2021-01-20 16:24 UTC by Agostino Sarubbo
Modified: 2021-03-25 14:40 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,135.94 KB, application/x-xz)
2021-01-20 16:24 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-01-20 16:24:31 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-mathematics/maxima-5.44.0 calls python directly (dev-lang/python-exec[-native-symlinks]).
Discovered on: amd64 (internal ref: ci)

NOTE:
Please take a look at the tracker bug for more info.
Comment 1 Agostino Sarubbo gentoo-dev 2021-01-20 16:24:35 UTC
Created attachment 683848 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Michael Orlitzky gentoo-dev 2021-03-25 01:24:13 UTC
Here's the upstream bug with a patch for this particular failure:

  https://sourceforge.net/p/maxima/bugs/3754/

There's also an un-autotooled script buried in the German language documentation with a similar problem, but it at least uses the value of $PYTHONBIN.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-25 13:56:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b7b496428d9e3c307666e05aed3035c0ebb883d

commit 9b7b496428d9e3c307666e05aed3035c0ebb883d
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: 2021-03-25 13:55:42 +0000
Commit:     Andrey Grozin <grozin@gentoo.org>
CommitDate: 2021-03-25 13:55:42 +0000

    sci-mathematics/maxima: don't hardcode python
    
    Suggested-by: Michael Orlitzky <mjo@gentoo.org>
    Closes: https://bugs.gentoo.org/766291
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Andrey Grozin <grozin@gentoo.org>

 sci-mathematics/maxima/files/python-0.patch | 38 +++++++++++++++++++++++++++++
 sci-mathematics/maxima/maxima-5.44.0.ebuild |  4 +--
 2 files changed, 40 insertions(+), 2 deletions(-)
Comment 4 Michael Orlitzky gentoo-dev 2021-03-25 14:11:12 UTC
I should have said something last night... I'm working on this! Just adding the patch isn't enough because we need one of the python eclasses to set PYTHON appropriately.

I fixed ECL, but I'm still trying to sort out the missing sci-libs/vtk dependency which also requires some python eclass interaction. I'll try to get everything committed by the end of the day.
Comment 5 Larry the Git Cow gentoo-dev 2021-03-25 14:38:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=579ffa0836ee9943a212862eadb0b27638038316

commit 579ffa0836ee9943a212862eadb0b27638038316
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2021-03-25 02:47:14 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2021-03-25 14:35:27 +0000

    sci-mathematics/maxima: don't hard-code the python interpreter.
    
    This is a two-parter to fix bug 766291, which has the build
    failing because it can't find "python". First, we patch the
    build system to use @PYTHON@ instead of "python" in the one
    place upstream missed it. Second, we add python-single-r1 to
    the ebuild so that we get $PYTHON set appropriately.
    
    Closes: https://bugs.gentoo.org/766291
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 .../maxima/files/dont-hardcode-python.patch        | 38 ++++++++++++++++++++++
 ...ma-5.44.0-r1.ebuild => maxima-5.44.0-r2.ebuild} | 21 +++++++++---
 2 files changed, 55 insertions(+), 4 deletions(-)
Comment 6 Michael Orlitzky gentoo-dev 2021-03-25 14:40:41 UTC
I pushed the first two commits in the series to avoid more collisions. I'm working on the missing vtk dependency next but it looks like sci-libs/vtk is a shitshow.