summaryrefslogtreecommitdiffstats
path: root/debian/patches/no-openssl.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/no-openssl.diff')
-rw-r--r--debian/patches/no-openssl.diff357
1 files changed, 357 insertions, 0 deletions
diff --git a/debian/patches/no-openssl.diff b/debian/patches/no-openssl.diff
new file mode 100644
index 000000000..a5c26903a
--- /dev/null
+++ b/debian/patches/no-openssl.diff
@@ -0,0 +1,357 @@
+don't add -lssl etc if not needed (because we use system-postgresql)
+
+diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
+index 0fc7d25..952b140 100644
+--- a/RepositoryExternal.mk
++++ b/RepositoryExternal.mk
+@@ -2911,9 +2917,10 @@ $(call gb_LinkTarget_add_libs,$(1),\
+ $(call gb_UnpackedTarball_get_dir,postgresql)/src/interfaces/libpq/libpq$(gb_StaticLibrary_PLAINEXT) \
+ )
+
+-ifeq ($(OS),WNT)
+ $(call gb_LinkTarget_use_external,$(1),openssl)
+
++ifeq ($(OS),WNT)
++
+ $(call gb_LinkTarget_use_system_win32_libs,$(1),\
+ secur32 \
+ ws2_32 \
+diff --git a/connectivity/Library_postgresql-sdbc-impl.mk b/connectivity/Library_postgresql-sdbc-impl.mk
+index 0580a8b..7e8b778 100644
+--- a/connectivity/Library_postgresql-sdbc-impl.mk
++++ b/connectivity/Library_postgresql-sdbc-impl.mk
+@@ -46,7 +46,6 @@ $(eval $(call gb_Library_use_externals,postgresql-sdbc-impl,\
+ boost_headers \
+ postgresql \
+ $(if $(filter-out MSC,$(COM)), \
+- openssl \
+ $(if $(ENABLE_LDAP),openldap) \
+ nss3 \
+ plc4 \
+
+... and don't uselessly check for openssl in configure
+
+diff --git a/config_host.mk.in b/config_host.mk.in
+index ddd144e..19f8368 100644
+--- a/config_host.mk.in
++++ b/config_host.mk.in
+@@ -93,7 +93,6 @@ export DEFAULT_BRAND_IMAGES=@DEFAULT_BRAND_IMAGES@
+ export DICT_SYSTEM_DIR=@DICT_SYSTEM_DIR@
+ export DISABLE_CVE_TESTS=@DISABLE_CVE_TESTS@
+ export DISABLE_DYNLOADING=@DISABLE_DYNLOADING@
+-export DISABLE_OPENSSL=@DISABLE_OPENSSL@
+ export DISABLE_PYTHON=@DISABLE_PYTHON@
+ export DLOPEN_LIBS=@DLOPEN_LIBS@
+ export DLLTOOL=@DLLTOOL@
+@@ -438,8 +439,6 @@ export OOO_JUNIT_JAR=@OOO_JUNIT_JAR@
+ export BFFVALIDATOR=@BFFVALIDATOR@
+ export OOO_JUNIT_JAR=@OOO_JUNIT_JAR@
+ export OOO_VENDOR=@OOO_VENDOR@
+-export OPENSSL_CFLAGS=$(gb_SPACE)@OPENSSL_CFLAGS@
+-export OPENSSL_LIBS=$(gb_SPACE)@OPENSSL_LIBS@
+ export OPENSYMBOL_TTF=@OPENSYMBOL_TTF@
+ export ORCUS_CFLAGS=$(gb_SPACE)@ORCUS_CFLAGS@
+ export ORCUS_LIBS=$(gb_SPACE)@ORCUS_LIBS@
+@@ -569,7 +568,6 @@ export SYSTEM_ODBC_HEADERS=@SYSTEM_ODBC_HEADERS@
+ export SYSTEM_ODBC_HEADERS=@SYSTEM_ODBC_HEADERS@
+ export SYSTEM_ODFGEN=@SYSTEM_ODFGEN@
+ export SYSTEM_OPENLDAP=@SYSTEM_OPENLDAP@
+-export SYSTEM_OPENSSL=@SYSTEM_OPENSSL@
+ export SYSTEM_PAGEMAKER=@SYSTEM_PAGEMAKER@
+ export SYSTEM_POPPLER=@SYSTEM_POPPLER@
+ export SYSTEM_POSTGRESQL=@SYSTEM_POSTGRESQL@
+diff --git a/configure.ac b/configure.ac
+index 3862386..45d5e25 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -9422,67 +9422,6 @@ else
+ AC_MSG_RESULT([no])
+ fi
+
+-dnl ===================================================================
+-dnl Check for system openssl
+-dnl ===================================================================
+-DISABLE_OPENSSL=
+-AC_MSG_CHECKING([whether to disable OpenSSL usage])
+-if test "$enable_openssl" = "yes"; then
+- AC_MSG_RESULT([no])
+- if test "$_os" = Darwin ; then
+- # OpenSSL is deprecated when building for 10.7 or later.
+- #
+- # http://stackoverflow.com/questions/7406946/why-is-apple-deprecating-openssl-in-macos-10-7-lion
+- # http://stackoverflow.com/questions/7475914/libcrypto-deprecated-on-mac-os-x-10-7-lion
+-
+- with_system_openssl=no
+- libo_CHECK_SYSTEM_MODULE([openssl],[OPENSSL],[openssl])
+- elif test "$_os" = "NetBSD" -o "$_os" = "OpenBSD" -o "$_os" = "DragonFly" \
+- && test "$with_system_openssl" != "no"; then
+- with_system_openssl=yes
+- SYSTEM_OPENSSL=TRUE
+- OPENSSL_CFLAGS=
+- OPENSSL_LIBS="-lssl -lcrypto"
+- else
+- libo_CHECK_SYSTEM_MODULE([openssl],[OPENSSL],[openssl])
+- fi
+- if test "$with_system_openssl" = "yes"; then
+- AC_MSG_CHECKING([whether openssl supports SHA512])
+- AC_LANG_PUSH([C])
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <openssl/sha.h>]],[[
+- SHA512_CTX context;
+-]])],[AC_MSG_RESULT([yes])],[AC_MSG_ERROR([no, openssl too old. Need >= 0.9.8.])])
+- AC_LANG_POP(C)
+- fi
+-else
+- AC_MSG_RESULT([yes])
+- DISABLE_OPENSSL=TRUE
+-
+- # warn that although OpenSSL is disabled, system libraries may depend on it
+- AC_MSG_WARN([OpenSSL has been disabled. No code compiled here will make use of it but system libraries may create indirect dependencies])
+- add_warning "OpenSSL has been disabled. No code compiled here will make use of it but system libraries may create indirect dependencies"
+-fi
+-
+-AC_SUBST([DISABLE_OPENSSL])
+-
+-if test "$enable_cipher_openssl_backend" = yes && test "$DISABLE_OPENSSL" = TRUE; then
+- if test "$libo_fuzzed_enable_cipher_openssl_backend" = yes; then
+- AC_MSG_NOTICE([Resetting --enable-cipher-openssl-backend=no])
+- enable_cipher_openssl_backend=no
+- else
+- AC_MSG_ERROR([--enable-cipher-openssl-backend needs OpenSSL, but --disable-openssl was given.])
+- fi
+-fi
+-AC_MSG_CHECKING([whether to enable the OpenSSL backend for rtl/cipher.h])
+-ENABLE_CIPHER_OPENSSL_BACKEND=
+-if test "$enable_cipher_openssl_backend" = yes; then
+- AC_MSG_RESULT([yes])
+- ENABLE_CIPHER_OPENSSL_BACKEND=TRUE
+-else
+- AC_MSG_RESULT([no])
+-fi
+-AC_SUBST([ENABLE_CIPHER_OPENSSL_BACKEND])
+-
+ dnl ===================================================================
+ dnl Check for building gnutls
+ dnl ===================================================================
+
+.. and without these gbuild still wants it ...
+
+diff --git a/external/Module_external.mk b/external/Module_external.mk
+index 44280e3..44c1c63 100644
+--- a/external/Module_external.mk
++++ b/external/Module_external.mk
+@@ -82,7 +82,6 @@ $(eval $(call gb_Module_add_moduledirs,external,\
+ $(call gb_Helper_optional,NSS,nss) \
+ $(call gb_Helper_optional,ODFGEN,libodfgen) \
+ $(call gb_Helper_optional,OPENLDAP,openldap) \
+- $(call gb_Helper_optional,OPENSSL,openssl) \
+ $(call gb_Helper_optional,ORCUS,liborcus) \
+ $(call gb_Helper_optional,OWNCLOUD_ANDROID_LIB,owncloud-android-lib) \
+ $(call gb_Helper_optional,PAGEMAKER,libpagemaker) \
+diff --git a/oox/CppunitTest_oox_tokenmap.mk b/oox/CppunitTest_oox_tokenmap.mk
+index 9eac2a5..ef6d5c9 100644
+--- a/oox/CppunitTest_oox_tokenmap.mk
++++ b/oox/CppunitTest_oox_tokenmap.mk
+@@ -20,19 +20,10 @@ $(eval $(call gb_CppunitTest_use_sdk_api,oox_tokenmap))
+
+ $(eval $(call gb_CppunitTest_use_library_objects,oox_tokenmap,oox))
+
+-ifeq ($(TLS),OPENSSL)
+-$(eval $(call gb_CppunitTest_use_externals,oox_tokenmap,\
+- openssl \
+- openssl_headers \
+-))
+-else
+-ifeq ($(TLS),NSS)
+ $(eval $(call gb_CppunitTest_use_externals,oox_tokenmap,\
+ plc4 \
+ nss3 \
+ ))
+-endif
+-endif
+
+ $(eval $(call gb_CppunitTest_use_libraries,oox_tokenmap,\
+ avmedia \
+diff --git a/oox/Library_oox.mk b/oox/Library_oox.mk
+index fcd7215..a178883 100644
+--- a/oox/Library_oox.mk
++++ b/oox/Library_oox.mk
+@@ -67,19 +67,10 @@ $(eval $(call gb_Library_use_externals,oox,\
+ boost_headers \
+ ))
+
+-ifeq ($(TLS),OPENSSL)
+-$(eval $(call gb_Library_use_externals,oox,\
+- openssl \
+- openssl_headers \
+-))
+-else
+-ifeq ($(TLS),NSS)
+ $(eval $(call gb_Library_use_externals,oox,\
+ plc4 \
+ nss3 \
+ ))
+-endif
+-endif
+
+ $(eval $(call gb_Library_set_componentfile,oox,oox/util/oox))
+
+diff --git a/ucb/CppunitTest_ucb_webdav_local_neon.mk b/ucb/CppunitTest_ucb_webdav_local_neon.mk
+index 20e827b..9b869f9 100644
+--- a/ucb/CppunitTest_ucb_webdav_local_neon.mk
++++ b/ucb/CppunitTest_ucb_webdav_local_neon.mk
+@@ -34,7 +34,6 @@ $(eval $(call gb_CppunitTest_use_externals,ucb_webdav_local_neon,\
+ boost_headers \
+ libxml2 \
+ neon \
+- openssl \
+ ))
+
+ $(eval $(call gb_CppunitTest_use_custom_headers,ucb_webdav_local_neon,\
+diff --git a/ucb/Library_ucpdav1.mk b/ucb/Library_ucpdav1.mk
+index 37f3c8f..2167dd2 100644
+--- a/ucb/Library_ucpdav1.mk
++++ b/ucb/Library_ucpdav1.mk
+@@ -30,7 +30,6 @@ $(eval $(call gb_Library_use_externals,ucpdav1,\
+ boost_headers \
+ libxml2 \
+ neon \
+- openssl \
+ ))
+
+ $(eval $(call gb_Library_use_custom_headers,ucpdav1,\
+@@ -66,7 +65,6 @@ else # WITH_WEBDAV == serf
+ $(eval $(call gb_Library_use_externals,ucpdav1,\
+ boost_headers \
+ apr \
+- openssl \
+ serf \
+ zlib \
+ ))
+diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
+index 0fc7d25..fe5a208 100644
+--- a/RepositoryExternal.mk
++++ b/RepositoryExternal.mk
+@@ -1525,75 +1525,6 @@ endif # ENABLE_HARFBUZZ
+
+ ifeq ($(DISABLE_OPENSSL),TRUE)
+
+-gb_ExternalProject__use_openssl:=
+-gb_LinkTarget__use_openssl_headers:=
+-gb_LinkTarget__use_openssl:=
+-
+-else # !DISABLE_OPENSSL
+-
+-ifneq ($(SYSTEM_OPENSSL),)
+-
+-gb_LinkTarget__use_openssl_headers:=
+-gb_ExternalProject__use_openssl:=
+-
+-define gb_LinkTarget__use_openssl
+-$(call gb_LinkTarget_set_include,$(1),\
+- $$(INCLUDE) \
+- $(OPENSSL_CFLAGS) \
+-)
+-$(call gb_LinkTarget_add_libs,$(1),$(OPENSSL_LIBS))
+-
+-endef
+-
+-else # !SYSTEM_OPENSSL
+-
+-$(eval $(call gb_Helper_register_packages_for_install,ooo, \
+- openssl \
+-))
+-
+-define gb_ExternalProject__use_openssl
+-$(call gb_ExternalProject_use_package,$(1),openssl)
+-
+-endef
+-
+-define gb_LinkTarget__use_openssl_headers
+-$(call gb_LinkTarget_use_external_project,$(1),openssl)
+-$(call gb_LinkTarget_set_include,$(1),\
+- -I$(call gb_UnpackedTarball_get_dir,openssl)/include \
+- $$(INCLUDE) \
+-)
+-
+-endef
+-
+-define gb_LinkTarget__use_openssl
+-$(call gb_LinkTarget_use_package,$(1),openssl)
+-ifeq ($(OS),WNT)
+-$(call gb_LinkTarget_add_libs,$(1),\
+- $(call gb_UnpackedTarball_get_dir,openssl)/out32dll/ssleay32.lib \
+- $(call gb_UnpackedTarball_get_dir,openssl)/out32dll/libeay32.lib \
+-)
+-else
+-$(call gb_LinkTarget_add_libs,$(1),\
+- $(call gb_UnpackedTarball_get_dir,openssl)/libssl.a \
+- $(call gb_UnpackedTarball_get_dir,openssl)/libcrypto.a \
+-)
+-$(call gb_LinkTarget_use_external_project,$(1),openssl)
+-ifeq ($(OS),SOLARIS)
+-$(call gb_LinkTarget_add_libs,$(1),\
+- -lnsl \
+- -lsocket \
+-)
+-endif
+-endif
+-
+-endef
+-
+-endif # SYSTEM_OPENSSL
+-endif # DISABLE_OPENSSL
+-
+-
+-ifeq ($(DISABLE_OPENSSL),TRUE)
+-
+ define gb_LinkTarget__use_gnutls
+ $(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+diff --git a/ucb/CppunitTest_ucb_webdav_neon_opts.mk b/ucb/CppunitTest_ucb_webdav_neon_opts.mk
+index 91e167b..21e5257 100644
+--- a/ucb/CppunitTest_ucb_webdav_neon_opts.mk
++++ b/ucb/CppunitTest_ucb_webdav_neon_opts.mk
+@@ -34,7 +34,6 @@ $(eval $(call gb_CppunitTest_use_externals,ucb_webdav_neon_opts,\
+ boost_headers \
+ libxml2 \
+ neon \
+- openssl \
+ ))
+
+ $(eval $(call gb_CppunitTest_use_custom_headers,ucb_webdav_neon_opts,\
+diff --git a/ucb/CppunitTest_ucb_webdav_propfindcache.mk b/ucb/CppunitTest_ucb_webdav_propfindcache.mk
+index ebbaee7..e2d064e 100644
+--- a/ucb/CppunitTest_ucb_webdav_propfindcache.mk
++++ b/ucb/CppunitTest_ucb_webdav_propfindcache.mk
+@@ -34,7 +34,6 @@ $(eval $(call gb_CppunitTest_use_externals,ucb_webdav_propfindcache,\
+ boost_headers \
+ libxml2 \
+ neon \
+- openssl \
+ ))
+
+ $(eval $(call gb_CppunitTest_use_custom_headers,ucb_webdav_propfindcache,\
+diff --git a/ucb/CppunitTest_ucb_webdav_res_access.mk b/ucb/CppunitTest_ucb_webdav_res_access.mk
+index ac48f87..c7d151e 100644
+--- a/ucb/CppunitTest_ucb_webdav_res_access.mk
++++ b/ucb/CppunitTest_ucb_webdav_res_access.mk
+@@ -34,7 +34,6 @@ $(eval $(call gb_CppunitTest_use_externals,ucb_webdav_res_access,\
+ boost_headers \
+ libxml2 \
+ neon \
+- openssl \
+ ))
+
+ $(eval $(call gb_CppunitTest_use_custom_headers,ucb_webdav_res_access,\
+diff --git a/connectivity/Library_mysqlc.mk b/connectivity/Library_mysqlc.mk
+index f765fb1e305f..0999b46d3eec 100644
+--- a/connectivity/Library_mysqlc.mk
++++ b/connectivity/Library_mysqlc.mk
+@@ -12,7 +12,6 @@ $(eval $(call gb_Library_Library,mysqlc))
+ $(eval $(call gb_Library_use_externals,mysqlc,\
+ boost_headers \
+ mariadb-connector-c \
+- openssl \
+ ))
+
+ $(eval $(call gb_Library_set_include,mysqlc,\