Projects
openEuler:22.03:LTS:LoongArch
policycoreutils
_service:tar_scm_kernel_repo:backport-sepolicy-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:backport-sepolicy-manpage.py-make-output-deterministic.patch of Package policycoreutils
From 84e0884260c550ef840de6d09573444d93fb209a Mon Sep 17 00:00:00 2001 From: Cathy Hu <cahu@suse.de> Date: Wed, 25 Oct 2023 15:18:58 +0200 Subject: [PATCH] sepolicy/manpage.py: make output deterministic The list entries in the alphabetically grouped dict are not sorted, which results in non-deterministic output for index.html. Sort entries of those lists to make the output deterministic to be able to have reproducible builds. See https://reproducible-builds.org/ for reasoning. This patch was done while working on reproducible builds for openSUSE. Signed-off-by: Cathy Hu <cahu@suse.de> Acked-by: Petr Lautrbach <lautrbach@redhat.com> --- python/sepolicy/sepolicy/manpage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sepolicy/sepolicy/manpage.py b/python/sepolicy/sepolicy/manpage.py index a488dcbf..62999019 100755 --- a/python/sepolicy/sepolicy/manpage.py +++ b/python/sepolicy/sepolicy/manpage.py @@ -156,7 +156,7 @@ def get_alphabet_manpages(manpage_list): if j.split("/")[-1][0] == i: temp.append(j.split("/")[-1]) - alphabet_manpages[i] = temp + alphabet_manpages[i] = sorted(temp) return alphabet_manpages -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.