HomeFreeBSD

Exclude python scripts from RPM shebang check

Description

Exclude python scripts from RPM shebang check

The newest Fedora packaging rules print warnings for scripts using the
/usr/bin/python shebang:

  • WARNING: mangling shebang in /usr/bin/arc_summary.py from #!/usr/bin/python to #!/usr/bin/python2. This will become an ERROR, fix it manually!

Fedora wants all cross compatible scripts to pick python3. Since we
don't want our users to have to pick a specific version of python, we
exclude our scripts from the RPM build check.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #7360
Closes #7399

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Apr 6 2018, 11:32 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 6 2018, 11:32 PM
Parents
rG55d80e651a8c: systemd mount generator and tracking ZEDLET
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG812323bb03ce: Exclude python scripts from RPM shebang check (authored by Tony Hutter <hutter2@llnl.gov>).Apr 6 2018, 11:32 PM