Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add brp-75-ar #10

Merged
merged 1 commit into from Feb 13, 2019
Merged

add brp-75-ar #10

merged 1 commit into from Feb 13, 2019

Conversation

bmwiedemann
Copy link
Member

for normalizing ar archives (.a files) mtime, UID/GID
to facilitate bit-identical reproducible builds.

See https://reproducible-builds.org/ for why this is good.

This approach was suggested by matz in
https://build.opensuse.org/request/show/514997

and seems to work fine in my first tests

@bmwiedemann
Copy link
Member Author

This seems to create problems with a few packages. E.g. gap

objcopy:/home/abuild/rpmbuild/BUILDROOT/gap-4.8.10-0.0.x86_64/usr/share/gap/small/small8/sml1536.a: file format not recognized

@bmwiedemann
Copy link
Member Author

I added a file type check, so that gap's .a file does not confuse it, but ncurses' .a file becomes reproducible.

We could also add a || true to have it never fail.

for normalizing ar archives (.a files) mtime, UID/GID
to facilitate bit-identical reproducible builds.

See https://reproducible-builds.org/ for why this is good.

Ignoring objdump return code, because there are packages like
cross-avr-gcc7 that have .a files for different architectures
that cannot be processed by the build system's objdump.
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.

None yet

2 participants