Summary: | hardcoding #!/usr/bin/python is not portable | ||
---|---|---|---|
Product: | ITS Tool | Reporter: | Allison Lortie (desrt) <desrt> |
Component: | general | Assignee: | Shaun McCance <shaunm> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | [PATCH] Don't hardcode python path |
Description
Allison Lortie (desrt)
2013-12-09 18:11:43 UTC
I suppose we could have a configure check and a substitution macro. I'll try a patch. Created attachment 90532 [details] [review] [PATCH] Don't hardcode python path Instead, use automake to find it at runtime and put #!@PYTHON@ at the top of itstool.in. Pushed to master. Thanks. The file 'configure.ac' calls 'python' binary, but Arch Linux has Python 2 binary named to 'python2'. This breaks the compilation. Would it be possible to use something more portable, like a $PYTHON variable? |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.