Created attachment 316155 [details] diff against eclass python-distutils-ng.eclass ignore EPREFIX in function _python-distutils-ng_get_binary_for_implementation. It causes an emerge failure of net-mail/getmail for me: >>> Preparing source in /Users/tetsushi/Gentoo/var/tmp/portage/net-mail/getmail-4.30.1/work/getmail-4.30.1 ... /Users/tetsushi/Gentoo/var/tmp/portage/net-mail/getmail-4.30.1/temp/environment: line 331: /usr/bin/python2.7: No such file or directory The attached patch can fix this, which just prefixes hard coded /usr/bin with ${EPREFIX}.
This is really breaking each and every package that uses this eclass for Prefix (like javatoolkit). Python team, please advise.
(In reply to comment #1) > This is really breaking each and every package that uses this eclass for > Prefix (like javatoolkit). > > Python team, please advise. I can fix it if really desired, or just let the eclass stay deprecated and migrate the relevant packages to python-r1/distutils-r1 if maintainers don't mind.
it is breaking now, so any solution that unbreaks is fine, whatever you prefer
Created attachment 327686 [details, diff] Updated patch Could you please test this patch? It should additionally fix 'redoing' Python scripts.
the patch seems to allow me to install javatoolkit, and also to emerge packages that perform rewrites.
/var/cvsroot/gentoo-x86/eclass/ChangeLog,v <-- ChangeLog new revision: 1.485; previous revision: 1.484 /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v <-- python-distutils-ng.eclass new revision: 1.29; previous revision: 1.28
thanks!