[From nobody Tue Nov 17 22:37:10 2026
Received: (at submit) by bugs.debian.org; 17 Nov 2026 21:29:14 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-14.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
 DKIM_VALID_EF,FOURLA,HAS_PACKAGE,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H5,
 RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 13; hammy, 146; neutral, 25; spammy,
 1. spammytokens:0.939-+--H*r:bugs.debian.org
 hammytokens:0.000-+--autopkgtest, 0.000-+--cidebiannet,
 0.000-+--ci.debian.net, 0.000-+--UD:ci.debian.net, 0.000-+--0x80
Return-path: &lt;juan.mendezr@proton.me&gt;
Received: from mail-106120.protonmail.ch ([79.135.106.120]:12657)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;juan.mendezr@proton.me&gt;)
 id 1xTQjl-000MH1-20 for submit@bugs.debian.org;
 Tue, 17 Nov 2026 21:29:14 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me;
 s=protonmail2; t=1794950943; x=1795210143;
 bh=9Mu6ZOGlUGIsdDIXLzkV1DeAbfgFWqmq0DgB9WQueFc=;
 h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
 Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;
 b=QDpbg0N3gS/Amg02rRkk2gFl2AB9iTt6Ku1RPHL6RCu7GbHm0tBXBMIfrBmBwsjyI
 hCRW/NMB92rmKvbUAwunUFVMEyUSbUN9XRSuorbX0Q50+p/FqWeqog3lv2XNqb00V6
 jVyqfSVbqoVd4iPMeXrFZ22bdwHxrA5b5mFx69DmzMQrZYeFHNo/gpACdEHmZ4+9Vw
 jfM8+G31Nulf6Oj7K/QDYJt7vnmNOga4VovcLk7bMnzw+eT5MJ6hTmOGiaAqZhw9gw
 YH3LKXx/DBC0myq48gaI/902Ql02RwdppWtQ6fmFN0tPEWSyOYzDtQn5x/c76OkLUA
 QbJ9OGs8BnD1g==
Date: Tue, 17 Nov 2026 21:28:58 +0000
To: submit@bugs.debian.org
From: =?utf-8?Q?Juan_Manuel_M=C3=A9ndez_Rey?= &lt;juan.mendezr@proton.me&gt;
Subject: jline4: JNI terminal hangs on ppc64el, wrong termios constants
Message-ID: &lt;db191969924534d47e521591619438d1@proton.me&gt;
Feedback-ID: 176548819:user:proton
X-Pm-Message-ID: ef830c8a8100bbef68dcbe21d134a6f287353fe9
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Delivered-To: submit@bugs.debian.org

Package: libjline4-java
Version: 4.0.14+ds2-1
Severity: important
Tags: patch
User: debian-powerpc@lists.debian.org
Usertags: ppc64el

The readline autopkgtest times out on ppc64el and passes on the other
architectures, which blocks migration:
https://ci.debian.net/packages/j/jline4/testing/ppc64el/77889897/

It hangs when it opens a system terminal with the JNI provider on a pty.
LinuxNativePty hard-codes the x86 Linux termios values. Linux on powerpc
has another layout: VMIN is 5 and VTIME is 7 (6 and 5 on x86), ICANON is
0x100 and ISIG is 0x80 (0x2 and 0x1), and 54 more constants differ. So on
ppc64el JLine sets wrong terminal attributes and a read can block for ever.

Reproduced under qemu with a ppc64el unstable chroot: the test times out
after 3600 s. With the powerpc values from glibc's termios.h the same test
passes in 15 s. The fix is ready in 4.0.14+ds2-2.

Upstream master (4.7.0) has the same problem in LinuxTermiosMapping.java;
I am sending them the fix.
]