[Libreoffice-commits] core.git: external/firebird

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Dec 29 20:49:04 UTC 2020


 external/firebird/UnpackedTarball_firebird.mk |    1 +
 external/firebird/msvc.patch                  |   11 +++++++++++
 2 files changed, 12 insertions(+)

New commits:
commit c7efa4fd4f57fd4e0a46d1aee9a9f0f0652bb67b
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Dec 29 11:11:29 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Dec 29 21:48:22 2020 +0100

    external/firebird: Fix MSVC /Zc:strictStrings
    
    > C:/lo/core/workdir/UnpackedTarball/firebird/src/auth/trusted/AuthSspi.cpp(112): error C2664: 'SECURITY_STATUS (SEC_CHAR *,SEC_CHAR *,unsigned long,void *,void *,SEC_GET_KEY_FN,void *,PCredHandle,PTimeStamp)': cannot convert argument 2 from 'const char [5]' to 'SEC_CHAR *'
    > C:/lo/core/workdir/UnpackedTarball/firebird/src/auth/trusted/AuthSspi.cpp(112): note: Conversion from string literal loses const qualifier (see /Zc:strictStrings)
    
    Not sure why this only started to hit my build now.
    
    Change-Id: Idea0a8a2abaafe17183323a31f29173bd71fbeec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108451
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/external/firebird/UnpackedTarball_firebird.mk b/external/firebird/UnpackedTarball_firebird.mk
index 4fc27396429a..fef0b7fe48b1 100644
--- a/external/firebird/UnpackedTarball_firebird.mk
+++ b/external/firebird/UnpackedTarball_firebird.mk
@@ -43,6 +43,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,firebird,\
     external/firebird/firebird-307.patch.1 \
     external/firebird/0001-Fix-checks-for-null-HANDLE-in-Windows-only-code.patch.1 \
     external/firebird/0001-extern-cloop-Missing-dependency-of-BIN_DIR-cloop-on-.patch.1 \
+    external/firebird/msvc.patch \
 ))
 
 ifeq ($(OS),WNT)
diff --git a/external/firebird/msvc.patch b/external/firebird/msvc.patch
new file mode 100755
index 000000000000..3f403b496098
--- /dev/null
+++ b/external/firebird/msvc.patch
@@ -0,0 +1,11 @@
+--- src/auth/trusted/AuthSspi.cpp
++++ src/auth/trusted/AuthSspi.cpp
+@@ -109,7 +109,7 @@
+ 	  groupNames(*getDefaultMemoryPool()), sessionKey(*getDefaultMemoryPool())
+ {
+ 	TimeStamp timeOut;
+-	hasCredentials = initEntries() && (fAcquireCredentialsHandle(0, "NTLM",
++	hasCredentials = initEntries() && (fAcquireCredentialsHandle(0, const_cast<char *>("NTLM"),
+ 					SECPKG_CRED_BOTH, 0, 0, 0, 0,
+ 					&secHndl, &timeOut) == SEC_E_OK);
+ }


More information about the Libreoffice-commits mailing list