Skip to content

Add a .file entry to .s files#7

Merged
r-devulap merged 1 commit intonumpy:mainfrom
bmwiedemann:random
Jul 30, 2025
Merged

Add a .file entry to .s files#7
r-devulap merged 1 commit intonumpy:mainfrom
bmwiedemann:random

Conversation

@bmwiedemann
Copy link
Copy Markdown
Contributor

Add a .file entry to .s files for reproducible builds.

Without this patch, building _multiarray_umath.cpython-312-x86_64-linux-gnu.so with debuginfo contained the random temporary ccXXXXXX.o filenames used by gcc for assembler output.

There are details in
https://bugzilla.opensuse.org/show_bug.cgi?id=1245203#c9

btw: the lines were added with

for f in *.s ; do export f; perl -i -pe 'if(/\.text/) {print "\t.file   \"$ENV{f}\"\n"}' $f ; done

for reproducible builds.

Without this patch, building _multiarray_umath.cpython-312-x86_64-linux-gnu.so
with debuginfo contained the random temporary ccXXXXXX.o filenames used by gcc
for assembler output.

There are details in
https://bugzilla.opensuse.org/show_bug.cgi?id=1245203#c9
Copy link
Copy Markdown
Member

@r-devulap r-devulap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for reporting and fixing it! @bmwiedemann

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.

2 participants