Package: libdeflate Version: 1.23-2 Followup-For: Bug #1128617 User: [email protected] Usertags: origin-ubuntu resolute ubuntu-patch Control: tags -1 patch ftbfs
Dear Maintainer, In Ubuntu, the attached patch was successful in fixing the FTBFS against glibc 2.43. Link to build log: https://launchpadlibrarian.net/849909508/buildlog_ubuntu-resolute-amd64.libdeflate_1.23-2ubuntu1~ppa1_BUILDING.txt.gz Thanks for considering the patch.
diff -Nru libdeflate-1.23/debian/patches/0001-tgetopt-fix-ftbfs-with-glibc2.43.patch libdeflate-1.23/debian/patches/0001-tgetopt-fix-ftbfs-with-glibc2.43.patch --- libdeflate-1.23/debian/patches/0001-tgetopt-fix-ftbfs-with-glibc2.43.patch 1969-12-31 16:00:00.000000000 -0800 +++ libdeflate-1.23/debian/patches/0001-tgetopt-fix-ftbfs-with-glibc2.43.patch 2026-03-02 11:40:25.000000000 -0800 @@ -0,0 +1,26 @@ +From: Ural Tunaboyu <[email protected]> +Date: Mon, 2 Mar 2026 11:36:38 -0800 +Subject: tgetopt: fix ftbfs with glibc2.43 + +Bug-Ubuntu: https://launchpad.net/bugs/2142894 +Forwarded: https://github.com/ebiggers/libdeflate/pull/446 + +Discarding the const qualifier from pointer target type is now treated +as an error as of glibc 2.43. +--- + programs/tgetopt.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/programs/tgetopt.c b/programs/tgetopt.c +index 868600d..59efcea 100644 +--- a/programs/tgetopt.c ++++ b/programs/tgetopt.c +@@ -70,7 +70,7 @@ tgetopt(int argc, tchar *argv[], const tchar *optstring) + } else { + /* More short options in previous arg */ + tchar opt = *nextchar; +- tchar *p = tstrchr(optstring, opt); ++ const tchar *p = tstrchr(optstring, opt); + if (p == NULL) { + if (topterr) + msg("invalid option -- '%"TC"'", opt); diff -Nru libdeflate-1.23/debian/patches/series libdeflate-1.23/debian/patches/series --- libdeflate-1.23/debian/patches/series 1969-12-31 16:00:00.000000000 -0800 +++ libdeflate-1.23/debian/patches/series 2026-03-02 11:40:25.000000000 -0800 @@ -0,0 +1 @@ +0001-tgetopt-fix-ftbfs-with-glibc2.43.patch

