external/lcms2/0002-mark-more-const.patch.1 |   12 ++++++++++++
 external/lcms2/UnpackedTarball_lcms2.mk     |    1 +
 2 files changed, 13 insertions(+)

New commits:
commit 57bd14c2422a88c0ad11b06b981e729238c61f9c
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Jul 25 11:25:33 2025 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Jul 25 22:16:44 2025 +0200

    constify lcms2 some more
    
    Change-Id: I969bca29072826db5e6fd26b9d5c945d289e89a7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188324
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    (cherry picked from commit 7b35ff08abcda30786d6d1bfaa7cb93484f2eed9)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188338
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/external/lcms2/0002-mark-more-const.patch.1 
b/external/lcms2/0002-mark-more-const.patch.1
new file mode 100644
index 000000000000..b07ac9aa3d8d
--- /dev/null
+++ b/external/lcms2/0002-mark-more-const.patch.1
@@ -0,0 +1,12 @@
+diff -ur lcms2.org/src/cmscnvrt.c lcms2/src/cmscnvrt.c
+--- lcms2.org/src/cmscnvrt.c   2025-07-25 11:19:46.585033759 +0200
++++ lcms2/src/cmscnvrt.c       2025-07-25 11:19:55.829564148 +0200
+@@ -79,7 +79,7 @@
+ 
+ 
+ // Built-in intents
+-static cmsIntentsList DefaultIntents[] = {
++static const cmsIntentsList DefaultIntents[] = {
+ 
+     { INTENT_PERCEPTUAL,                            "Perceptual",             
                      DefaultICCintents,            &DefaultIntents[1] },
+     { INTENT_RELATIVE_COLORIMETRIC,                 "Relative colorimetric",  
                      DefaultICCintents,            &DefaultIntents[2] },
diff --git a/external/lcms2/UnpackedTarball_lcms2.mk 
b/external/lcms2/UnpackedTarball_lcms2.mk
index b09b38c80f91..1f5a236f7ac3 100644
--- a/external/lcms2/UnpackedTarball_lcms2.mk
+++ b/external/lcms2/UnpackedTarball_lcms2.mk
@@ -26,6 +26,7 @@ endif
 $(eval $(call gb_UnpackedTarball_add_patches,lcms2,\
        external/lcms2/lcms2-2.4-windows.patch \
        external/lcms2/0001-const-up-some-static-arrays.patch.1 \
+       external/lcms2/0002-mark-more-const.patch.1 \
 ))
 
 # vim: set noet sw=4 ts=4:

Reply via email to