Skip to content

Pad binary test replacement with os.sep instead of b\0#15311

Closed
gartung wants to merge 3 commits intodevelopfrom
gartung-build-cache-replace-text-bin-fix
Closed

Pad binary test replacement with os.sep instead of b\0#15311
gartung wants to merge 3 commits intodevelopfrom
gartung-build-cache-replace-text-bin-fix

Conversation

@gartung
Copy link
Copy Markdown
Member

@gartung gartung commented Mar 3, 2020

When replacing text in binary files the difference in the old path and the new path is padded with nulls. This leads to extraneous nulls in perl @inc path as shown in the attached log. The suggested solution of padding with '/' or os.sep did not work. Padding with spaces might work.

spack-build-out.txt

@gartung
Copy link
Copy Markdown
Member Author

gartung commented Mar 4, 2020

Padding with anything other than b'\0' results is a size change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant