From 024c121c844a4ec920133eb3f7e6b6ee8044c0b6 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Sat, 12 Dec 2020 04:05:56 +0000 Original-Patch: https://bugs.debian.org/977177 Subject: [PATCH] Set uid, username, gid, and group name on files in generated tarball. The user and group may otherwise vary between builds on different systems. --- util/meson_aux/skeletonmm-tarball.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/util/meson_aux/skeletonmm-tarball.py b/util/meson_aux/skeletonmm-tarball.py index db9e650..89049b6 100755 --- a/util/meson_aux/skeletonmm-tarball.py +++ b/util/meson_aux/skeletonmm-tarball.py @@ -39,10 +39,18 @@ elif output_file.endswith('.gz'): else: mode = 'w' +def reproducible(tarinfo): + # Set consistent user and group on files in the tar archive + tarinfo.uid = 0 + tarinfo.uname = 'root' + tarinfo.gid = 0 + tarinfo.gname = 'root' + return tarinfo + with tarfile.open(output_file, mode=mode) as tar_file: os.chdir(source_dir) # Input filenames are relative to source_dir. for file in sys.argv[3:]: - tar_file.add(file) + tar_file.add(file, filter=reproducible) # Errors raise exceptions. If an exception is raised, Meson+ninja will notice # that the command failed, despite exit(0). sys.exit(0) -- 2.29.2 kages/iso-codes.scm?id=5488c0ac0659f65ea43cabfafa0c97cdd44fd811'>commitdiff
path: root/gnu/packages/iso-codes.scm
AgeCommit message (Expand)Author
2023-01-08gnu: python-iso3166: Update to 2.1.1....* gnu/packages/iso-codes.scm (python-iso3166): Update to 2.1.1. Liliana Marie Prikler
2022-07-16gnu: iso-codes: Remove input labels....* gnu/packages/iso-codes.scm (iso-codes/official)[native-inputs]: Remove conditional and labels. [inputs]: Remove. Marius Bakke
2022-05-29gnu: Add iso-codes variant for use within Guix....* gnu/packages/iso-codes.scm (iso-codes): Replace with hidden-package that inherits… (iso-codes/official): …this ‘new’ variable with its previous value. * gnu/packages/gtk.scm (gtk+)[inputs]: Use iso-codes/official to prevent mass rebuilds. Tobias Geerinckx-Rice
2022-05-31gnu: Remove python2-iso639....* gnu/packages/iso-codes.scm (python2-iso639): Delete variable. Maxim Cournoyer
2022-05-31gnu: Remove python2-iso3166....* gnu/packages/iso-codes.scm (python2-iso3166): Delete variable. Maxim Cournoyer
2021-09-20gnu: iso-codes: Move inputs to native-inputs when cross-compiling....* gnu/packages/iso-codes.scm (iso-codes)[inputs]: Move "gettext", "perl" and "python" to ... (iso-codes)[native-inputs]: ... here when cross-compiling. Maxime Devos