Project

General

Profile

Actions

Bug #1361

closed

lttng: Fix reproducibility issues

Added by Alexander Kanavin over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
10/21/2022
Due date:
% Done:

100%

Estimated time:

Description

Yocto has added a patch to fix reproducibility issues:
https://git.yoctoproject.org/poky/tree/meta/recipes-kernel/lttng/lttng-tools/determinism.patch

The description from RP is: =======
Add a hack to hardcode in specific rpaths which we then remove,
allowing the build to be reproducible.

This is a bit ugly. Specifing abs_builddir as an RPATH is plain wrong when
cross compiling. Sadly, removing the rpath makes libtool/automake do
weird things and breaks the build as shared libs are no longer generated.

We already try and delete the RPATH at do_install with chrpath however
that does leave the path in the string table so it doesn't help us
with reproducibility.

Instead, hack in a bogus but harmless path, then delete it later in
our do_install. Ultimately we may want to pass a specific path to use
to configure if we really do need to set an RPATH at all. It is unclear
to me whether the tests need that or not.

Fixes reproducibility issues for lttng-tools.

Upstream-Status: Pending [needs discussion with upstream about the correct solution] ====

And so this bug is created so that the discussion can take place :-)

Actions

Also available in: Atom PDF