[Git][debian-gis-team/postgis][master] Disable LTO on i386 instead of ignoring test failures. https://trac.osgeo.org/postgis/ticket/5448
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Thu Jul 27 07:17:30 BST 2023
Bas Couwenberg pushed to branch master at Debian GIS Project / postgis
Commits:
f2a44aef by Bas Couwenberg at 2023-07-27T08:17:18+02:00
Disable LTO on i386 instead of ignoring test failures. https://trac.osgeo.org/postgis/ticket/5448
- - - - -
3 changed files:
- debian/changelog
- debian/rules
- debian/tests/test-extension-creation
Changes:
=====================================
debian/changelog
=====================================
@@ -6,6 +6,8 @@ postgis (3.3.3+dfsg-4) UNRELEASED; urgency=medium
https://trac.osgeo.org/postgis/ticket/5448
* Add patch to fix FTBFS on powerpc architectures.
https://trac.osgeo.org/postgis/ticket/5450
+ * Disable LTO on i386 instead of ignoring test failures.
+ https://trac.osgeo.org/postgis/ticket/5448
-- Bas Couwenberg <sebastic at debian.org> Thu, 27 Jul 2023 07:39:16 +0200
=====================================
debian/rules
=====================================
@@ -10,6 +10,10 @@ export DH_OPTIONS
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+ifneq (,$(filter $(DEB_BUILD_ARCH),i386))
+export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
+endif
+
# Don't fail when d/control doesn't match template
export PG_UPDATECONTROL=yes
@@ -18,7 +22,7 @@ include /usr/share/dpkg/pkg-info.mk
include /usr/share/postgresql-common/pgxs_debian_control.mk
# Ignore testsuite failures on these architectures
-IGNORE_TEST_FAILURE_ARCHS = i386 mips mips64el mipsel s390x alpha hppa hurd-i386 kfreebsd-i386 powerpc ppc64 sparc64
+IGNORE_TEST_FAILURE_ARCHS = mips mips64el mipsel s390x alpha hppa hurd-i386 kfreebsd-i386 powerpc ppc64 sparc64
ifneq (,$(filter $(DEB_BUILD_ARCH),$(IGNORE_TEST_FAILURE_ARCHS)))
TEST_FAIL_COMMAND = echo "Ignoring test failures"
else
=====================================
debian/tests/test-extension-creation
=====================================
@@ -8,7 +8,7 @@ unset LC_ALL LANGUAGE
ARCH="$(dpkg-architecture -qDEB_BUILD_ARCH)"
case $ARCH in
- armel|armhf|i386|mips|mips64el|mipsel|s390x|alpha|hppa|hurd-i386|kfreebsd-i386|powerpc|ppc64|sparc64)
+ armel|armhf|mips|mips64el|mipsel|s390x|alpha|hppa|hurd-i386|kfreebsd-i386|powerpc|ppc64|sparc64)
echo "Ignoring test failures on problematic architectures"
TEST_FAIL_EXITCODE=77 ;;
*)
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/f2a44aef0a925a993ccb7f3b42cc75794fdfa6c4
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/f2a44aef0a925a993ccb7f3b42cc75794fdfa6c4
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20230727/fae37861/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list