<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/06de34db80fead26dc72788889778a06ceec81a9">https://github.com/macports/macports-ports/commit/06de34db80fead26dc72788889778a06ceec81a9</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 06de34db80fead26dc72788889778a06ceec81a9
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Tue Apr 5 16:42:55 2022 -0400
<span style='display:block; white-space:pre;color:#404040;'> libreoffice: backport patches for 12.3 SDK
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Until upstream releases the patches
</span>---
office/libreoffice/Portfile | 7 ++
...rop-with-macosx-version-max-allowed-switch.diff | 121 +++++++++++++++++++++
office/libreoffice/files/patch-12.3SDK.diff | 36 ++++++
3 files changed, 164 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/office/libreoffice/Portfile b/office/libreoffice/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f52daaf2131..ce5111a985f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/office/libreoffice/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/office/libreoffice/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -169,6 +169,13 @@ if {${os.platform} eq "darwin" && ${os.major} < 19} {
</span>
set product_name LibreOffice
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Temporary fix for building against macOS 12.3 SDK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ drop-with-macosx-version-max-allowed-switch.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-12.3SDK.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.args \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> pre-configure {
system "cd ${worksrcpath} && env NOCONFIGURE=1 ./autogen.sh"
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/office/libreoffice/files/drop-with-macosx-version-max-allowed-switch.diff b/office/libreoffice/files/drop-with-macosx-version-max-allowed-switch.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b546ae5667b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/office/libreoffice/files/drop-with-macosx-version-max-allowed-switch.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,121 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/config_host.mk.in b/config_host.mk.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 8d7b6bdfe7bf1..c5a945b965222 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/config_host.mk.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/config_host.mk.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -425,7 +425,6 @@ export MACOSX_CODESIGNING_IDENTITY=@MACOSX_CODESIGNING_IDENTITY@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export MACOSX_DEPLOYMENT_TARGET=@MACOSX_DEPLOYMENT_TARGET@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export MACOSX_PACKAGE_SIGNING_IDENTITY=@MACOSX_PACKAGE_SIGNING_IDENTITY@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export MACOSX_SDK_PATH=@MACOSX_SDK_PATH@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-export MAC_OS_X_VERSION_MAX_ALLOWED=@MAC_OS_X_VERSION_MAX_ALLOWED@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export MAC_OS_X_VERSION_MIN_REQUIRED=@MAC_OS_X_VERSION_MIN_REQUIRED@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export MANDIR=@MANDIR@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export MARIADBC_MAJOR=@MARIADBC_MAJOR@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/configure.ac b/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index de2ff85defccb..911a02107f525 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2813,14 +2813,6 @@ AC_ARG_WITH(macosx-version-min-required,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ,)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-AC_ARG_WITH(macosx-version-max-allowed,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AS_HELP_STRING([--with-macosx-version-max-allowed=<version>],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [set the maximum allowed OS version the LibreOffice compilation can use APIs from])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- e. g.: --with-macosx-version-max-allowed=11.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-,)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dnl ===================================================================
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dnl options for stuff used during cross-compilation build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3333,10 +3325,6 @@ if test $_os = Darwin; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if test "$with_macosx_version_max_allowed" = "" ; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- with_macosx_version_max_allowed="$macosx_sdk"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # export this so that "xcrun" invocations later return matching values
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DEVELOPER_DIR="${MACOSX_SDK_PATH%/SDKs*}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DEVELOPER_DIR="${DEVELOPER_DIR%/Platforms*}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3422,54 +3410,13 @@ if test $_os = Darwin; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RANLIB=`xcrun -find ranlib`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- case "$with_macosx_version_max_allowed" in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.12)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MAC_OS_X_VERSION_MAX_ALLOWED="101200"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.13)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MAC_OS_X_VERSION_MAX_ALLOWED="101300"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.14)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MAC_OS_X_VERSION_MAX_ALLOWED="101400"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.15)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MAC_OS_X_VERSION_MAX_ALLOWED="101500"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 11.0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MAC_OS_X_VERSION_MAX_ALLOWED="110000"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 11.1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MAC_OS_X_VERSION_MAX_ALLOWED="110100"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 11.3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MAC_OS_X_VERSION_MAX_ALLOWED="110300"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 12.0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MAC_OS_X_VERSION_MAX_ALLOWED="120000"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 12.1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MAC_OS_X_VERSION_MAX_ALLOWED="120100"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- *)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_MSG_ERROR([with-macosx-version-max-allowed $with_macosx_version_max_allowed is not a supported value, supported values are 10.12--12.1])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_MSG_CHECKING([that macosx-version-min-required is coherent with macosx-version-max-allowed])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if test $MAC_OS_X_VERSION_MIN_REQUIRED -gt $MAC_OS_X_VERSION_MAX_ALLOWED; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_MSG_ERROR([the version minimum required, $MAC_OS_X_VERSION_MIN_REQUIRED, must be <= the version maximum allowed, $MAC_OS_X_VERSION_MAX_ALLOWED])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_MSG_RESULT([ok])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_MSG_CHECKING([that macosx-version-max-allowed is coherent with macos-with-sdk])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if test $MAC_OS_X_VERSION_MAX_ALLOWED -gt $MACOSX_SDK_VERSION; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_MSG_ERROR([the version maximum allowed cannot be greater than the sdk level])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_MSG_CHECKING([that macosx-version-min-required is coherent with macos-with-sdk])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if test $MAC_OS_X_VERSION_MIN_REQUIRED -gt $MACOSX_SDK_VERSION; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_MSG_ERROR([the version minimum required cannot be greater than the sdk level])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT([ok])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_NOTICE([MAC_OS_X_VERSION_MIN_REQUIRED=$MAC_OS_X_VERSION_MIN_REQUIRED])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_MSG_NOTICE([MAC_OS_X_VERSION_MAX_ALLOWED=$MAC_OS_X_VERSION_MAX_ALLOWED])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_CHECKING([whether to do code signing])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3542,7 +3492,6 @@ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST(MACOSX_SDK_PATH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST(MAC_OS_X_VERSION_MIN_REQUIRED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-AC_SUBST(MAC_OS_X_VERSION_MAX_ALLOWED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST(INSTALL_NAME_TOOL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST(LIBTOOL) # Note that the macOS libtool command is unrelated to GNU libtool
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST(MACOSX_CODESIGNING_IDENTITY)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index b00da24116d52..5c072cba4dff1 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/solenv/gbuild/platform/macosx.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/solenv/gbuild/platform/macosx.mk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -32,7 +32,7 @@ gb_OSDEFS := \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -D_REENTRANT \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DNO_PTHREAD_PRIORITY \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- -DMAC_OS_X_VERSION_MAX_ALLOWED=$(MAC_OS_X_VERSION_MAX_ALLOWED) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -DMAC_OS_X_VERSION_MAX_ALLOWED=$(MAC_OS_X_VERSION_MIN_REQUIRED) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LFS_CFLAGS) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/office/libreoffice/files/patch-12.3SDK.diff b/office/libreoffice/files/patch-12.3SDK.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..44b03df7f8d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/office/libreoffice/files/patch-12.3SDK.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/configure.ac b/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 4011e8e5a8498..f577a45423c79 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/configure.ac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3415,7 +3415,7 @@ if test $_os = Darwin; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The SDK in the currently selected Xcode should be found.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_CHECKING([what macOS SDK to use])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- for macosx_sdk in 12.1 12.0 11.3 11.1 11.0 10.15 10.14 10.13; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ for macosx_sdk in 12.3 12.1 12.0 11.3 11.1 11.0 10.15 10.14 10.13; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MACOSX_SDK_PATH=`xcrun --sdk macosx${macosx_sdk} --show-sdk-path 2> /dev/null`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -d "$MACOSX_SDK_PATH"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ break
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3457,6 +3457,9 @@ if test $_os = Darwin; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 12.1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MACOSX_SDK_VERSION=120100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ 12.3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ MACOSX_SDK_VERSION=120300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_ERROR([macOS SDK $macosx_sdk is not supported])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3519,8 +3522,11 @@ if test $_os = Darwin; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 12.1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MAC_OS_X_VERSION_MIN_REQUIRED="120100"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ 12.3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ MAC_OS_X_VERSION_MIN_REQUIRED="120300"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_MSG_ERROR([with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported values are 10.12--12.1])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_MSG_ERROR([with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported values are 10.13--12.3])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>