xorg.xtrans: backport xorg.libXfont build fix

Without the change the build of `xorg.libXfont` fails as:

       > xtrans-1.5.1/include/X11/Xtrans/Xtrans.c: In function '_FontTransSelectTransport':
       > xtrans-1.5.1/include/X11/Xtrans/Xtrans.c:165:10: error: 'i' undeclared (first use in this function)
       >   165 |     for (i = 0; i < PROTOBUFSIZE && protobuf[i] != '\0'; i++)
       >       |          ^
This commit is contained in:
Sergei Trofimovich
2024-10-16 10:27:49 +01:00
parent a14c2b9632
commit 4eca8518d3
+9
View File
@@ -1123,6 +1123,15 @@ self: super:
xsetroot = addMainProgram super.xsetroot { };
xsm = addMainProgram super.xsm { };
xstdcmap = addMainProgram super.xstdcmap { };
xtrans = super.xtrans.overrideAttrs (attrs: {
patches = [
# https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/22
(fetchpatch {
url = "https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/commit/ae99ac32f61e0db92a45179579030a23fe1b5770.patch";
hash = "sha256-QnTTcZPd9QaHS5up4Ne7iuNL/OBu+DnzXprovWnW4cw=";
})
];
});
xwd = addMainProgram super.xwd { };
xwininfo = addMainProgram super.xwininfo { };
xwud = addMainProgram super.xwud { };