Merge ~liushuyu-011/ubuntu/+source/libzstd:ubuntu/devel into ubuntu/+source/libzstd:ubuntu/devel

Proposed by Zixing Liu
Status: Needs review
Proposed branch: ~liushuyu-011/ubuntu/+source/libzstd:ubuntu/devel
Merge into: ubuntu/+source/libzstd:ubuntu/devel
Diff against target: 102 lines (+38/-7)
6 files modified
debian/changelog (+6/-0)
debian/tests/control (+7/-7)
debian/tests/test-cmake (+7/-0)
debian/tests/ztest/cmake_i386 (+1/-0)
debian/tests/ztest/pkg-make/Makefile (+6/-0)
debian/tests/ztest/programs.toml (+11/-0)
Reviewer Review Type Date Requested Status
Steve Langasek (community) Needs Fixing
Lucas Kanashiro (community) Needs Information
git-ubuntu import Pending
Review via email: mp+438588@code.launchpad.net

Description of the change

This merge proposal fixes the tests under i386 using some workarounds but without skipping any of the tests.

To post a comment you must log in.
Revision history for this message
Jeremy BĂ­cha (jbicha) wrote :

Ubuntu's libzstd packaging is currently in sync with Debian. Could you propose this to Debian?

https://salsa.debian.org/pkg-rpm-team/libzstd

Revision history for this message
Simon Chopin (schopin) wrote :

Hi Zixing,

Thanks for the contribution.

Is this still needed? There's been a new sync from Debian on this package that addresses some test failures seemingly related to 32-bit ints.

If you still want this merged, it'd be nice to have a changelog entry, ideally giving some more context as to what was broken in the first place.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) :
review: Needs Information
Revision history for this message
Zixing Liu (liushuyu-011) wrote :

> Ubuntu's libzstd packaging is currently in sync with Debian. Could you propose this to Debian?

I think I will propose this to Debian.

> There's been a new sync from Debian on this package that addresses some test failures seemingly related to 32-bit ints.

This new sync did not fix the test failures with i386, where the compiler choice was incorrect.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you, Zixing. Since you're going to be working directly with the Debian maintainer, do you mind withdrawing/closing this MP? If you can't do that, then please remove the Ubuntu Sponsors review slot. Thanks.

Revision history for this message
Steve Langasek (vorlon) wrote :

Changes such as this do NOT need to go via Debian first. This is in the sponsorship queue to be uploaded to Ubuntu, and we should not be redirecting contributors to land such changes in Debian first, particularly when they concern architectural differences between Debian and Ubuntu (autopkgtests on i386 pass in Debian, and not in Ubuntu because i386 is a partial arch for us).

Our policy is to forward changes to Debian and try to reduce the delta from Debian where possible, not to block improving Ubuntu on getting agreement from Debian first.

review: Needs Fixing

Unmerged commits

ea0efdc... by Zixing Liu

d/tests: fix tests on i386

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 535bde4..be4e48b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
1libzstd (1.5.4+dfsg2-5ubuntu1) unstable; urgency=medium
2
3 * Fix the autopkgtest on i386 when running from a x86_64 host system
4
5 -- Zixing Liu <zixing.liu@canonical.com> Fri, 23 Jun 2023 13:50:34 -0600
6
1libzstd (1.5.4+dfsg2-5) unstable; urgency=medium7libzstd (1.5.4+dfsg2-5) unstable; urgency=medium
28
3 * Add the 0021-tests-newline patch to fix a very rarely occurring bug in9 * Add the 0021-tests-newline patch to fix a very rarely occurring bug in
diff --git a/debian/tests/control b/debian/tests/control
index d656628..b9819b9 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -6,19 +6,19 @@ Depends:
6 @,6 @,
7 build-essential,7 build-essential,
8 pkgconf,8 pkgconf,
9 python3,9 python3:any,
10 python3-click,10 python3-click:all,
11 python3-typedload,11 python3-typedload:all,
12Restrictions: allow-stderr12Restrictions: allow-stderr
13Features: test-name=build-pkg-config13Features: test-name=build-pkg-config
1414
15Test-Command: env PYTHONPATH="$(pwd)/debian/tests/python" python3 -B -u -m check_build -c debian/tests/ztest/programs.toml -v -- cmake15Test-Command: "$(pwd)"/debian/tests/test-cmake
16Depends:16Depends:
17 @,17 @,
18 build-essential,18 build-essential,
19 cmake,19 cmake,
20 python3,20 python3:any,
21 python3-click,21 python3-click:all,
22 python3-typedload,22 python3-typedload:all,
23Restrictions: allow-stderr23Restrictions: allow-stderr
24Features: test-name=build-cmake24Features: test-name=build-cmake
diff --git a/debian/tests/test-cmake b/debian/tests/test-cmake
25new file mode 10075525new file mode 100755
index 0000000..ec4391b
--- /dev/null
+++ b/debian/tests/test-cmake
@@ -0,0 +1,7 @@
1#!/bin/bash -e
2
3suffix=''
4if [[ "$DEB_HOST_ARCH" = 'i386' ]]; then
5 suffix='_i386'
6fi
7PYTHONPATH="$(pwd)/debian/tests/python" python3 -B -u -m check_build -c debian/tests/ztest/programs.toml -v -- cmake"$suffix"
diff --git a/debian/tests/ztest/cmake_i386 b/debian/tests/ztest/cmake_i386
0new file mode 1200008new file mode 120000
index 0000000..b6868d4
--- /dev/null
+++ b/debian/tests/ztest/cmake_i386
@@ -0,0 +1 @@
1cmake
0\ No newline at end of file2\ No newline at end of file
diff --git a/debian/tests/ztest/pkg-make/Makefile b/debian/tests/ztest/pkg-make/Makefile
index d2f343f..282a1b9 100644
--- a/debian/tests/ztest/pkg-make/Makefile
+++ b/debian/tests/ztest/pkg-make/Makefile
@@ -27,6 +27,12 @@ LIBS+= ${LIBS_ZSTD}
2727
28RM?= rm -f --28RM?= rm -f --
2929
30ifeq (i386,${DEB_HOST_ARCH})
31 CFLAGS += $(shell i386-linux-gnu-pkg-config --cflags libzstd)
32 LIBS += $(shell i386-linux-gnu-pkg-config --libs libzstd)
33 CC = i686-linux-gnu-gcc
34endif
35
30all: ${PROG}36all: ${PROG}
3137
32${PROG}: ${OBJS}38${PROG}: ${OBJS}
diff --git a/debian/tests/ztest/programs.toml b/debian/tests/ztest/programs.toml
index e6a5854..fdae211 100644
--- a/debian/tests/ztest/programs.toml
+++ b/debian/tests/ztest/programs.toml
@@ -17,3 +17,14 @@ executable = "ztest"
17clean = [["make", "clean"]]17clean = [["make", "clean"]]
18build = [["cmake", "."], ["make"]]18build = [["cmake", "."], ["make"]]
19test = [["./ztest"]]19test = [["./ztest"]]
20
21[program.cmake_i386]
22executable = "ztest"
23
24[program.cmake_i386.commands]
25clean = [["make", "clean"]]
26build = [
27 ["cmake", ".", "-DCMAKE_C_COMPILER=i686-linux-gnu-gcc", "-DCMAKE_CXX_COMPILER=i686-linux-gnu-g++"],
28 ["make"]
29]
30test = [["./ztest"]]

Subscribers

People subscribed via source and target branches