Skip to content

binary_distribution.py: stop relocation old /bin/bash sbang shebang#48502

Merged
alalazo merged 2 commits intodevelopfrom
hs/fix/remove-old-sbang-relocation-code
Jan 13, 2025
Merged

binary_distribution.py: stop relocation old /bin/bash sbang shebang#48502
alalazo merged 2 commits intodevelopfrom
hs/fix/remove-old-sbang-relocation-code

Conversation

@haampie
Copy link
Copy Markdown
Member

@haampie haampie commented Jan 10, 2025

On top of #48488.

This PR removes old relocation of #!/bin/bash <path to spack>/bin/sbang shebang lines. Old sbang was basically not relocatable since it made packages have a dependency on Spack itself, not reflected in the DAG. This behavior was dropped 5 years ago in Spack v0.16, so it should be fine to drop by now.

That allows a big cleanup of the relocation logic, where relocation simplifies to a single, ordered prefix to prefix mapping.

@spackbot-app spackbot-app bot added binary-packages core PR affects Spack core functionality sbang tests General test capability(ies) labels Jan 10, 2025
@haampie haampie force-pushed the hs/fix/remove-old-sbang-relocation-code branch 2 times, most recently from 3bb0f91 to 9e947e8 Compare January 10, 2025 10:27
@haampie haampie force-pushed the hs/fix/remove-old-sbang-relocation-code branch 3 times, most recently from c7fe060 to 64ad26b Compare January 10, 2025 10:42
and simplify the prefix to prefix mapping and relocation code as a
result
@haampie haampie force-pushed the hs/fix/remove-old-sbang-relocation-code branch from 64ad26b to 2f1f936 Compare January 10, 2025 11:00
@alalazo alalazo merged commit 064e709 into develop Jan 13, 2025
@alalazo alalazo deleted the hs/fix/remove-old-sbang-relocation-code branch January 13, 2025 08:30
mtaillefumier pushed a commit to mtaillefumier/spack that referenced this pull request Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

binary-packages core PR affects Spack core functionality sbang tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants