GithubHelp home page GithubHelp logo

Comments (9)

tgamblin avatar tgamblin commented on September 7, 2024

@lee218llnl we could get rid of 42 characters of that particular path by getting rid of the prefix. e.g., we could install by default into $spack/opt/spack/. The only problem is that you lose human readability that way. That could be solved with Matt's views. I had thought about making a minimal install location, and using views for actually browsing, but it seemed like we could get the best of both worlds.

I know @mplegendre likes the default paths. @mplegendre: any thoughts on this? Looks like the default length for shebang paths in Linux is 128 bytes 👎 http://lxr.free-electrons.com/source/include/uapi/linux/binfmts.h#L18

from spack.

jprotze avatar jprotze commented on September 7, 2024

The alternative would be using some wrapper script to handle oversized
shebangs as in:

http://stackoverflow.com/questions/10813538/shebang-line-limit-in-bash-and-linux-kernel

  • Joachim

Am 09.06.2015 um 13:43 schrieb Todd Gamblin:

@lee218llnl https://github.com/lee218llnl we could get rid of 42
characters of that particular path by getting rid of the prefix. e.g.,
we could install by default into $spack/opt/spack/. The only problem is
that you lose human readability that way. That could be solved with
Matt's views. I had thought about making a minimal install location, and
using views for actually browsing, but it seemed like we could get the
best of both worlds.

I know @mplegendre https://github.com/mplegendre likes the default
paths. @mplegendre https://github.com/mplegendre: any thoughts on
this? Looks like the default length for shebang paths in Linux is 128
bytes 👎
http://lxr.free-electrons.com/source/include/uapi/linux/binfmts.h#L18


Reply to this email directly or view it on GitHub
#54 (comment).

Dipl.-Inf. Joachim Protze

IT Center
Group: High Performance Computing
Division: Computational Science and Engineering
RWTH Aachen University
Seffenter Weg 23
D 52074 Aachen (Germany)
Tel: +49 241 80- 24765
Fax: +49 241 80-624765
[email protected]
www.itc.rwth-aachen.de

from spack.

tgamblin avatar tgamblin commented on September 7, 2024

I think that's more of a pain because we'd have to implement wrapper generation in Spack for everything installed as a script. I suppose I can imagine how to implement that, but it does change the way the package is installed. I worry that this would break assumptions for some packages, though. Imagine a package where the author wants to patch an installed script, but Spack replaces it with a wrapper. I suppose if spack does that only after all build tasks it would be ok, but I still think it might be hard to maintain...

from spack.

cyrush avatar cyrush commented on September 7, 2024

This bit us on chaos5 LLNL LC systems -- the kernel limit is actually 80 chars (after the shebang).

For our path we were getting cut off before the the hash even starts.

from spack.

tgamblin avatar tgamblin commented on September 7, 2024

@cyrush: not sure the kernel limit is actually 80 chars, but that is what is printed out if this error happens. Want to test the fix I pushed? #497

from spack.

cyrush avatar cyrush commented on September 7, 2024

@tgamblin great timing -- we are meeting all day Tuesday to resolve build system issues. I will test this then.

from spack.

mathstuf avatar mathstuf commented on September 7, 2024

I've seen shebangs being rewritten, so this should be fine now?

from spack.

tgamblin avatar tgamblin commented on September 7, 2024

Yes. We've had a number of reports of this being fixed. Reopen if not.

from spack.

cyrush avatar cyrush commented on September 7, 2024

sorry for not reporting back -- we are successfully using the fix

from spack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.