diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:51:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:51:28 +0000 |
commit | 940b4d1848e8c70ab7642901a68594e8016caffc (patch) | |
tree | eb72f344ee6c3d9b80a7ecc079ea79e9fba8676d /external/apr | |
parent | Initial commit. (diff) | |
download | libreoffice-upstream.tar.xz libreoffice-upstream.zip |
Adding upstream version 1:7.0.4.upstream/1%7.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | external/apr/ExternalProject_apr.mk | 43 | ||||
-rw-r--r-- | external/apr/ExternalProject_apr_util.mk | 45 | ||||
-rw-r--r-- | external/apr/Makefile | 7 | ||||
-rw-r--r-- | external/apr/Module_apr.mk | 19 | ||||
-rw-r--r-- | external/apr/README | 5 | ||||
-rw-r--r-- | external/apr/UnpackedTarball_apr.mk | 21 | ||||
-rw-r--r-- | external/apr/UnpackedTarball_apr_util.mk | 22 | ||||
-rw-r--r-- | external/apr/exit.patch | 26 | ||||
-rw-r--r-- | external/apr/uuid.patch | 241 | ||||
-rw-r--r-- | external/apr/windows.build.patch.1 | 53 |
10 files changed, 482 insertions, 0 deletions
diff --git a/external/apr/ExternalProject_apr.mk b/external/apr/ExternalProject_apr.mk new file mode 100644 index 000000000..1c94480e5 --- /dev/null +++ b/external/apr/ExternalProject_apr.mk @@ -0,0 +1,43 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ExternalProject_ExternalProject,apr)) + +$(eval $(call gb_ExternalProject_register_targets,apr,\ + build \ +)) + +$(eval $(call gb_ExternalProject_use_nmake,apr,build)) + +ifeq ($(COM),MSC) +$(call gb_ExternalProject_get_state_target,apr,build): + $(call gb_Trace_StartRange,apr,EXTERNAL) + $(call gb_ExternalProject_run,build,\ + nmake -nologo -f apr.mak \ + CFG="apr - Win32 $(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release)" \ + RECURSE=0 \ + ) + $(call gb_Trace_EndRange,apr,EXTERNAL) + +else +$(call gb_ExternalProject_get_state_target,apr,build): + $(call gb_Trace_StartRange,apr,EXTERNAL) + +$(call gb_ExternalProject_run,build,\ + $(if $(ENABLE_MACOSX_SANDBOX),ac_cv_func_fdatasync=no) \ + ./configure \ + --enable-static --disable-shared \ + --with-pic \ + $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM))\ + && $(MAKE) libapr-1.la \ + ) + $(call gb_Trace_EndRange,apr,EXTERNAL) + +endif + +# vim: set noet sw=4 ts=4: diff --git a/external/apr/ExternalProject_apr_util.mk b/external/apr/ExternalProject_apr_util.mk new file mode 100644 index 000000000..a311f32e8 --- /dev/null +++ b/external/apr/ExternalProject_apr_util.mk @@ -0,0 +1,45 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ExternalProject_ExternalProject,apr_util)) + +$(eval $(call gb_ExternalProject_use_external_project,apr_util,apr)) + +$(eval $(call gb_ExternalProject_register_targets,apr_util,\ + build \ +)) + +$(eval $(call gb_ExternalProject_use_nmake,apr_util,build)) + +ifeq ($(COM),MSC) +$(call gb_ExternalProject_get_state_target,apr_util,build): + $(call gb_Trace_StartRange,apr_util,EXTERNAL) + $(call gb_ExternalProject_run,build,\ + nmake -nologo -f aprutil.mak \ + CFG="aprutil - Win32 $(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release)" \ + RECURSE=0 \ + ) + $(call gb_Trace_EndRange,apr_util,EXTERNAL) + +else +$(call gb_ExternalProject_get_state_target,apr_util,build): + $(call gb_Trace_StartRange,apr_util,EXTERNAL) + +$(call gb_ExternalProject_run,build,\ + ./configure \ + --enable-static --disable-shared \ + --with-pic \ + $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM))\ + --with-apr=$(call gb_UnpackedTarball_get_dir,apr)/apr-1-config \ + && $(MAKE) libaprutil-1.la \ + ) + $(call gb_Trace_EndRange,apr_util,EXTERNAL) + +endif + +# vim: set noet sw=4 ts=4: diff --git a/external/apr/Makefile b/external/apr/Makefile new file mode 100644 index 000000000..e4968cf85 --- /dev/null +++ b/external/apr/Makefile @@ -0,0 +1,7 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- + +module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +include $(module_directory)/../../solenv/gbuild/partial_build.mk + +# vim: set noet sw=4 ts=4: diff --git a/external/apr/Module_apr.mk b/external/apr/Module_apr.mk new file mode 100644 index 000000000..6bb85fb76 --- /dev/null +++ b/external/apr/Module_apr.mk @@ -0,0 +1,19 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_Module_Module,apr)) + +$(eval $(call gb_Module_add_targets,apr,\ + UnpackedTarball_apr \ + UnpackedTarball_apr_util \ + ExternalProject_apr \ + ExternalProject_apr_util \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/apr/README b/external/apr/README new file mode 100644 index 000000000..778bdfdf6 --- /dev/null +++ b/external/apr/README @@ -0,0 +1,5 @@ +The mission of the Apache Portable Runtime (APR) project is to create +and maintain software libraries that provide a predictable and consistent +interface to underlying platform-specific implementations. + +From [http://apr.apache.org/]. diff --git a/external/apr/UnpackedTarball_apr.mk b/external/apr/UnpackedTarball_apr.mk new file mode 100644 index 000000000..c3be61670 --- /dev/null +++ b/external/apr/UnpackedTarball_apr.mk @@ -0,0 +1,21 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_UnpackedTarball_UnpackedTarball,apr)) + +$(eval $(call gb_UnpackedTarball_set_tarball,apr,$(APR_TARBALL))) + +$(eval $(call gb_UnpackedTarball_set_patchlevel,apr,0)) + +$(eval $(call gb_UnpackedTarball_add_patches,apr, \ + external/apr/exit.patch \ + external/apr/uuid.patch \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/apr/UnpackedTarball_apr_util.mk b/external/apr/UnpackedTarball_apr_util.mk new file mode 100644 index 000000000..06860f139 --- /dev/null +++ b/external/apr/UnpackedTarball_apr_util.mk @@ -0,0 +1,22 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_UnpackedTarball_UnpackedTarball,apr_util)) + +$(eval $(call gb_UnpackedTarball_set_tarball,apr_util,$(APR_UTIL_TARBALL))) + +$(eval $(call gb_UnpackedTarball_fix_end_of_line,apr_util,\ + aprutil.mak \ +)) + +$(eval $(call gb_UnpackedTarball_add_patches,apr_util,\ + external/apr/windows.build.patch.1 \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/apr/exit.patch b/external/apr/exit.patch new file mode 100644 index 000000000..5db6a9471 --- /dev/null +++ b/external/apr/exit.patch @@ -0,0 +1,26 @@ +--- configure ++++ configure +@@ -23549,6 +23549,7 @@ + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include <stdio.h> ++#include <stdlib.h> + #include <sys/types.h> + #ifdef WIN32 + #define binmode "b" +@@ -23910,6 +23910,7 @@ + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include <stdio.h> ++#include <stdlib.h> + #include <sys/types.h> + #ifdef WIN32 + #define binmode "b" +@@ -24347,6 +24347,7 @@ + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include <stdio.h> ++#include <stdlib.h> + #include <sys/types.h> + #include <sys/uio.h> + #ifdef WIN32 diff --git a/external/apr/uuid.patch b/external/apr/uuid.patch new file mode 100644 index 000000000..53c75f13c --- /dev/null +++ b/external/apr/uuid.patch @@ -0,0 +1,241 @@ +--- configure ++++ configure +@@ -26343,235 +26343,9 @@ + + echo "${nl}Checking for OS UUID Support..." + +-for ac_header in uuid.h uuid/uuid.h sys/uuid.h +-do : +- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +- cat >>confdefs.h <<_ACEOF +-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +-_ACEOF +- break +-fi +- +-done +- +- +-apr_revert_save_LIBS=$LIBS +- +-# Prefer the flavor(s) that live in libc; +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5 +-$as_echo_n "checking for library containing uuid_create... " >&6; } +-if ${ac_cv_search_uuid_create+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_func_search_save_LIBS=$LIBS +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char uuid_create (); +-int +-main () +-{ +-return uuid_create (); +- ; +- return 0; +-} +-_ACEOF +-for ac_lib in '' uuid; do +- if test -z "$ac_lib"; then +- ac_res="none required" +- else +- ac_res=-l$ac_lib +- LIBS="-l$ac_lib $ac_func_search_save_LIBS" +- fi +- if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_search_uuid_create=$ac_res +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext +- if ${ac_cv_search_uuid_create+:} false; then : +- break +-fi +-done +-if ${ac_cv_search_uuid_create+:} false; then : +- +-else +- ac_cv_search_uuid_create=no +-fi +-rm conftest.$ac_ext +-LIBS=$ac_func_search_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5 +-$as_echo "$ac_cv_search_uuid_create" >&6; } +-ac_res=$ac_cv_search_uuid_create +-if test "$ac_res" != no; then : +- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" +- +-fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5 +-$as_echo_n "checking for library containing uuid_generate... " >&6; } +-if ${ac_cv_search_uuid_generate+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_func_search_save_LIBS=$LIBS +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char uuid_generate (); +-int +-main () +-{ +-return uuid_generate (); +- ; +- return 0; +-} +-_ACEOF +-for ac_lib in '' uuid; do +- if test -z "$ac_lib"; then +- ac_res="none required" +- else +- ac_res=-l$ac_lib +- LIBS="-l$ac_lib $ac_func_search_save_LIBS" +- fi +- if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_search_uuid_generate=$ac_res +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext +- if ${ac_cv_search_uuid_generate+:} false; then : +- break +-fi +-done +-if ${ac_cv_search_uuid_generate+:} false; then : +- +-else +- ac_cv_search_uuid_generate=no +-fi +-rm conftest.$ac_ext +-LIBS=$ac_func_search_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5 +-$as_echo "$ac_cv_search_uuid_generate" >&6; } +-ac_res=$ac_cv_search_uuid_generate +-if test "$ac_res" != no; then : +- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" +- +-fi +- +-if test "$ac_cv_search_uuid_create" = "none required" -o \ +- "$ac_cv_search_uuid_generate" = "none required"; then +- LIBS=$apr_revert_save_LIBS +-fi +- +-for ac_func in uuid_create uuid_generate +-do : +- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +-if eval test \"x\$"$as_ac_var"\" = x"yes"; then : +- cat >>confdefs.h <<_ACEOF +-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +-_ACEOF +- +-fi +-done +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5 +-$as_echo_n "checking for os uuid usability... " >&6; } +-if ${apr_cv_osuuid+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- +-# Ensure this test closely mirrors misc/unix/rand.c! +-uuid_includes=" +-#if defined(HAVE_SYS_TYPES_H) +-#include <sys/types.h> +-#endif +-#if defined(HAVE_UNISTD_H) +-#include <unistd.h> +-#endif +-#if defined(HAVE_UUID_H) +-#include <uuid.h> +-#elif defined(HAVE_UUID_UUID_H) +-#include <uuid/uuid.h> +-#elif defined(HAVE_SYS_UUID_H) +-#include <sys/uuid.h> +-#endif +-" +- apr_cv_osuuid=no +- if test $ac_cv_func_uuid_create = yes; then +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-$uuid_includes +-int +-main () +-{ +- +- uuid_t g; +- uint32_t s; +- uuid_create(&g, &s); +- if (s == uuid_s_ok) s = 0; +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- apr_cv_osuuid=yes +-else +- apr_cv_func_uuid_create=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +- fi +- if test $ac_cv_func_uuid_generate = yes; then +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-$uuid_includes +-int +-main () +-{ +- +- uuid_t g; +- uuid_generate(g); +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- apr_cv_osuuid=yes +-else +- apr_cv_func_uuid_generate=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +- fi +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5 +-$as_echo "$apr_cv_osuuid" >&6; } +- +-if test $apr_cv_osuuid = yes; then +- osuuid="1" +-else +- osuuid="0" +- LIBS=$apr_revert_save_LIBS +-fi ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo no >&6; } ++osuuid="0" + + + diff --git a/external/apr/windows.build.patch.1 b/external/apr/windows.build.patch.1 new file mode 100644 index 000000000..929910bea --- /dev/null +++ b/external/apr/windows.build.patch.1 @@ -0,0 +1,53 @@ +diff -ur apr_util.org/aprutil.mak apr_util/aprutil.mak +--- apr_util.org/aprutil.mak 2014-03-05 16:40:02.385701779 +0100 ++++ apr_util/aprutil.mak 2014-03-05 16:40:49.409702332 +0100 +@@ -210,8 +210,6 @@ + "$(INTDIR)\apr_uri.obj" \ + "$(INTDIR)\xlate.obj" \ + "$(INTDIR)\apr_xml.obj" \ +- "..\apr-iconv\LibR\apriconv-1.lib" \ +- ".\xml\expat\lib\LibR\xml.lib" + + "$(OUTDIR)\aprutil-1.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS) + $(LIB32) @<< +@@ -406,8 +404,6 @@ + "$(INTDIR)\apr_uri.obj" \ + "$(INTDIR)\xlate.obj" \ + "$(INTDIR)\apr_xml.obj" \ +- "..\apr-iconv\LibD\apriconv-1.lib" \ +- ".\xml\expat\lib\LibD\xml.lib" + + "$(OUTDIR)\aprutil-1.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS) + $(LIB32) @<< +@@ -602,8 +598,6 @@ + "$(INTDIR)\apr_uri.obj" \ + "$(INTDIR)\xlate.obj" \ + "$(INTDIR)\apr_xml.obj" \ +- "..\apr-iconv\x64\LibR\apriconv-1.lib" \ +- ".\xml\expat\lib\x64\LibR\xml.lib" + + "$(OUTDIR)\aprutil-1.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS) + $(LIB32) @<< +@@ -798,8 +792,6 @@ + "$(INTDIR)\apr_uri.obj" \ + "$(INTDIR)\xlate.obj" \ + "$(INTDIR)\apr_xml.obj" \ +- "..\apr-iconv\x64\LibD\apriconv-1.lib" \ +- ".\xml\expat\lib\x64\LibD\xml.lib" + + "$(OUTDIR)\aprutil-1.lib" : "$(OUTDIR)" $(DEF_FILE) $(LIB32_OBJS) + $(LIB32) @<< +diff -ur apr_util.org/include/apu.hw apr_util/include/apu.hw +--- apr_util.org/include/apu.hw 2014-03-05 16:40:02.377701779 +0100 ++++ apr_util/include/apu.hw 2014-03-05 16:40:38.769702207 +0100 +@@ -138,8 +138,8 @@ + #define APU_HAVE_NSS 0 + #endif + +-#define APU_HAVE_APR_ICONV 1 +-#define APU_HAVE_ICONV 0 ++#undef APU_HAVE_APR_ICONV ++#undef APU_HAVE_ICONV + #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV) + + #endif /* APU_H */ |