From: Petr Lautrbach <lautrbach@redhat.com>
To: Cathy Hu <cahu@suse.de>, selinux@vger.kernel.org
Cc: selinux@suse.de, Cathy Hu <cahu@suse.de>
Subject: Re: [PATCH] sepolicy/manpage.py: make output deterministic
Date: Wed, 25 Oct 2023 12:35:46 +0200 [thread overview]
Message-ID: <8734xzhtvh.fsf@redhat.com> (raw)
In-Reply-To: <20231025094923.248941-1-cahu@suse.de>
Cathy Hu <cahu@suse.de> writes:
> 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.
Looks good to me, thanks.
We just need you to provide Signed-off-by: tag, see
https://github.com/SELinuxProject/selinux/blob/main/CONTRIBUTING.md#contributing-code
and Developer Certificate of Origin
> ---
> 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.42.0
next prev parent reply other threads:[~2023-10-25 10:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-25 9:49 [PATCH] sepolicy/manpage.py: make output deterministic Cathy Hu
2023-10-25 10:35 ` Petr Lautrbach [this message]
2023-10-25 13:18 ` [PATCH v2] " Cathy Hu
2023-10-31 10:11 ` Petr Lautrbach
2023-11-07 21:39 ` James Carter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734xzhtvh.fsf@redhat.com \
--to=lautrbach@redhat.com \
--cc=cahu@suse.de \
--cc=selinux@suse.de \
--cc=selinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.