• Bug#1078229: xserver-xorg-video-ivtvdev: FTBFS with GCC 14: error: assi

    From Petter Reinholdtsen@21:1/5 to All on Sat Mar 1 09:50:01 2025
    XPost: linux.debian.bugs.dist

    Control: tags -1 + patch

    The following patch should get the package building again:

    Description: Fix build problems with newer Xorg and compiler.
    Ensure correct method and variable declaration to avoid fatal
    compiler warnings.
    Author: Petter Reinholdtsen <pere@debian.org>
    Forwarded: no
    Last-Update: 2025-03-01
    ---
    Index: xserver-xorg-video-ivtvdev-salsa/src/ivtv.c ===================================================================
    --- xserver-xorg-video-ivtvdev-salsa.orig/src/ivtv.c 2025-03-01 08:38:08.000000000 +0000
    +++ xserver-xorg-video-ivtvdev-salsa/src/ivtv.c 2025-03-01 08:39:21.550211876 +0000
    @@ -314,7 +314,7 @@
    int i;
    GDevPtr *devSections;
    int numDevSections;
    - char *dev;
    + const char *dev;
    Bool foundScreen = FALSE;
    int *usedChips;
    int numUsed;
    Index: xserver-xorg-video-ivtvdev-salsa/src/ivtv_hw.c ===================================================================
    --- xserver-xorg-video-ivtvdev-salsa.orig/src/ivtv_hw.c 2025-03-01 08:38:08.000000000 +0000
    +++ xserver-xorg-video-ivtvdev-salsa/src/ivtv_hw.c 2025-03-01 08:39:14.554137292 +0000
    @@ -168,12 +168,12 @@
    /* open correct framebuffer device */

    static int
    -ivtv_open(int scrnIndex, char *dev, char **namep, IVTVDevPtr devPtr) +ivtv_open(int scrnIndex, const