stefantalpalaru / gentoo-overlay

Gentoo overlay
GNU General Public License v2.0
43 stars 11 forks source link

dev-lang/tauthon: python_export() is part of private eclass API. #65

Closed g4jc closed 4 years ago

g4jc commented 4 years ago

I was attempting to install dev-lang/tauthon and the package fails with the following error:

 * python_export() is part of private eclass API.
 * Please call python_get*() instead.
 * ERROR: dev-lang/tauthon-2.8.2::local-overlay failed (install phase):
 *   _python_export called without a python implementation and EPYTHON is unset

Removing python_export "tauthon${SLOT}" "${vars[@]}" line and adding the line local -x EPYTHON=tauthon${SLOT} just above the tc-is-cross-compiler conditional resolves the issue.

g4jc commented 4 years ago

It also may be advantageous to add the current python-utils-r1 eclass to this overlay due to plans on dropping python2 support entirely which may affect the ability to build this package in the future.

stefantalpalaru commented 4 years ago

I already have a modified copy: https://github.com/stefantalpalaru/gentoo-overlay/blob/master/eclass/python-utils-r1.eclass

g4jc commented 4 years ago

For some reason it wasn't enabled for me, sorry for the noise. That works, thanks!

stefantalpalaru commented 4 years ago

Don't worry. It's still useful to be aware of this failure mode.

BTW, if you're trying to compile Tauthon with gcc-10 and PGO you're going to hit this bug: https://bugs.gentoo.org/734006