Submitted By: Douglas R. Reno Initial Provider: Marty Jack Date: 2024-08-15 Initial Package Version: 24.2.5.2 Origin: Upstream Upstream Status: Applied Description: Fixes building the built-in libcmis library with the latest version of boost (1.86.0). The problem is caused by a function prototype change. diff -Naur libreoffice-24.2.5.2.orig/external/libcmis/boost_1.86.0_build_failure.patch.1 libreoffice-24.2.5.2/external/libcmis/boost_1.86.0_build_failure.patch.1 --- libreoffice-24.2.5.2.orig/external/libcmis/boost_1.86.0_build_failure.patch.1 1969-12-31 19:00:00.000000000 -0500 +++ libreoffice-24.2.5.2/external/libcmis/boost_1.86.0_build_failure.patch.1 2024-08-15 16:06:04.095990851 -0400 @@ -0,0 +1,23 @@ +diff -ur libcmis.org/src/libcmis/xml-utils.cxx libcmis/src/libcmis/xml-utils.cxx +--- libcmis.org/src/libcmis/xml-utils.cxx 2024-08-15 15:56:04.039673015 -0400 ++++ libcmis/src/libcmis/xml-utils.cxx 2024-08-15 15:57:42.787321115 -0400 +@@ -535,7 +535,7 @@ + boost::uuids::detail::sha1 sha1; + sha1.process_bytes( str.c_str(), str.size() ); + +- unsigned int digest[5]; ++ unsigned char digest[20]; + sha1.get_digest( digest ); + + stringstream out; +@@ -543,8 +543,9 @@ + // hexadecimal digits, including possible leading 0s, or we get + // less than 40 digits as result. + out << hex << setfill('0') << right; ++ unsigned int * idigest = reinterpret_cast(digest[0]); + for ( int i = 0; i < 5; ++i ) +- out << setw(8) << digest[i]; ++ out << setw(8) << idigest[i]; + return out.str(); + } + diff -Naur libreoffice-24.2.5.2.orig/external/libcmis/UnpackedTarball_libcmis.mk libreoffice-24.2.5.2/external/libcmis/UnpackedTarball_libcmis.mk --- libreoffice-24.2.5.2.orig/external/libcmis/UnpackedTarball_libcmis.mk 2024-07-10 11:12:43.000000000 -0400 +++ libreoffice-24.2.5.2/external/libcmis/UnpackedTarball_libcmis.mk 2024-08-15 16:06:28.730408226 -0400 @@ -14,6 +14,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,libcmis,1)) $(eval $(call gb_UnpackedTarball_add_patches,libcmis,\ + external/libcmis/boost_1.86.0_build_failure.patch.1 \ external/libcmis/http-session-cleanup.patch.1 \ ))