Bug 1329944

Summary: python27-PyYAML: wrong interpreter
Product: Red Hat Software Collections Reporter: Branislav Náter <bnater>
Component: PyYAMLAssignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Branislav Náter <bnater>
Severity: medium Docs Contact:
Priority: unspecified    
Version: python27CC: kanderso, pviktori, python-maint
Target Milestone: rc   
Target Release: 2.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python27-PyYAML-3.10-14.el6 python27-PyYAML-3.10-14.el7 Doc Type: Bug Fix
Doc Text:
Cause: yaml_hl.py has a shebang which points to system python Consequence: This file should not be executable nor pointing to system python Fix: Remove shebang through the SPEC file Result: Shebang is removed
Story Points: ---
Clone Of:
: 1330146 (view as bug list) Environment:
Last Closed: 2016-05-31 10:26:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1330146    

Description Branislav Náter 2016-04-25 07:28:05 UTC
Description of problem:
File '/opt/rh/python27/root/usr/share/doc/python27-PyYAML-3.10/examples/yaml-highlight/yaml_hl.py' has wrong interpreter '#!/usr/bin/python'

Version-Release number of selected component (if applicable):
python27-PyYAML-3.10-13.el6
python27-PyYAML-3.10-13.el7

Additional info:
"env python" should be used to use collection python instead of system python.

Comment 1 Charalampos Stratakis 2016-04-25 16:31:48 UTC
This file becomes non-executable during the prep section in the SPEC file (chmod a-x examples/yaml-highlight/yaml_hl.py) however for consistency I will remove the shebang.

Comment 5 errata-xmlrpc 2016-05-31 10:26:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2016:1166