From 448e60b5c78af3466ca3f491d4291bb43f496bd4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 14 Sep 2024 20:29:30 +0900 Subject: [PATCH] lcms: fix FTBFS with gcc14 Signed-off-by: Michele Calgaro --- debian/lcms/lcms-1.19.dfsg2/debian/changelog | 6 +++++ .../debian/patches/fix-ftbfs-gcc14.diff | 27 +++++++++++++++++++ .../lcms-1.19.dfsg2/debian/patches/series | 1 + 3 files changed, 34 insertions(+) create mode 100644 debian/lcms/lcms-1.19.dfsg2/debian/patches/fix-ftbfs-gcc14.diff diff --git a/debian/lcms/lcms-1.19.dfsg2/debian/changelog b/debian/lcms/lcms-1.19.dfsg2/debian/changelog index 594f49fb..38af6aa6 100644 --- a/debian/lcms/lcms-1.19.dfsg2/debian/changelog +++ b/debian/lcms/lcms-1.19.dfsg2/debian/changelog @@ -1,3 +1,9 @@ +lcms (1.19.dfsg2-1.6~0debian13.0.0+5~a) trixie; urgency=medium + + * Fix FTBFS with gcc14 + + -- Michele Calgaro Sat, 14 Sep 2024 20:28:00 +0900 + lcms (1.19.dfsg2-1.6~0debian13.0.0+4~a) trixie; urgency=medium * Remove remaining 'register' instruction. diff --git a/debian/lcms/lcms-1.19.dfsg2/debian/patches/fix-ftbfs-gcc14.diff b/debian/lcms/lcms-1.19.dfsg2/debian/patches/fix-ftbfs-gcc14.diff new file mode 100644 index 00000000..3de001bb --- /dev/null +++ b/debian/lcms/lcms-1.19.dfsg2/debian/patches/fix-ftbfs-gcc14.diff @@ -0,0 +1,27 @@ +--- a/jpegicc/iccjpeg.c ++++ b/jpegicc/iccjpeg.c +@@ -164,7 +164,7 @@ + boolean + read_icc_profile (j_decompress_ptr cinfo, + JOCTET **icc_data_ptr, +- unsigned int *icc_data_len) ++ DWORD *icc_data_len) + { + jpeg_saved_marker_ptr marker; + int num_markers = 0; +--- a/jpegicc/iccjpeg.h ++++ b/jpegicc/iccjpeg.h +@@ -18,6 +18,7 @@ + + #include /* needed to define "FILE", "NULL" */ + #include "jpeglib.h" ++#include "lcms.h" + + + /* +@@ -70,4 +71,4 @@ + + extern boolean read_icc_profile JPP((j_decompress_ptr cinfo, + JOCTET **icc_data_ptr, +- unsigned int *icc_data_len)); ++ DWORD *icc_data_len)); diff --git a/debian/lcms/lcms-1.19.dfsg2/debian/patches/series b/debian/lcms/lcms-1.19.dfsg2/debian/patches/series index 33f8cda0..6f64faa6 100644 --- a/debian/lcms/lcms-1.19.dfsg2/debian/patches/series +++ b/debian/lcms/lcms-1.19.dfsg2/debian/patches/series @@ -1,3 +1,4 @@ debian-changes.diff remove-register-instruction.diff add-swab-function-prototype.diff +fix-ftbfs-gcc14.diff