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
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: Tracker
Depends on: 720990 764080 764083 764089 764188 766836 769686 770115 770118 774144 775929 776391 786531 791724 823698 825730 826602 837590 840365 860300 864751 874282 881195 888683 889424 890285 892786 905637 907808 907969 909330 913743 914345 914373 924461 926070 930962 931001 932517 932783 933661 933690 934234 934411 934556 934945 936977 938582 939314 939763 941197 941672 941766 944220 731728 762415 762424 762742 762784 762925 762928 763159 763189 763282 763516 763642 763645 763651 764086 764107 764644 764779 765118 765391 765397 765454 765469 765631 765691 765769 765826 765829 765832 765862 765880 766033 766066 766081 766099 766105 766243 766246 766291 766372 766378 766390 766839 766845 766935 766947 767289 767403 768021 768057 768060 768084 768315 768321 768441 768618 769683 769935 769938 769941 770112 770184 770187 770493 770655 770670 770883 770895 770901 771045 771114 771207 771210 771213 771291 771594 772983 773442 773568 774141 774690 775572 776169 776619 777012 778842 778848 778854 778971 781701 781917 782772 782775 783078 785118 785184 787290 787965 792168 793251 794535 794553 795399 798807 800560 800905 802111 802558 804597 804600 804948 805515 807959 808111 808114 810739 810754 811408 811810 813023 813029 813156 813159 823701 826350 826674 827022 828053 828940 829399 829593 829888 829903 830139 830149 830284 831701 832220 832763 832879 833818 834790 834791 834878 835398 835705 836736 841575 843554 843737 843986 845291 846452 846662 847163 847247 848543 848693 848705 851480 852143 854468 859457 861572 861923 864967 865859 866461 866797 866800 866803 866806 866824 866827 866830 866833 866836 866845 866848 866851 866854 866857 866860 866863 866866 866914 866917 866920 866926 866929 867631 869440 871687 872455 872464 877719 878429 878601 879819 879835 884123 884817 885721 885723 885729 885735 888129 890062 892159 894492 896162 901111 903526 904715 905833 906826 906971 907435 907437 907438 907440 907441 907466 907467 907468 907469 908068 909626 911732 912229 912252 912415 912791 915526 921673 923131 924937 924952 925503 926719 931229 933072 933405 933407 937315 940781
Blocks:
  Show dependency tree
 
Reported: 2020-12-29 11:36 UTC by Agostino Sarubbo
Modified: 2024-11-21 06:56 UTC (History)
3 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