diff options
author | Michael Stahl <mstahl@redhat.com> | 2018-01-19 12:31:06 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2018-01-22 09:32:33 +0100 |
commit | 41abd684a6d1f3da71084fd854f66e22cb171b9d (patch) | |
tree | 194a6bb8992820997741408994f1fe80dc3de3b7 /external | |
parent | 44e9bbc29cc37d2bac089b8f051478f62f7d5d31 (diff) |
boost: upgrade to release 1.66.0
This claims to support Visual Studio 2017.4, but not the current
2017.5.
* remove boost.auto_link.patch; it does not apply; not sure why we
need this if we can just define BOOST_ALL_NO_LIB
(see commit 7f2e168421c3cd928a31a52a8b5afe97e931d3ba)
* remove some hunks from clang-cl.patch.0 that look fixed upstream
* add a global workaround for spurious GCC warning:
oox/source/drawingml/shape.cxx:921:54: error:
‘oShadowColor.boost::optional_detail::tc_optional_base<int>::m_storage’
may be used uninitialized in this function
[-Werror=maybe-uninitialized]
aFormat.Color = *oShadowColor;
Change-Id: I1eb1d8b66554a84a7d7269f1faaa98695fe2f501
Reviewed-on: https://gerrit.libreoffice.org/48187
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/boost/UnpackedTarball_boost.mk | 2 | ||||
-rw-r--r-- | external/boost/boost.auto_link.patch | 46 | ||||
-rw-r--r-- | external/boost/clang-cl.patch.0 | 50 | ||||
-rw-r--r-- | external/libcmis/StaticLibrary_libcmis.mk | 4 |
4 files changed, 4 insertions, 98 deletions
diff --git a/external/boost/UnpackedTarball_boost.mk b/external/boost/UnpackedTarball_boost.mk index 44ee759141e5..21136ed2aec0 100644 --- a/external/boost/UnpackedTarball_boost.mk +++ b/external/boost/UnpackedTarball_boost.mk @@ -20,8 +20,6 @@ boost_patches += boost.multi_array.C4510.warnings.patch # https://svn.boost.org/trac/boost/ticket/9903 boost_patches += boost.utility.Wundef.warnings.patch -boost_patches += boost.auto_link.patch - boost_patches += boost.noiconv.patch boost_patches += ubsan.patch.0 diff --git a/external/boost/boost.auto_link.patch b/external/boost/boost.auto_link.patch deleted file mode 100644 index ed60dec66e8d..000000000000 --- a/external/boost/boost.auto_link.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff -ru boost.orig/boost/config/auto_link.hpp boost/boost/config/auto_link.hpp ---- foo/misc/boost.orig/boost/config/auto_link.hpp 2015-05-07 19:11:52.000000000 +0200 -+++ foo/misc/boost/boost/config/auto_link.hpp 2015-07-18 22:34:14.371946475 +0200 -@@ -367,42 +367,6 @@ - # define BOOST_LIB_PREFIX "lib" - #endif - --// --// now include the lib: --// --#if defined(BOOST_LIB_NAME) \ -- && defined(BOOST_LIB_PREFIX) \ -- && defined(BOOST_LIB_TOOLSET) \ -- && defined(BOOST_LIB_THREAD_OPT) \ -- && defined(BOOST_LIB_RT_OPT) \ -- && defined(BOOST_LIB_VERSION) -- --#ifdef BOOST_AUTO_LINK_TAGGED --# pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib") --# ifdef BOOST_LIB_DIAGNOSTIC --# pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib") --# endif --#elif defined(BOOST_AUTO_LINK_NOMANGLE) --# pragma comment(lib, BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") --# ifdef BOOST_LIB_DIAGNOSTIC --# pragma message ("Linking to lib file: " BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") --# endif --#elif defined(BOOST_LIB_BUILDID) --# pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION "-" BOOST_STRINGIZE(BOOST_LIB_BUILDID) ".lib") --# ifdef BOOST_LIB_DIAGNOSTIC --# pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION "-" BOOST_STRINGIZE(BOOST_LIB_BUILDID) ".lib") --# endif --#else --# pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") --# ifdef BOOST_LIB_DIAGNOSTIC --# pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") --# endif --#endif -- --#else --# error "some required macros where not defined (internal logic error)." --#endif -- - - #endif // _MSC_VER || __BORLANDC__ - diff --git a/external/boost/clang-cl.patch.0 b/external/boost/clang-cl.patch.0 index 6d07df7983fa..3990f27eb3f5 100644 --- a/external/boost/clang-cl.patch.0 +++ b/external/boost/clang-cl.patch.0 @@ -1,42 +1,3 @@ ---- boost/date_time/filetime_functions.hpp -+++ boost/date_time/filetime_functions.hpp -@@ -27,6 +27,16 @@ - #include <boost/date_time/time.hpp> - #include <boost/date_time/date_defs.hpp> - -+#if !defined(BOOST_USE_WINDOWS_H) -+extern "C" { -+ struct _FILETIME; // Windows Kits/8.1/Include/shared/minwindef.h -+ struct _SYSTEMTIME; // Windows Kits/8.1/Include/um/minwinbase.h -+ __declspec(dllimport) void __stdcall GetSystemTimeAsFileTime(_FILETIME* lpFileTime); -+ __declspec(dllimport) int __stdcall FileTimeToLocalFileTime(const _FILETIME* lpFileTime, _FILETIME* lpLocalFileTime); -+ __declspec(dllimport) void __stdcall GetSystemTime(_SYSTEMTIME* lpSystemTime); -+ __declspec(dllimport) int __stdcall SystemTimeToFileTime(const _SYSTEMTIME* lpSystemTime, _FILETIME* lpFileTime); -+} -+#endif - namespace boost { - - namespace date_time { -@@ -54,10 +64,6 @@ - boost::uint16_t wMilliseconds; - }; - -- __declspec(dllimport) void __stdcall GetSystemTimeAsFileTime(FILETIME* lpFileTime); -- __declspec(dllimport) int __stdcall FileTimeToLocalFileTime(const FILETIME* lpFileTime, FILETIME* lpLocalFileTime); -- __declspec(dllimport) void __stdcall GetSystemTime(SYSTEMTIME* lpSystemTime); -- __declspec(dllimport) int __stdcall SystemTimeToFileTime(const SYSTEMTIME* lpSystemTime, FILETIME* lpFileTime); - - } // extern "C" - -@@ -74,7 +80,7 @@ - GetSystemTimeAsFileTime(&ft_utc); - FileTimeToLocalFileTime(&ft_utc, &ft); - #elif defined(BOOST_HAS_GETSYSTEMTIMEASFILETIME) -- GetSystemTimeAsFileTime(&ft); -+ GetSystemTimeAsFileTime(reinterpret_cast<::_FILETIME *>(&ft)); - #else - system_time st; - GetSystemTime(&st); --- boost/multi_array/base.hpp +++ boost/multi_array/base.hpp @@ -222,7 +222,7 @@ @@ -57,17 +18,6 @@ // Deal with VC 2010 output_iterator_tag requirement typedef array_iterator<T,T*,mpl::size_t<NumDims>,reference, mutable_iterator_tag> iterator; ---- boost/multi_array/iterator.hpp -+++ boost/multi_array/iterator.hpp -@@ -60,7 +60,7 @@ - , private - value_accessor_generator<T,NumDims>::type - { -- friend class iterator_core_access; -+ friend class boost::iterators::iterator_core_access; - typedef detail::multi_array::associated_types<T,NumDims> access_t; - - typedef iterator_facade< # workdir/UnpackedTarball/boost\boost/smart_ptr/detail/yield_k.hpp(63,29) : error: 'Sleep' redeclared without 'dllimport' attribute: previous 'dll# import' ignored [-Werror,-Winconsistent-dllimport] # extern "C" void __stdcall Sleep( unsigned long ms ); diff --git a/external/libcmis/StaticLibrary_libcmis.mk b/external/libcmis/StaticLibrary_libcmis.mk index 39b9545d5345..652ece120a35 100644 --- a/external/libcmis/StaticLibrary_libcmis.mk +++ b/external/libcmis/StaticLibrary_libcmis.mk @@ -34,6 +34,10 @@ $(eval $(call gb_StaticLibrary_add_cxxflags,libcmis, \ )) endif +$(eval $(call gb_StaticLibrary_add_defs,libcmis, \ + -DBOOST_ALL_NO_LIB \ +)) + $(eval $(call gb_StaticLibrary_set_include,libcmis, \ -I$(call gb_UnpackedTarball_get_dir,libcmis/src/libcmis) \ $$(INCLUDE) \ |