xsltproc and dc:identifier

Carles Pina i Estany carles at pina.cat
Sun Mar 2 07:09:17 GMT 2025


Hi,

I am investigating why debian-history package is not reproducible.

I am checking at the moment the creation of the epub using xsltproc in
this step:

xsltproc --novalid --nonet --xinclude /home/debian/debian-history/xslt/style-epub.xsl /home/debian/debian-history/project-history.en.dbk

if ran twice it creates different files because of the lines such as:

<dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/" id="bookid">_idm45693929660992</dc:identifier>

<dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/" id="bookid">_idm45461544106688</dc:identifier>

But I thought that thanks to:
https://salsa.debian.org/xml-sgml-team/libxslt/-/blob/master/debian/patches/0002-Make-generate-id-deterministic.patch?ref_type=heads

should be deterministic (unsure if that case uses "generate-id" or if
any environment variable needs to be set beforehand).

So, before I dig too much into that: is there any way to make xsltproc
be deterministic?

Do you know of any package of the top of your head that is using
xsltproc in a way that is deterministic?

I've tried / verified setting SOURCE_DATE_EPOCH (was already done),
using faketime and a few more things.

Thank you very much,

-- 
Carles Pina i Estany
https://carles.pina.cat | carles at pina.cat | cpina at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20250302/044de8e4/attachment.sig>


More information about the Reproducible-builds mailing list