ludo@gnu.org (Ludovic Courtès) writes: > Mathieu Lirzin skribis: > >> * gnu/packages/version-control.scm (reposurgeon): New variable. > > [...] > >> + (add-before 'build 'fix-docbook >> + (lambda* (#:key inputs #:allow-other-keys) >> + (setenv "XML_CATALOG_FILE" >> + (string-append (assoc-ref inputs "docbook-xsl") >> + "/xml/xsl/docbook-xsl-" >> + ,(package-version docbook-xsl) >> + "/manpages/docbook.xsl")) > > Could you add a comment on why this is needed? > Normally, with libxml2 as an input, ‘XML_CATALOG_FILE’ should be > properly initialized. In fact that was not needed, so I have removed this snippet. >> + ;; xsltproc generates random ids when the source document doesn't >> + ;; provide them. This is making the build not reproducible. >> + (substitute* "reposurgeon.xml" > > Eventually we should fix it in libxslt along these lines: > > https://bugzilla.gnome.org/show_bug.cgi?id=758148 > > Could you send an updated patch? After some digging, I have found that the generated IDs were based on their node pointer address in the parse tree. So I have added an additional patch which should be applied in the next release of libxslt.