--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at https://secure-web.cisco.com/12yqwu2RoOrv1oQ6kbdsf-ThnQm18VlJQ5PvR1Xqr-0cfrkYq72yxiU77g5iKAIKe9jzxhrTYk1QkAHffBJRYfDSAJvP2RasqORySoebaBFkLfQxpoIZ7vi5FlY1lCzRpmE5EOuAP0Y3Ls8Dm4ZDDsaOPi7Bxco5RqP-2wf-OcCpkLUJcsrqoSfpuNwu-PFne_1iHfNGXfEqW55G-4UCIvkihKt_jLBHyittUQjW7a1ppyCPfqsTmV_OFXrhwlLoIVkWvrcHhTEUbW-8YsiOvmz9SMQ9ASI02r3S-6sSUu178XaSJ36EKvW1xr5_GSTLv1JGl5xWL2-oDAljtuOZtSZxesKiIl-tvcAwTZmJP5Ri5m6IZUf4Ow0R_9AJXAqtA/https%3A%2F%2Fgroups.google.com%2Fgroup%2Fspack.
For more options, visit https://secure-web.cisco.com/1sbLkKTgKT3Fba66n-fHy1n8D35omu6vpa1UjsbY-B3bUpmAaCayK939xFqOxu-JJb1eHQND1I4nAYKDvsqWxx4PVbW-lZe-6NwSUvnGYFXgWnWSo0T4BEe5UWv_FP3J-QBT4sd2Ku_LJ93SlASVEHFeCv7di-vVe-tvTmZa-tD9en03dAh2EUxezjiZVSZFnjOiik5rGUbn_65ZSn77Dmj7YwwgpYG6rbdfdNuebjVD8C-OGfUTP82g0HXCs1WbCu_4x9tlE2U_x_GjoX4mCq2aLUMs-u9tL4X_Siy7YfOq0SOxmqXzBISyMQZa-lchwGWvdzy1Y3d_wgszT2XCYT5u2xS95g-HPIZn7QQONIQx3lUP8m8lcg7tC7gHGpCY7/https%3A%2F%2Fgroups.google.com%2Fd%2Foptout.
Visit this group at https://secure-web.cisco.com/1rirdXmamJ13AtnFGfcjPU8bYzdbCppcLqlEy-n2bIVo3scfYNemhEe8mSmy86MSoaWYORog7w7d1VbVMusMea-660bx2TPEOlUlZowPeNfY7Xq4ksxZVZSnEs6J-VgkN7lLgX-Mls3rda01tfcy8lH_slz78cfQV5bWGNwpWsRpRL1SjHk1e7OqnHJziQNXF0urh5bw2RfKYgBmwbTtXgoh6TLL20dVtvFa2sGHYJe_VT2N6yXz37GtDWH0z4qhjhTiNsBI0WK0MQMT30DjNA_eKsaVLUtmMTnLBkxOgrMpjt7PP4UafTk2SuZBs6GqXlHo589XSYLsxM2bTwlguSfHgr92nK7fwKynSCeCrMoiQH3aeKvrpYC1bijBHNLM3/https%3A%2F%2Fgroups.google.com%2Fgroup%2Fspack.
For more options, visit https://secure-web.cisco.com/1zg84GlDQ7jFQ_avFvabjXc696qlMcdYSdBLC8JaVrC3-qHmK9lX15zQsQ3be3-70YYWHOHiSeSCAXJx7EyuSp65vPu_tuDio_iLUk6suCbS9KpYu00BzLBiuaw1SCAwJ_iie1S4DsYEeiCu5QHoam3-KV0mf441i7xR33OD3RY2jls_pQshu_-xXhQT46041BNktWipKPzQsrjC4TbNFj6tydZi1ATlhHbov35RboqiNyPnt7kqLkiW_QFvj8kK6tRLyaTQVqgG-KE4gE0EhlFcUjiNpwd3cYYokSeUjHIz6CVY2f0F9O8C5OX9f9t3WH-gwIFo55gp0LMcCI68121RYuAdpN03PRw-vreQe2oC6JBGCgkDN1aoFb33q88I_/https%3A%2F%2Fgroups.google.com%2Fd%2Foptout.
Great! Merged.
It might need a little more polish, but basically it adds a script `sbang` at the top level, alongside spack. After install, spack searches through the $prefix/bin directory for any shebang'd scripts, and it inserts a line like this above the real interpreter:#!/bin/bash /usr/projects/codes/vendors/spack.github/bin/sbang#!/usr/projects/codes/vendors/spack.github/opt/spack/linux-x86_64/gcc-4.4.7/python-2.7.11-qgvqwaxahqyr2vhs47z3xhdgymuc4lzz/bin/python...`sbang`, when invoked, grabs the real interpreter and runs it. Linux seems like it is happy with interpreters that are themselves shebang scripts, but Mac OS X wants a binary, so you have to have the #!/bin/bash there too. In your case the first line is only 62 characters, which seems ok.This might be of use to the virtualenv folks you mention, as they don't seem to have a real solution to the problem. Maybe I'll ping them if it works in Spack.Opinions welcome.-Todd
From: <sp...@googlegroups.com> on behalf of Kelly Thompson <k...@eklaj.org>
Date: Thursday, March 3, 2016 at 7:34 PM
To: Spack <sp...@googlegroups.com>
Subject: [spack] Shebang line limit
Because of spack's deep paths with long file names, I am running into the shebang line limit [1,2] in scripts installed by spack. For example, when I installed py-sphinx using spack. The main script 'sphinx-build' has this path as the first line in the python script:
#!/usr/projects/codes/vendors/spack.github/opt/spack/linux-x86_64/gcc-4.4.7/python-2.7.11-qgvqwaxahqyr2vhs47z3xhdgymuc4lzz/bin/python
This path is longer than the 79 char limit used by my system, making the script unusable with errors similar to this:
/bin/sh: /path/to/sphinx-build: /usr/projects/codes/vendors/spack.github/opt/spack/linux-x86_64/gcc-4.4.7/py: bad interpreter
Has the spack development team already considered this issue? Are there any solutions readily available (other than installing spack closer to /)? The references below provide various tricks to solve the problem that use intermediate shell scripts, but I think this would be difficult to implement.
Thoughts?
[1] http://stackoverflow.com/questions/10813538/shebang-line-limit-in-bash-and-linux-kernel
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at https://secure-web.cisco.com/12yqwu2RoOrv1oQ6kbdsf-ThnQm18VlJQ5PvR1Xqr-0cfrkYq72yxiU77g5iKAIKe9jzxhrTYk1QkAHffBJRYfDSAJvP2RasqORySoebaBFkLfQxpoIZ7vi5FlY1lCzRpmE5EOuAP0Y3Ls8Dm4ZDDsaOPi7Bxco5RqP-2wf-OcCpkLUJcsrqoSfpuNwu-PFne_1iHfNGXfEqW55G-4UCIvkihKt_jLBHyittUQjW7a1ppyCPfqsTmV_OFXrhwlLoIVkWvrcHhTEUbW-8YsiOvmz9SMQ9ASI02r3S-6sSUu178XaSJ36EKvW1xr5_GSTLv1JGl5xWL2-oDAljtuOZtSZxesKiIl-tvcAwTZmJP5Ri5m6IZUf4Ow0R_9AJXAqtA/https%3A%2F%2Fgroups.google.com%2Fgroup%2Fspack.
For more options, visit https://secure-web.cisco.com/1sbLkKTgKT3Fba66n-fHy1n8D35omu6vpa1UjsbY-B3bUpmAaCayK939xFqOxu-JJb1eHQND1I4nAYKDvsqWxx4PVbW-lZe-6NwSUvnGYFXgWnWSo0T4BEe5UWv_FP3J-QBT4sd2Ku_LJ93SlASVEHFeCv7di-vVe-tvTmZa-tD9en03dAh2EUxezjiZVSZFnjOiik5rGUbn_65ZSn77Dmj7YwwgpYG6rbdfdNuebjVD8C-OGfUTP82g0HXCs1WbCu_4x9tlE2U_x_GjoX4mCq2aLUMs-u9tL4X_Siy7YfOq0SOxmqXzBISyMQZa-lchwGWvdzy1Y3d_wgszT2XCYT5u2xS95g-HPIZn7QQONIQx3lUP8m8lcg7tC7gHGpCY7/https%3A%2F%2Fgroups.google.com%2Fd%2Foptout.
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at https://secure-web.cisco.com/1rirdXmamJ13AtnFGfcjPU8bYzdbCppcLqlEy-n2bIVo3scfYNemhEe8mSmy86MSoaWYORog7w7d1VbVMusMea-660bx2TPEOlUlZowPeNfY7Xq4ksxZVZSnEs6J-VgkN7lLgX-Mls3rda01tfcy8lH_slz78cfQV5bWGNwpWsRpRL1SjHk1e7OqnHJziQNXF0urh5bw2RfKYgBmwbTtXgoh6TLL20dVtvFa2sGHYJe_VT2N6yXz37GtDWH0z4qhjhTiNsBI0WK0MQMT30DjNA_eKsaVLUtmMTnLBkxOgrMpjt7PP4UafTk2SuZBs6GqXlHo589XSYLsxM2bTwlguSfHgr92nK7fwKynSCeCrMoiQH3aeKvrpYC1bijBHNLM3/https%3A%2F%2Fgroups.google.com%2Fgroup%2Fspack.
For more options, visit https://secure-web.cisco.com/1zg84GlDQ7jFQ_avFvabjXc696qlMcdYSdBLC8JaVrC3-qHmK9lX15zQsQ3be3-70YYWHOHiSeSCAXJx7EyuSp65vPu_tuDio_iLUk6suCbS9KpYu00BzLBiuaw1SCAwJ_iie1S4DsYEeiCu5QHoam3-KV0mf441i7xR33OD3RY2jls_pQshu_-xXhQT46041BNktWipKPzQsrjC4TbNFj6tydZi1ATlhHbov35RboqiNyPnt7kqLkiW_QFvj8kK6tRLyaTQVqgG-KE4gE0EhlFcUjiNpwd3cYYokSeUjHIz6CVY2f0F9O8C5OX9f9t3WH-gwIFo55gp0LMcCI68121RYuAdpN03PRw-vreQe2oC6JBGCgkDN1aoFb33q88I_/https%3A%2F%2Fgroups.google.com%2Fd%2Foptout.
--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at https://secure-web.cisco.com/1IDtL1Aq_Hkb8-JnhAaRbw0vDn1f0EIrXMgMt3otZh1Qzg_WybkITKUbH_sALQvnU6n8JdpF_9Subw00EuMh42Bz3-YfBLySbOG_Ob1uaH5Dy9zQYIJBhyz6vxR4snlaa0h-WFNlPn21QNaw3iWM5khWX3kUktJUD8_YeBDHw6zJXCF1YkfulRynVd9Gk-DI7jYydSMI2LlfNSqGUTho842Cm4AViRyRIU-zf8-RPn-AQXqbffu1f90-nN7y74Fy_SVW3W77GwYxjHLDdR8CT70GkPnybn-jT_xBAyyG2H86ZpfeqhTvG6SUAr242Koqxz5YTVWY9H1gwpWVgWRhkHF5FrwEeYP8g7SaHWCebLg43vTvCRDGw3AtVNp6RmMkD/https%3A%2F%2Fgroups.google.com%2Fgroup%2Fspack.
For more options, visit https://secure-web.cisco.com/13sJQyDA-PYNYhapndNsvQJgng50fA8LTNfStBqyzOyXWc8Gh5PKwNbg1sm1ye1O9q0YKsyyEdDdCqHEHaWYhmIjoDPzdlVA42v3cm2hD-Qar0Ce2sMaveNc4lqY2A8HvNeP4-GQvKLSMxjiVc9qj6_vU8QgyEZHtc9n2XsPKTNjdt8QTAccyq9qOMs33SAzSK-DNCgTWzavW6eSBRxhNcOgjTnC1jzq-3hX4btfs0Ggjl2jK5NTluKmVqZ-2lrIPr2bLSimF2feIOBWA8XzABIjECnJoeT3Sn09wvUtUl2iofSwR9Hjp00xtftutOsbMsLMkUi6rX7aHe5PEk2xQTd6Kwd6emPwUOmT-ZndiQywLhFy6RaUCKvbO6QbsYZm-/https%3A%2F%2Fgroups.google.com%2Fd%2Foptout.