Blame SOURCES/0001-Please-make-the-output-reproducible.patch

c7a88b
From 06eda7ca8fa42c654fd2ad861c1c43c1b395bc57 Mon Sep 17 00:00:00 2001
c7a88b
From: Chris Lamb <lamby@debian.org>
c7a88b
Date: Sat, 7 Dec 2019 13:56:24 +0000
c7a88b
Subject: [PATCH] Please make the output reproducible
c7a88b
MIME-Version: 1.0
c7a88b
Content-Type: text/plain; charset=UTF-8
c7a88b
Content-Transfer-Encoding: 8bit
c7a88b
c7a88b
Whilst working on the Reproducible Builds effort [0] we noticed that
c7a88b
gtk-doc generates unreproducible output.
c7a88b
c7a88b
There will likely be more issues but this one is at least fairly
c7a88b
simple in that it iterates over a set structure when printing
c7a88b
some .devhelp2 headers, for example:
c7a88b
c7a88b
│ │ │ │ -    <sub name="Index of new API in 0.99.5" link="api-index-0-99-5.html"/>
c7a88b
│ │ │ │ -    <sub name="Index of new API in 0.9.22" link="api-index-0-9-22.html"/>
c7a88b
│ │ │ │      <sub name="Index of new API in 0.9.0" link="api-index-0-9-0.html"/>
c7a88b
│ │ │ │ -    <sub name="Index of new API in 0.9.1" link="api-index-0-9-1.html"/>
c7a88b
│ │ │ │ +    <sub name="Index of new API in 0.9.19" link="api-index-0-9-19.html"/>
c7a88b
│ │ │ │      <sub name="Index of new API in 0.99.8" link="api-index-0-99-8.html"/>
c7a88b
│ │ │ │ +    <sub name="Index of new API in 0.99.5" link="api-index-0-99-5.html"/>
c7a88b
│ │ │ │      <sub name="Index of new API in 1.0" link="api-index-1-0.html"/>
c7a88b
│ │ │ │ -    <sub name="Index of new API in 0.9.19" link="api-index-0-9-19.html"/>
c7a88b
│ │ │ │      <sub name="Index of new API in 0.9.2" link="api-index-0-9-2.html"/>
c7a88b
│ │ │ │ +    <sub name="Index of new API in 0.9.1" link="api-index-0-9-1.html"/>
c7a88b
│ │ │ │ +    <sub name="Index of new API in 0.9.22" link="api-index-0-9-22.html"/>
c7a88b
c7a88b
This was originally filed in Debian as #946311 [1].
c7a88b
c7a88b
 [0] https://reproducible-builds.org/
c7a88b
 [1] https://bugs.debian.org/946331
c7a88b
c7a88b
Signed-off-by: Chris Lamb <lamby@debian.org>
c7a88b
---
c7a88b
 gtkdoc/mkdb.py | 2 +-
c7a88b
 1 file changed, 1 insertion(+), 1 deletion(-)
c7a88b
c7a88b
diff --git a/gtkdoc/mkdb.py b/gtkdoc/mkdb.py
c7a88b
index 9404452..9184567 100644
c7a88b
--- a/gtkdoc/mkdb.py
c7a88b
+++ b/gtkdoc/mkdb.py
c7a88b
@@ -2491,7 +2491,7 @@ def OutputBook(main_file, book_top, book_bottom, obj_tree):
c7a88b
     <xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
c7a88b
   </index>
c7a88b
 ''')
c7a88b
-        for version in set(Since.values()):
c7a88b
+        for version in sorted(set(Since.values())):
c7a88b
             dash_version = version.replace('.', '-')
c7a88b
             OUTPUT.write('''  <index id="api-index-%s" role="%s">
c7a88b
     <title>Index of new API in %s</title>
c7a88b
-- 
c7a88b
2.26.2
c7a88b