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: 720990 762784 763189 763282 763645 763651 764080 764083 764089 764188 764779 765691 765769 765832 765880 766105 766243 766246 766372 766378 766836 766839 766947 768315 768321 769683 769686 769935 770115 770118 770670 770901 771291 772983 773568 774144 774690 775929 776391 778971 785184 786531 787965 791724 792168 794535 794553 800560 800905 802111 802558 804597 804600 804948 805515 762415 762424 762742 762925 762928 763159 763516 763642 764086 764107 764644 765118 765391 765397 765454 765469 765631 765826 765829 765862 766033 766066 766081 766099 766291 766390 766845 766935 767289 767403 768021 768057 768060 768084 768441 768618 769938 769941 770112 770184 770187 770493 770655 770883 770895 771045 771114 771207 771210 771213 771594 773442 774141 775572 776169 776619 778842 778848 778854 781701 781917 782772 782775 783078 785118 787290 793251 795399 798807
Blocks:
  Show dependency tree
 
Reported: 2020-12-29 11:36 UTC by Agostino Sarubbo
Modified: 2021-07-31 12:55 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