Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762406 - [TRACKER] Packages that have failures with dev-lang/python-exec[-native-symlinks]
Summary: [TRACKER] Packages that have failures with dev-lang/python-exec[-native-symli...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: Tracker
Depends on: 762424 762784 762925 762928 763159 763189 763282 763645 763651 764080 764083 764089 764188 764644 764779 765397 765631 765691 765769 765829 765832 765880 766033 766066 766105 766243 766246 766372 766378 766836 766839 766935 766947 767289 768060 768315 768321 768441 768618 769683 769686 769935 769941 770115 770118 770670 770883 770895 770901 771291 771594 772983 773568 774141 774144 774690 775929 776391 778842 778848 778854 778971 762415 762742 763516 763642 764086 764107 765118 765391 765454 765469 765826 765862 766081 766099 766291 766390 766845 767403 768021 768057 768084 769938 770112 770184 770187 770493 770655 771045 771114 771207 771210 771213 773442 775572 776169 776619 781701 781917 782772 782775 783078
Blocks:
  Show dependency tree
 
Reported: 2020-12-29 11:36 UTC by Agostino Sarubbo
Modified: 2021-04-16 06:58 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.33 KB, text/plain)
2021-01-05 08:22 UTC, Toralf Förster
Details
CMakeOutput.log (CMakeOutput.log,45.40 KB, text/plain)
2021-01-05 08:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,211.12 KB, text/plain)
2021-01-05 08:23 UTC, Toralf Förster
Details
environment (environment,89.09 KB, text/plain)
2021-01-05 08:23 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,22.57 KB, application/x-bzip)
2021-01-05 08:23 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.38 KB, application/x-bzip)
2021-01-05 08:23 UTC, Toralf Förster
Details
net-libs:davix-0.7.6:20210105-063431.log (net-libs:davix-0.7.6:20210105-063431.log,3.97 KB, text/plain)
2021-01-05 08:23 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.86 KB, application/x-bzip)
2021-01-05 08:23 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-12-29 12:59:25 UTC
===========
Explanation
===========

This USE flag is used to find cases of missing/incorrect Python eclass usage.  Long story short, we don't support installing scripts with 'generic' Python shebangs or using scripts without proper eclass backing.  In other words, we do not support declaring a script as 'any version of Python 3' as Python upstream keeps introducing incompatible changes between minor Python versions.  Instead, we require all Python stuff to clearly declare 'this has been tested with Python 3.x through 3.y'.


Now, there are three main cases when this will cause issues:

1. If scripts with /usr/bin/python{,3} shebang are installed.  Instead, you should either use python-exec wrapping (with python-r1) or call python_fix_shebang to make sure the script has specific 'python3.X' version.

2. If packages call 'python' or 'python3' at build time without using one of the Python eclasses.  In this case, the fix is to inherit an appropriate eclass (python-any-r1 most likely).

3. If packages call /usr/bin/python{,3} directly or via shebangs.  In this case, you'd have to fix (patch?) them into respecting $PATH (+ an appropriate eclass).

Please note that 2./3. does not apply to calling already installed Python scripts as external executables.  Per point 1. they must have a valid shebang/wrapping already, so they shouldn't be affected.
Comment 2 Toralf Förster gentoo-dev 2021-01-05 08:22:57 UTC
appeared recently at the tinderbox image 17.1-20201231-222458
Comment 3 Toralf Förster gentoo-dev 2021-01-05 08:22:58 UTC
Created attachment 681112 [details]
emerge-info.txt
Comment 4 Toralf Förster gentoo-dev 2021-01-05 08:23:00 UTC
Created attachment 681115 [details]
CMakeOutput.log
Comment 5 Toralf Förster gentoo-dev 2021-01-05 08:23:01 UTC
Created attachment 681118 [details]
emerge-history.txt
Comment 6 Toralf Förster gentoo-dev 2021-01-05 08:23:03 UTC
Created attachment 681121 [details]
environment
Comment 7 Toralf Förster gentoo-dev 2021-01-05 08:23:04 UTC
Created attachment 681124 [details]
etc.portage.tbz2
Comment 8 Toralf Förster gentoo-dev 2021-01-05 08:23:05 UTC
Created attachment 681127 [details]
logs.tbz2
Comment 9 Toralf Förster gentoo-dev 2021-01-05 08:23:07 UTC
Created attachment 681130 [details]
net-libs:davix-0.7.6:20210105-063431.log
Comment 10 Toralf Förster gentoo-dev 2021-01-05 08:23:08 UTC
Created attachment 681133 [details]
temp.tbz2