Source: postgresql-filedump
Version: 12.0-2
Severity: normal
Tags: patch

Dear Maintainer,

I don't think Debian currently runs autopkgtests on any big endian
architecture but Ubuntu does (on s390x) and the postgresql-filedump
tests fail. On inspection this is because the tests use an include
pg_dump file, and those are endian dependent. I've uploaded the attached
patch to Ubuntu, which just skips the test on a big endian system.

Cheers,
mwh

-- System Information:
Debian Release: bullseye/sid
  APT prefers focal-updates
  APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal'), 
(400, 'focal-proposed'), (100, 'focal-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-33-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru postgresql-filedump-12.0/debian/changelog 
postgresql-filedump-12.0/debian/changelog
--- postgresql-filedump-12.0/debian/changelog   2019-11-29 23:53:23.000000000 
+1300
+++ postgresql-filedump-12.0/debian/changelog   2020-06-09 12:12:25.000000000 
+1200
@@ -1,3 +1,9 @@
+postgresql-filedump (12.0-2ubuntu1) groovy; urgency=medium
+
+  * d/tests/installcheck: skip test on big endian systems.
+
+ -- Michael Hudson-Doyle <michael.hud...@ubuntu.com>  Tue, 09 Jun 2020 
12:12:25 +1200
+
 postgresql-filedump (12.0-2) unstable; urgency=medium
 
   * tests: Depend on postgresql-server-dev-all for pg_config.
diff -Nru postgresql-filedump-12.0/debian/control 
postgresql-filedump-12.0/debian/control
--- postgresql-filedump-12.0/debian/control     2019-11-29 23:53:23.000000000 
+1300
+++ postgresql-filedump-12.0/debian/control     2020-06-09 12:12:25.000000000 
+1200
@@ -1,7 +1,8 @@
 Source: postgresql-filedump
 Section: database
 Priority: optional
-Maintainer: Debian PostgreSQL Maintainers <team+postgre...@tracker.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian PostgreSQL Maintainers 
<team+postgre...@tracker.debian.org>
 Uploaders: Michael Meskes <mes...@debian.org>, Christoph Berg <m...@debian.org>
 Build-Depends: debhelper (>= 9), postgresql-server-dev-all
 Standards-Version: 4.4.0
diff -Nru postgresql-filedump-12.0/debian/tests/installcheck 
postgresql-filedump-12.0/debian/tests/installcheck
--- postgresql-filedump-12.0/debian/tests/installcheck  2019-11-29 
03:07:20.000000000 +1300
+++ postgresql-filedump-12.0/debian/tests/installcheck  2020-06-09 
12:12:15.000000000 +1200
@@ -1,5 +1,11 @@
 #!/bin/sh
 
+if [ $(lscpu | grep "Byte Order" | awk '{ print $3; }') = "Big" ]; then
+    # The testdata is a dump file generated on a little endian system
+    # and dump files are endian-dependent.
+    exit 0
+fi
+
 if ! pg_virtualenv make installcheck; then
   cat regression.diffs
   exit 1

Reply via email to