[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#875847: qttools5-dev-tools: .qhc files not reproducible



Hi Laurent,

> It seems that qcollectiongenerator is generating files that are
> containing the creation time of the qhc file (LastRegisterTime and
> CreationTime), making them non-reproducible.

Curiously, I don't see that when I build locally. But I *do* see:

  - The buildpath being leaked into ".index" files. This is fixed with
    the attached patch.

  - Some variation in the binary, not looked into.

Hope that helps a little.


Best wishes,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible_build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible_build.patch	2017-09-15 15:52:48.740202062 +0100
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby@debian.org>
+Last-Update: 2017-09-15
+
+--- qttools-opensource-src-5.9.1.orig/src/qdoc/qdocindexfiles.cpp
++++ qttools-opensource-src-5.9.1/src/qdoc/qdocindexfiles.cpp
+@@ -995,10 +995,6 @@ bool QDocIndexFiles::generateIndexSectio
+     const Location& declLocation = node->declLocation();
+     if (!declLocation.fileName().isEmpty())
+         writer.writeAttribute("location", declLocation.fileName());
+-    if (!declLocation.filePath().isEmpty()) {
+-        writer.writeAttribute("filepath", declLocation.filePath());
+-        writer.writeAttribute("lineno", QString("%1").arg(declLocation.lineNo()));
+-    }
+ 
+     if (!node->since().isEmpty()) {
+         writer.writeAttribute("since", node->since());
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2017-09-15 15:29:30.377680344 +0100
@@ -0,0 +1 @@
+reproducible_build.patch

Reply to: