configure.ac                              |    7 ++++++-
 external/cppunit/enable-win32-debug.patch |    4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit 1df094470ddf3c9c46dbc289e1582814acf6159d
Author:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
AuthorDate: Tue Nov 29 12:28:20 2022 +0100
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Sat Dec 3 17:41:45 2022 +0000

    accept Apple's patch utility - pickier than GNU patch, but should be OK
    
    macOS Ventura replaced the patch utility by Apple's version:
    patch 2.0-12u11-Apple (as of macOS 13.0.1)
    
    It is picker/less robust when it comes to locating matches, and absolutely
    refuses to apply when the hunks are out of order. Only one patch needed
    rework in the current codebase (master an 7-4 branch), and being more 
correct
    about the locations in the files to be patched is not a bad thing either, so
    accept Apple's version of patch (with a warning for now)
    
    Change-Id: I707d00958b814307b13caf9923f1de7f3919442c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143461
    Tested-by: Jenkins
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
    (cherry picked from commit ce31e09a6d40295cec4be9da8f4cec886d6c92c1)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143438
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/configure.ac b/configure.ac
index 5fe365b1b5d2..b9e13de79a57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11496,7 +11496,12 @@ if test "$_os" = "SunOS" -o "$_os" = "Darwin"; then
     if $GNUPATCH --version | grep "Free Software Foundation" >/dev/null 
2>/dev/null; then
         AC_MSG_RESULT([yes])
     else
-        AC_MSG_ERROR([no, GNU patch needed. install or specify with 
--with-gnu-patch=/path/to/it])
+        if $GNUPATCH --version | grep "2\.0-.*-Apple" >/dev/null 2>/dev/null; 
then
+            AC_MSG_RESULT([no, but accepted (Apple patch)])
+            add_warning "patch utility is not GNU patch. Apple's patch should 
work OK, but it might experience issues where GNU patch doesn't."
+        else
+            AC_MSG_ERROR([no, GNU patch needed. install or specify with 
--with-gnu-patch=/path/to/it])
+        fi
     fi
 else
     GNUPATCH=$PATCH
diff --git a/external/cppunit/enable-win32-debug.patch 
b/external/cppunit/enable-win32-debug.patch
index dc159ecc51ad..2c7f4f956d2f 100644
--- a/external/cppunit/enable-win32-debug.patch
+++ b/external/cppunit/enable-win32-debug.patch
@@ -1,6 +1,6 @@
 --- misc/cppunit-1.14.0/src/cppunit/cppunit_dll.vcxproj
 +++ misc/build/cppunit-1.14.0/src/cppunit/cppunit_dll.vcxproj
-@@ -107,7 +107,6 @@
+@@ -190,7 +190,6 @@
        <SuppressStartupBanner>true</SuppressStartupBanner>
        <WarningLevel>Level3</WarningLevel>
        <RuntimeTypeInfo>true</RuntimeTypeInfo>
@@ -8,7 +8,7 @@
        
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
        
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CPPUNIT_BUILD_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
        <AssemblerListingLocation>.\ReleaseDll\</AssemblerListingLocation>
-@@ -138,6 +137,7 @@
+@@ -222,6 +221,7 @@
      <Link>
        <SuppressStartupBanner>true</SuppressStartupBanner>
        <LinkDLL>true</LinkDLL>

Reply via email to