Bug #5737
Fedora 30 - RPM Build
0%
Description
When creating the rpm package for Fedora 30, the following errors are displayed.
mangling shebang in /usr/bin/tvhmeta from /usr/bin/env python2.7 to #!/usr/bin/python2.7- ERROR: ambiguous python shebang in /usr/bin/tv_meta_tmdb.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
- ERROR: ambiguous python shebang in /usr/bin/tv_meta_tvdb.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
- WARNING: ./usr/share/tvheadend/data/dvb-scan/dvb-t/au-Adelaide is executable but has empty or no shebang, removing executable bit
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.Hil9Fc (%install)
I was able to fix the bug based on this patch I created. For me it goes so far very well, but I have too little knowledge of building Python -> Tvheadend so I ask you to check the patch.
Files
History
Updated by André Weiler about 5 years ago
Hmm should not the software be adapted to the system? Or is it better to adapt the system to the software.
Fedora 30 wants to finally switch to Python 3 and cut off old braids !!!
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
As I said my knowledge only modest. I made the suggestion of the rpm-builder consequence.
Updated by Flole Systems about 5 years ago
That blog post sums up my thoughts:
"Traditionally" the name is simply "python", changing it requires you to think about how other OS will behave and if every target OS has the file name that's chosen.