diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-11-03 20:22:44 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-11-04 02:36:59 -0600 |
commit | 547d2c75824ab0e22fe33ff6d7d40fd5b313ff26 (patch) | |
tree | c714a64ce7c520719878740b2e6b7c42dd6cd8ef /external/postgresql/postgresql-9.2.1-libreoffice.patch | |
parent | 40276b4ceb72f1d070bb1457ed5b403b35ca4deb (diff) |
fdo#70393: move postgresql to a subdir of external
Change-Id: Ibd7c9a4db0150bdb115b061e21587ca964dc2c84
Reviewed-on: https://gerrit.libreoffice.org/6549
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'external/postgresql/postgresql-9.2.1-libreoffice.patch')
-rw-r--r-- | external/postgresql/postgresql-9.2.1-libreoffice.patch | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/external/postgresql/postgresql-9.2.1-libreoffice.patch b/external/postgresql/postgresql-9.2.1-libreoffice.patch new file mode 100644 index 000000000000..87d3da716644 --- /dev/null +++ b/external/postgresql/postgresql-9.2.1-libreoffice.patch @@ -0,0 +1,113 @@ +--- misc/build/postgresql-9.1.1/src/interfaces/libpq/Makefile 2011-09-22 23:57:57.000000000 +0200 ++++ misc/build/postgresql-9.1.1.patched/src/interfaces/libpq/Makefile 2011-12-15 09:02:18.000000000 +0100 +@@ -148,3 +148,6 @@ + maintainer-clean: distclean maintainer-clean-lib + $(MAKE) -C test $@ + rm -f libpq-dist.rc ++ ++libpq-flags.mk: ++ @printf '%s\n' 'LIBPQ_DEP_LIBS+=$(SHLIB_LINK)' > '$@' +--- misc/build/postgresql-9.1.1/src/interfaces/libpq/win32.mak 2011-12-14 14:28:59.000000000 +0100 ++++ misc/build/postgresql-9.1.1.patched/src/interfaces/libpq/win32.mak 2011-12-15 09:11:37.000000000 +0100 +@@ -11,30 +11,29 @@ + + # CPU="i386" or CPU environment of nmake.exe (AMD64 or IA64) + +-!IF ("$(CPU)" == "")||("$(CPU)" == "i386") +-CPU=i386 ++!IF ("$(CPU)" == "")||("$(CPU)" == "I") ++MACHINE=i386 + !MESSAGE Building the Win32 static library... + !MESSAGE +-!ELSEIF ("$(CPU)" == "IA64")||("$(CPU)" == "AMD64") ++!ELSEIF ("$(CPU)" == "X") ++MACHINE=AMD64 + ADD_DEFINES=/D "WIN64" /Wp64 /GS + ADD_SECLIB=bufferoverflowU.lib + !MESSAGE Building the Win64 static library... + !MESSAGE + !ELSE + !MESSAGE Please check a CPU=$(CPU) ? +-!MESSAGE CPU=i386 or AMD64 or IA64 ++!MESSAGE CPU=I or X + !ERROR Make aborted. + !ENDIF + + !IFDEF DEBUG +-OPT=/Od /Zi /MDd ++OPT=/Od /Zi + LOPT=/DEBUG +-DEBUGDEF=/D _DEBUG +-OUTFILENAME=libpqd ++OUTFILENAME=libpq + !ELSE + OPT=/O2 /MD + LOPT= +-DEBUGDEF=/D NDEBUG + OUTFILENAME=libpq + !ENDIF + +@@ -54,7 +53,7 @@ + !ENDIF + + !IF "$(KFW_LIB_PATH)" == "" +-KFW_LIB_PATH=C:\kfw-2.6.5\lib\$(CPU) ++KFW_LIB_PATH=C:\kfw-2.6.5\lib\$(MACHINE) + !MESSAGE Using default Kerberos Library directory: $(KFW_LIB_PATH) + !ENDIF + +@@ -67,18 +66,11 @@ + CPP=cl.exe + RSC=rc.exe + +-!IFDEF DEBUG +-OUTDIR=.\Debug +-INTDIR=.\Debug +-CPP_OBJS=.\Debug/ +-!ELSE +-OUTDIR=.\Release +-INTDIR=.\Release +-CPP_OBJS=.\Release/ +-!ENDIF +- ++OUTDIR=. ++INTDIR=. ++CPP_OBJS=./ + +-ALL : config "$(OUTDIR)\$(OUTFILENAME).lib" "$(OUTDIR)\$(OUTFILENAME).dll" ++ALL : config "$(OUTDIR)\$(OUTFILENAME).lib" + + CLEAN : + -@erase "$(INTDIR)\getaddrinfo.obj" +@@ -178,10 +170,11 @@ + "$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +-CPP_PROJ=/nologo /W3 /EHsc $(OPT) /I "..\..\include" /I "..\..\include\port\win32" /I "..\..\include\port\win32_msvc" /I "..\..\port" /I. /I "$(SSL_INC)" \ ++CPP_PROJ=/nologo /W3 /EHsc $(OPT) /I "..\..\include" /I "..\..\include\port\win32" /I "..\..\include\port\win32_msvc" /I "..\..\port" /I. $(SOLARINC) /I $(WORKDIR)/UnpackedTarball/openssl/include \ + /D "FRONTEND" $(DEBUGDEF) \ + /D "WIN32" /D "_WINDOWS" /Fp"$(INTDIR)\libpq.pch" \ + /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c \ ++ /D "_CRT_NONSTDC_NO_DEPRECATE" \ + /D "_CRT_SECURE_NO_DEPRECATE" $(ADD_DEFINES) + + !IFDEF USE_SSL +@@ -205,7 +198,7 @@ + LINK32=link.exe + LINK32_FLAGS=kernel32.lib user32.lib advapi32.lib shfolder.lib wsock32.lib ws2_32.lib secur32.lib $(SSL_LIBS) $(KFW_LIB) $(ADD_SECLIB) \ + /nologo /subsystem:windows /dll $(LOPT) /incremental:no \ +- /pdb:"$(OUTDIR)\libpqdll.pdb" /machine:$(CPU) \ ++ /pdb:"$(OUTDIR)\libpqdll.pdb" /machine:$(MACHINE) \ + /out:"$(OUTDIR)\$(OUTFILENAME).dll"\ + /implib:"$(OUTDIR)\$(OUTFILENAME)dll.lib" \ + /libpath:"$(SSL_LIB_PATH)" /libpath:"$(KFW_LIB_PATH)" \ +@@ -222,7 +215,7 @@ + << + + "$(INTDIR)\libpq.res" : "$(INTDIR)" libpq-dist.rc +- $(RSC) $(RSC_PROJ) libpq-dist.rc ++ $(RSC) $(SOLARINC) $(RSC_PROJ) libpq-dist.rc + + + "$(OUTDIR)\$(OUTFILENAME).dll" : "$(OUTDIR)" "$(INTDIR)\libpq.res" + |