force-disable build with -Werror: LGG 2.0.3 enforce build with -Werror,

and it fails because Debian uses -Wdate-time (for build reproducibility)
and LGG uses __DATE__ and __TIME__.
This commit is contained in:
Yves-Alexis Perez 2017-12-09 21:10:02 +00:00
parent 268927b086
commit 67d91fc663
2 changed files with 7 additions and 1 deletions

3
debian/changelog vendored
View File

@ -9,6 +9,9 @@ lightdm-gtk-greeter (2.0.3-1) UNRELEASED; urgency=medium
* Run wrap-and-sort.
* debian/rules:
- drop call to autotools-dev addon.
- force-disable build with -Werror: LGG 2.0.3 enforce build with -Werror,
and it fails because Debian uses -Wdate-time (for build reproducibility)
and LGG uses __DATE__ and __TIME__.
* debian/contro:
- replace autotools-dev build-dep by debhelper >= 9.20160115.
- update standards version to 4.1.1.

5
debian/rules vendored
View File

@ -4,7 +4,10 @@ export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -Wl,-O1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
override_dh_auto_configure:
dh_auto_configure -- --disable-silent-rules --enable-kill-on-sigterm
dh_auto_configure -- \
--disable-silent-rules \
--enable-kill-on-sigterm \
--disable-Werror
override_dh_install:
dh_install debian/01_debian.conf usr/share/lightdm/lightdm-gtk-greeter.conf.d/