🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1149546: cwidget: diff for NMU version 0.5.18-6.1

#3495
From: Paul Martin
Date: Fri, 06 Nov 2026 15:00
87 lines
4959 bytes
--iNsfBxkqCkt1D2+r
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Control: tags 1148483 + patch
Control: tags 1148483 + pending
Control: tags 1149546 + pending

Dear maintainer,

I've prepared an NMU for cwidget (versioned as 0.5.18-6.1) and
uploaded it to DELAYED/15. Please feel free to tell me if I
should cancel it.

Regards.


-- 
Paul Martin <pm@debian.org>

--iNsfBxkqCkt1D2+r
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename=cwidget-0.5.18-6.1-nmu.diff
Content-Transfer-Encoding: 8bit

diffstat for cwidget-0.5.18 cwidget-0.5.18

 changelog                                   |    8 ++++++++
 patches/0003-Fix-RasPi-libc-exception.patch |   27 +++++++++++++++++++++++++++
 patches/series                              |    1 +
 3 files changed, 36 insertions(+)

diff -Nru cwidget-0.5.18/debian/changelog cwidget-0.5.18/debian/changelog
--- cwidget-0.5.18/debian/changelog	2022-08-06 02:59:19.000000000 +0100
+++ cwidget-0.5.18/debian/changelog	2026-11-06 14:42:58.000000000 +0000
@@ -1,3 +1,11 @@
+cwidget (0.5.18-6.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix missing return code checking which causes crash with newer libc
+    on arm64. (Closes: #1148483, #1149546)
+
+ -- Paul Martin <pm@debian.org>  Fri, 06 Nov 2026 14:42:58 +0000
+
 cwidget (0.5.18-6) unstable; urgency=medium
 
   [ Debian Janitor ]
diff -Nru cwidget-0.5.18/debian/patches/0003-Fix-RasPi-libc-exception.patch cwidget-0.5.18/debian/patches/0003-Fix-RasPi-libc-exception.patch
--- cwidget-0.5.18/debian/patches/0003-Fix-RasPi-libc-exception.patch	1970-01-01 01:00:00.000000000 +0100
+++ cwidget-0.5.18/debian/patches/0003-Fix-RasPi-libc-exception.patch	2026-11-06 14:12:48.000000000 +0000
@@ -0,0 +1,27 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From:  <pm@debian.org>
+Date: Sep, 30 2026 15:16:32 +0100
+Subject: [PATCH] Fix crash on Raspberry Pi due to incorrect errno check
+
+Paweł Jasiak observes in bug #1148483:
+
+In cwidget-0.5.18/src/cwidget/toplevel.cc:488 result of select is used
+incorrectly. It's allowed to return any value different than -1 on success.
+errno can be checked **only** if select returns -1.
+
+Fixes: #1149546, #1148483
+
+Author: Paul Martin <pm@debian.org>
+Bug-Debian: https://bugs.debian.org/1149546
+
+--- cwidget-0.5.18.orig/src/cwidget/toplevel.cc
++++ cwidget-0.5.18/src/cwidget/toplevel.cc
+@@ -487,7 +487,7 @@ namespace cwidget
+ 
+ 	    if(result != 1)
+ 	      {
+-		if(errno != EINTR && errno != 0)
++		if(result == -1 && errno != EINTR && errno != 0)
+ 		  {
+ 		    // Probably means that there was an error reading
+ 		    // standard input.  (could also be ENOMEM)
diff -Nru cwidget-0.5.18/debian/patches/series cwidget-0.5.18/debian/patches/series
--- cwidget-0.5.18/debian/patches/series	2022-08-05 02:20:52.000000000 +0100
+++ cwidget-0.5.18/debian/patches/series	2026-11-06 14:12:48.000000000 +0000
@@ -1,2 +1,3 @@
 0001-Change-gettext-domainname-to-libcwidget4-1.patch
 0002-Fix-cwidget-and-aptitude-FTBFS.patch
+0003-Fix-RasPi-libc-exception.patch

--iNsfBxkqCkt1D2+r--
Technical Details
Message-ID: <NWtA6-ad8W-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NJ4Jb-2K9i-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Paul Martin <pm@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1149546: cwidget: diff for NMU version 0.5.18-6.1
Date: Fri, 06 Nov 2026 16:00:02 +0100
Message-ID: <NWtA6-ad8W-9@gated-at.bofh.it>
References: <NJ4Jb-2K9i-1@gated-at.bofh.it>
X-Original-To: 1148483@bugs.debian.org, 1149546@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov  6 14:57:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.899
Reply-To: Paul Martin <pm@debian.org>, 1149546@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: mafm@debian.org
X-Debian-Pr-Message: followup 1149546
X-Debian-Pr-Package: libcwidget4
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: cwidget
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="iNsfBxkqCkt1D2+r"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Nmudiff-Version: 2.26.13
X-Sa-Score: -2.9
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001067
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 87
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 6 Nov 2026 14:55:38 +0000
X-Original-Message-ID: <au3qapVlnIqOLV1G@thinkpad2>
X-Original-References: <179078269212.257910.4117909057718674554.reportbug@thinkpad>