🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.maint.x
Article #35

Bug#1098167: xserver-xorg-video-dummy: ftbfs with GCC-15

#35
From: Bastian Germann
Date: Thu, 03 Dec 2026 11:00
75 lines
4696 bytes
--nQ0bnc0Qfvwe/O3Y
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

As this is responsible for the package not being available on loong64,
I am sponsoring a quilt version of the NMU. The debdiff is attached.

--nQ0bnc0Qfvwe/O3Y
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename=xserver-xorg-video-dummy_0.4.0-1.1.debdiff

diff -u xserver-xorg-video-dummy-0.4.0/debian/changelog xserver-xorg-video-dummy-0.4.0/debian/changelog
--- xserver-xorg-video-dummy-0.4.0/debian/changelog
+++ xserver-xorg-video-dummy-0.4.0/debian/changelog
@@ -1,3 +1,17 @@
+xserver-xorg-video-dummy (1:0.4.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with GCC 15 / C23 (Closes: #1098167):
+    src/dummy.h: list the WindowPtr argument type in the dummyRec
+    CreateWindow function pointer declaration. Under C23, an empty
+    parameter list '()' is equivalent to '(void)', so the original
+    declaration is incompatible with the CreateWindowProcPtr assigned
+    to it in dummy_driver.c.
+    Backport of upstream commit 234cb0271bbf69ef3bd0b90a2efdd8fb724b78f0
+    by Alan Coopersmith, released in xf86-video-dummy 0.4.1.
+
+ -- Azeez Syed <azeezalishah@gmail.com>  Sat, 23 May 2026 15:30:00 +0530
+
 xserver-xorg-video-dummy (1:0.4.0-1) unstable; urgency=medium
 
   * New upstream release.
diff -u xserver-xorg-video-dummy-0.4.0/debian/patches/series xserver-xorg-video-dummy-0.4.0/debian/patches/series
--- xserver-xorg-video-dummy-0.4.0/debian/patches/series
+++ xserver-xorg-video-dummy-0.4.0/debian/patches/series
@@ -1 +1 @@
-# placeholder
+c23.patch
only in patch2:
unchanged:
--- xserver-xorg-video-dummy-0.4.0.orig/debian/patches/c23.patch
+++ xserver-xorg-video-dummy-0.4.0/debian/patches/c23.patch
@@ -0,0 +1,29 @@
+Origin: upstream, 234cb0271bbf69ef3bd0b90a2efdd8fb724b78f0
+From: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Fri, 17 Mar 2023 15:33:38 -0700
+Subject: List argument types in dummyRec->CreateWindow() function declaration
+
+Will be needed for C23 builds, since C23 treats () as (void),
+not as an unspecified argument list.
+
+Fixes warning from Solaris Studio C compiler with -fd flag:
+"dummy.h", line 55: warning: old style function declaration
+
+Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+---
+ src/dummy.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/dummy.h b/src/dummy.h
+index 3043919..b81c560 100644
+--- a/src/dummy.h
++++ b/src/dummy.h
+@@ -52,7 +52,7 @@ typedef struct dummyRec
+     int cursorFG, cursorBG;
+ 
+     dummy_colors colors[1024];
+-    Bool        (*CreateWindow)() ;     /* wrapped CreateWindow */
++    Bool        (*CreateWindow)(WindowPtr) ;     /* wrapped CreateWindow */
+     Bool prop;
+     /* XRANDR support begin */
+     int num_screens;

--nQ0bnc0Qfvwe/O3Y--
Technical Details
Message-ID: <O6cHD-fJ74-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <MXQQ9-7fi0-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Bastian Germann <bage@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.x
Subject: Bug#1098167: xserver-xorg-video-dummy: ftbfs with GCC-15
Date: Thu, 03 Dec 2026 12:00:01 +0100
Message-ID: <O6cHD-fJ74-1@gated-at.bofh.it>
References: <MXQQ9-7fi0-5@gated-at.bofh.it>
X-Original-To: 1098167@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Dec  3 10:53:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Bastian Germann <bage@debian.org>, 1098167@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-x@lists.debian.org
X-Debian-Pr-Message: followup 1098167
X-Debian-Pr-Package: src:xserver-xorg-video-dummy
X-Debian-Pr-Keywords: ftbfs patch sid forky
X-Debian-Pr-Source: xserver-xorg-video-dummy
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="nQ0bnc0Qfvwe/O3Y"
Content-Disposition: inline
X-Debian-User: bage
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006702
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 75
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 3 Dec 2026 11:52:13 +0100
X-Original-Message-ID: <axFJ3ffTKG_uwGin@duagon-BXN3S64.localdomain>
X-Original-References: <E1tk5Rz-009RqU-5E@paradis.debian.org>