Bug 1674073

Summary: Invalid shebangs
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: nodejs-yarnAssignee: Jan Staněk <jstanek>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: jstanek, nodejs-sig, zsvetlik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nodejs-yarn-1.13.0-3.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-20 13:13:20 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: 1541318    

Description Miro Hrončok 2019-02-08 23:49:30 UTC
nodejs-yarn-1.13.0-1.fc30

has this in the logs:

mangling shebang in /usr/lib/node_modules/yarn/node_modules/performance-now/test/scripts/delayed-require.coffee from /usr/bin/env ./node_modules/.bin/coffee to #!/usr/bin/./node_modules/.bin/coffee
mangling shebang in /usr/lib/node_modules/yarn/node_modules/performance-now/test/scripts/delayed-call.coffee from /usr/bin/env ./node_modules/.bin/coffee to #!/usr/bin/./node_modules/.bin/coffee
mangling shebang in /usr/lib/node_modules/yarn/node_modules/performance-now/test/scripts/difference.coffee from /usr/bin/env ./node_modules/.bin/coffee to #!/usr/bin/./node_modules/.bin/coffee
mangling shebang in /usr/lib/node_modules/yarn/node_modules/performance-now/test/scripts/initial-value.coffee from /usr/bin/env ./node_modules/.bin/coffee to #!/usr/bin/./node_modules/.bin/coffee


Note thet neither the original or the new shebang is valid.

Comment 1 Jan Staněk 2019-02-13 10:56:42 UTC
I have prepared specfile patch removing the executable bit from these files, and thus disabling the mangling process.
See the pagure PR[1] for details.

[1]: https://src.fedoraproject.org/rpms/nodejs-yarn/pull-request/1

Comment 2 Ben Cotton 2019-08-13 16:52:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 3 Ben Cotton 2019-08-13 19:35:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.