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.
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 <[email protected]> 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 <[email protected]> +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 <[email protected]> +--- + 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;

