Bug#1000598: Fail to build with lto

2021-11-25 Thread Alberto Garcia
Control: tags -1 pending

On Thu, Nov 25, 2021 at 07:00:15PM +0100, Sebastien Bacher wrote:

> Webkitgtk fails to build with lto, that's not a problem for Debian
> at the moment but we carry a delta in Ubuntu where LTO is enabled by
> default. The option shouldn't be an issue for Debian and allows us
> to lower the delta and might be useful for Debian as well at some
> point.

Thanks, applied

https://salsa.debian.org/webkit-team/webkit/-/commit/68941ac2c5f22d2f9a2994c1c73a16bf00bdc5dc

Berto



Bug#1000598: Fail to build with lto

2021-11-25 Thread Sebastien Bacher

Package: webkit2gtk
Version: 2.34.2-1
Severity: minor

Dear maintainers,

Webkitgtk fails to build with lto, that's not a problem for Debian at 
the moment but we carry a delta in Ubuntu where LTO is enabled by 
default. The option shouldn't be an issue for Debian and allows us to 
lower the delta and might be useful for Debian as well at some point.


Thanks for considering the attached patch,

Sebastien Bacher


diff -Nru webkit2gtk-2.34.2/debian/changelog webkit2gtk-2.34.2/debian/changelog
--- webkit2gtk-2.34.2/debian/changelog	2021-11-24 15:56:26.0 +0100
+++ webkit2gtk-2.34.2/debian/changelog	2021-11-25 18:51:31.0 +0100
@@ -1,3 +1,11 @@
+webkit2gtk (2.34.2-2) UNRELEASED; urgency=medium
+
+  * debian/rules:
+- explicitly disable lto since when it's on the build is failing,
+  that doesn't impact Debian by default but is an issue on Ubuntu 
+
+ -- Sebastien Bacher   Thu, 25 Nov 2021 18:51:31 +0100
+
 webkit2gtk (2.34.2-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru webkit2gtk-2.34.2/debian/rules webkit2gtk-2.34.2/debian/rules
--- webkit2gtk-2.34.2/debian/rules	2021-11-24 15:56:26.0 +0100
+++ webkit2gtk-2.34.2/debian/rules	2021-11-25 18:51:31.0 +0100
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
 
 include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/buildflags.mk