Add reproducible.patch for normalizing gzip mtime please send the patch upstream OBS-URL: https://build.opensuse.org/request/show/1286168 OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/arandr?expand=0&rev=29
19 lines
623 B
Diff
19 lines
623 B
Diff
Date: 2025-06-16
|
|
Normalize gzip mtime
|
|
for reproducible builds
|
|
|
|
Index: arandr-0.1.11/setup.py
|
|
===================================================================
|
|
--- setup.py
|
|
+++ setup.py
|
|
@@ -111,7 +111,8 @@ class build_man(NoOptionCommand):
|
|
info('compressing man page to %s', gzfile)
|
|
|
|
if not self.dry_run:
|
|
- compressed = gzip.open(gzfile, 'w', 9)
|
|
+ f = open(gzfile, "wb")
|
|
+ compressed = gzip.GzipFile(fileobj=f,mode="wb",filename="",mtime=0)
|
|
compressed.write(manpage)
|
|
compressed.close()
|
|
|