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

Create "binary equal" versions on Windows and Linux #38

Open
StefanOberhumer opened this issue Jan 5, 2024 · 0 comments
Open

Create "binary equal" versions on Windows and Linux #38

StefanOberhumer opened this issue Jan 5, 2024 · 0 comments

Comments

@StefanOberhumer
Copy link

StefanOberhumer commented Jan 5, 2024

Using gzip compression on some customer projects sometimes a rebuild results in a different binary result as the gzip header includes a byte representing the OS the compression was performed on.
(see also RFC1952 https://www.rfc-editor.org/rfc/rfc1952.html#page-8 )
In my case - builds are done under LinuxOS and some different WindowsOS.
So we get a 0x03 for Linux and 0x0A for Windows in the gzip header OS field.

An option for setting the header value of the OS in the gzip header (10th byte of the file) would be helpful!

Btw: It seems the 4 bytes of mtime (modification time) in the header are already set to 0!

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

No branches or pull requests

1 participant