I bumped into this today and also got confused why the Rust package I
was working on had a warning related to Go.
The debhelper *auto* make targets try to guess the buildsystem, and one
of the guesses is the golang buildsystem. When the golang module is
instantiated, it does various environment checks, one of which is,
sub _set_cgo_flags {
my $bf = Dpkg::BuildFlags->new();
$bf->load_config();
if ($bf->has_features("optimize") and
{$bf->get_features("optimize")}->{"lto"}) {
# cgo doesn't support LTO #1013102, https://golang.org/issues/43505
warning("LTO optimize is enabled in buildflags. But cgo doesn't support
it. " .
"LTO flags will be stripped in cgo.");
}
...
}
I think that's a "bug" in Debhelper, since I suppose the `new` methods
should be quiet in general due to how they're used by the guessing
logic.
Specifying the buildsystem explicitly was good enough to get rid of the
warning for me,
debian/rules:
%:
- dh $@
+ dh $@ --buildsystem=meson+ninja
** Also affects: dh-golang (Ubuntu)
Importance: Undecided
Status: New
** Bug watch added: golang.org/issues #43505
https://golang.org/issues/43505
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2076148
Title:
dh-clean issues warning about LTO optimize
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-golang/+bug/2076148/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs