🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3124

Bug#1152930: vim: FTBFS on s390x (big-endian) in trixie-security

#3124
From: Martin Grimm
Date: Tue, 03 Nov 2026 10:00
75 lines
5329 bytes
Source: vim
Version: 2:9.1.1230-2+deb13u1
Severity: serious
Tags: patch security trixie
Justification: FTBFS (s390x)
X-Debbugs-Cc: team@security.debian.org
Dear Maintainer,

vim 2:9.1.1230-2+deb13u1 (DSA-6600-1) has not been built for s390x in
trixie-security. The arch:all packages vim-common and vim-runtime were
updated, but the arch-dependent binaries (vim, vim-tiny, vim-nox, ...)
on s390x are still at 2:9.1.1230-2. Because of the strict versioned
dependency on vim-common, apt full-upgrade wants to remove vim on s390x
systems, and vim cannot be reinstalled without downgrading vim-common
and vim-runtime.

The cause is a test failure on big-endian systems. I cannot see the
security buildd logs, but I reproduced it on s390x in a clean trixie
sbuild chroot (unshare mode, mmdebstrap --variant=buildd, trixie +
trixie-security), building the unmodified
vim_9.1.1230-2+deb13u1.dsc:

Executed:  7130 Tests
  Skipped:   103 Tests
   FAILED:     1 Tests


Failures:
	From test_recover.vim:
	Found errors in Test_recover_corrupted_swap_file1():
	command line..script /build/reproducible-path/vim-9.1.1230/src/vim-gtk3/testdir/runtest.vim[620]..function RunTheTest[60]..Test_recover_corrupted_swap_file1 line 16: Pattern '???ILLEGAL BLOCK NUMBER' does not match ''
	command line..script /build/reproducible-path/vim-9.1.1230/src/vim-gtk3/testdir/runtest.vim[620]..function RunTheTest[60]..Test_recover_corrupted_swap_file1 line 30: Pattern '???ILLEGAL BLOCK NUMBER' does not match ''
	command line..script /build/reproducible-path/vim-9.1.1230/src/vim-gtk3/testdir/runtest.vim[620]..function RunTheTest[60]..Test_recover_corrupted_swap_file1 line 31: Pattern '???LINES MISSING' does not match ''

TEST FAILURE
make[4]: *** [Makefile:53: report] Error 1
make[4]: Leaving directory '/build/reproducible-path/vim-9.1.1230/src/vim-gtk3/testdir'
make[3]: *** [Makefile:2199: scripttests] Error 2
make[3]: Leaving directory '/build/reproducible-path/vim-9.1.1230/src/vim-gtk3'
make[2]: *** [debian/rules:245: test-vim-gtk3] Error 2
make[2]: Leaving directory '/build/reproducible-path/vim-9.1.1230'
make[1]: *** [debian/rules:211: override_dh_auto_test-arch] Error 2
make[1]: Leaving directory '/build/reproducible-path/vim-9.1.1230'
make: *** [debian/rules:168: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2026-11-03T09:24:45Z

No other test failed (a few flaky tests passed on retry).

The failing test and the sample swap files samples/recover-crash{1,2}.swp
were introduced by the backport of the fix for CVE-2026-28421 (#1129431),
a backport of upstream patch 9.2.0077.
The samples were generated on a little-endian system and are not valid
swap files on big-endian architectures.

Upstream fixed this right afterwards in patch 9.2.0132 ("tests:
Test_recover_corrupted_swap_file1 fails on be systems (after
v9.2.0077)"):
https://github.com/vim/vim/commit/ff16ebdb08bbefd41cdfcbdfc294bb67a151083f

That follow-up patch is missing from the trixie-security backport. It
only touches src/testdir/test_recover.vim and applies cleanly on top of
CVE-2026-28421.patch (offset 2 lines). The security fix in
src/memline.c is unaffected.

With the attached patch (upstream 9.2.0132 minus the version.c hunk)
added to debian/patches/series, the package builds successfully on
s390x and the whole test suite passes.

Please consider including it in a follow-up security or point release
upload so that the s390x binaries can be built.

Thanks!
Martin
Technical Details
Message-ID: <NVjt7-9A7P-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Martin Grimm <extern.martin.grimm@itzbund.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152930: vim: FTBFS on s390x (big-endian) in trixie-security
Date: Tue, 03 Nov 2026 11:00:01 +0100
Message-ID: <NVjt7-9A7P-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov  3 09:53:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.125
Reply-To: Martin Grimm <extern.martin.grimm@itzbund.de>, 1152930@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team@security.debian.org, team+vim@tracker.debian.org
X-Debian-Pr-Message: report 1152930
X-Debian-Pr-Package: src:vim
X-Debian-Pr-Keywords: patch security trixie
X-Debian-Pr-Source: vim
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: de-DE
Organization: ITZBund
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Loop-Detect: lxmxext2.bfinv.de 10e2b28e52306fb107630ae4ad6036079b069364
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000395
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 75
Sender: robomod@news.nic.it
X-Original-Date: Tue, 3 Nov 2026 10:50:19 +0100
X-Original-Message-ID: <d9e64481-117d-44b0-b992-3ce6b5ee69c2@itzbund.de>