Sending LTO delta to Debian
Sergio Durigan Junior
sergiodj at ubuntu.com
Thu May 5 21:18:44 UTC 2022
On Thursday, May 05 2022, Andreas Hasenack wrote:
> this came up again in a review, and I wanted to ask a broader audience.
> How to we send LTO related delta to Debian, given that Debian isn't
> using LTO (yet)?
TBH I think it depends on the Debian maintainer. I myself will gladly
accept a patch disabling LTO in Debian if it's been identified that LTO
will break my package, even if it's just to make things easier for the
derivative distro's (Ubuntu usually, but can be others) maintainer
(given that the patch will be a no-op in Debian, as you mentioned). But
I'm talking about a simple d/rules patch that will just touch
> Case in point was the ust package, which has this bit part of
> the delta (just showing the first hunk):
> @@ -1,5 +1,5 @@
> liblttng-ust-python-agent.so.1 liblttng-ust-python-agent1 #MINVER#
> * Build-Depends-Package: liblttng-ust-dev
> - __start_lttng_ust_tracepoints_ptrs at Base 2.13.0
> - __stop_lttng_ust_tracepoints_ptrs at Base 2.13.0
> + (optional=lto)__start_lttng_ust_tracepoints_ptrs at Base 2.13.0
> + (optional=lto)__stop_lttng_ust_tracepoints_ptrs at Base 2.13.0
> Is this upstreamable to Debian as is? I know this depends most of the
> time on the maintainer, but in general what would be our arguments?
> Does it change the behavior of package building when lto is not used?
> In a non-lto case, would the disappearance of those symbols be caught?
... this, OTOH, is more involved.
Using "=XYZ" after "optional", in my experience, is only informational.
If a symbol disappears, it will be reported even if it's marked as
But dpkg-gensymbols won't make the distinction between "this symbol
disappeared because of LTO" vs. "this symbol disappeared, period".
With my DD hat on, I'd say that I probably wouldn't be happy accepting
such a patch because it's much easier to introduce problems due to the
fact that the symbol will be marked as optional regardless of the
reason, but really shouldn't.
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14
More information about the ubuntu-devel