Project

General

Profile

Bug #5737

Fedora 30 - RPM Build

Added by André Weiler almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Packaging
Target version:
-
Start date:
2019-09-30
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1804~gebb096804
Affected Versions:

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

fedora30_python_systemd.patch (11 KB) fedora30_python_systemd.patch Python, Systemd Patch work for me under Fedora 30 rpm build André Weiler, 2019-09-30 07:51

History

#1

Updated by saen acro almost 2 years ago

Is there a way not to hard link?

#2

Updated by André Weiler almost 2 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.

#4

Updated by Flole Systems almost 2 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.

Also available in: Atom PDF