Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libpq] update to 12.0 #8551

Closed
wants to merge 57 commits into from
Closed
Show file tree
Hide file tree
Changes from 55 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
691bfe9
update to 12.0 and change to vcpkg_configure_make
TheScarfix Oct 7, 2019
f4958db
remove msys line
TheScarfix Oct 7, 2019
7a12ef3
remove custom cmakelists
TheScarfix Oct 7, 2019
ca00ccc
use --without-readline on linux
TheScarfix Oct 8, 2019
df2729e
fix portfile
TheScarfix Oct 8, 2019
9858173
Merge remote-tracking branch 'upstream/master' into libpq-12.0
Neumann-A Oct 9, 2019
c5a0229
add all possible libpq features
Neumann-A Oct 9, 2019
2abdf11
create vcpkg_get_build_depends
Neumann-A Oct 9, 2019
5d8262d
create vcpkg_read_dependent_port_info
Neumann-A Oct 9, 2019
46bdf9b
add vcpkg_write_port_info
Neumann-A Oct 9, 2019
810a224
fix a few bugs
Neumann-A Oct 9, 2019
719c7e6
libpq first succesful x86 build with core features.
Neumann-A Oct 9, 2019
1ce3efa
always write the variable
Neumann-A Oct 9, 2019
844a5ca
Merge remote-tracking branch 'upstream/master' into libpq-12.0
Neumann-A Oct 10, 2019
23306a1
Fix separate make and install execution error issue.
Oct 10, 2019
6050d48
trigger CI system.
Oct 10, 2019
8a70b74
add openssl and win_bison win_flex patch
Neumann-A Oct 10, 2019
efeea84
add configuration dependent patches
Neumann-A Oct 10, 2019
77cd93c
add bonjour as a dependency on macosx
Neumann-A Oct 10, 2019
6573e38
apply patches and configure features
Neumann-A Oct 10, 2019
df2e643
more patches to fix the windows build
Neumann-A Oct 10, 2019
30b9a11
more install fixes
Neumann-A Oct 10, 2019
ef88807
remove unnecessary code
Neumann-A Oct 10, 2019
bd919c3
bit of code cleanup
Neumann-A Oct 10, 2019
bb53e92
remove unrelated files
Neumann-A Oct 10, 2019
89a4d6e
remove unrelated function call. function was removed with last commit
Neumann-A Oct 10, 2019
f37ba3e
removed hardcoded platform
Neumann-A Oct 10, 2019
144cadf
fix patch
Neumann-A Oct 10, 2019
9516a6b
build only the interface libraries and nothing more
Neumann-A Oct 10, 2019
3bbfc52
forgot to remove tool ecpg from install
Neumann-A Oct 10, 2019
7ddd75b
seperate minimal install patch from normal install patch and introduc…
Neumann-A Oct 10, 2019
42eea64
fix x86 Platform variable being x86 and not Win32 as required by the …
Neumann-A Oct 10, 2019
503c53d
Merge remote-tracking branch 'jack/dev/jack/8473' into libpq-12.0
Neumann-A Oct 10, 2019
b981594
make linux build work
Neumann-A Oct 10, 2019
263d5ca
make more linux work
Neumann-A Oct 10, 2019
6792d04
openssl return version number directly without calling openssl
Neumann-A Oct 10, 2019
543d14c
fix some more path and platform identification
Neumann-A Oct 10, 2019
11c6081
comments to reduce install. currently libpq installs static and share…
Neumann-A Oct 10, 2019
fe8f5b8
patch arm
Neumann-A Oct 10, 2019
6f2e9df
fix platform detection logic
Neumann-A Oct 10, 2019
0447798
make libpq osx buildable
Neumann-A Oct 11, 2019
ed3e171
Rename debug import library after build.
Neumann-A Oct 11, 2019
afb0f6b
revert debug naming and install a wrapper instead.
Neumann-A Oct 11, 2019
5669620
fix gdal regression due to name change
Neumann-A Oct 11, 2019
e4a5509
fix cutelyst regression due to qt5-base wrapper
Neumann-A Oct 11, 2019
5d4cb90
correct wrapper install path
Neumann-A Oct 11, 2019
42b6dee
correct the arm patch.
Neumann-A Oct 11, 2019
206b7d4
trying to fix static gdal build
Neumann-A Oct 11, 2019
238c9cb
gdal still needs more work
Neumann-A Oct 11, 2019
5c3c3e6
Merge branch 'master' into libpq-12.0
Neumann-A Oct 22, 2019
4c13141
Merge branch 'master' into libpq-12.0
Neumann-A Dec 4, 2019
347a585
fix linebreak in qt5-base
Neumann-A Dec 9, 2019
ef3e830
Merge branch 'master' into libpq-12.0
Neumann-A Jan 7, 2020
785229a
trying to revert some changes
Neumann-A Jan 13, 2020
5c9a06c
revert changes in build make
Neumann-A Jan 13, 2020
87601b8
revert x264 version bump
Neumann-A Jan 13, 2020
a5f6f9f
fix pdal regressions on x64-windows-static
Neumann-A Jan 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion ports/gdal/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,17 @@ if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStor
# Setup PostgreSQL libraries + include path
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/include" PGSQL_INCLUDE_DIR)
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/lib/libpq.lib" PGSQL_LIBRARY_REL)
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/debug/lib/libpqd.lib" PGSQL_LIBRARY_DBG)
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/debug/lib/libpq.lib" PGSQL_LIBRARY_DBG)

file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/lib/libpgcommon.lib" TMP_REL)
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/debug/lib/libpgcommon.lib" TMP_DBG)
set(PGSQL_LIBRARY_REL "${PGSQL_LIBRARY_REL} ${TMP_REL}")
set(PGSQL_LIBRARY_DBG "${PGSQL_LIBRARY_DBG} ${TMP_DBG}")

file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/lib/libpgport.lib" TMP_REL)
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/debug/lib/libpgport.lib" TMP_DBG)
set(PGSQL_LIBRARY_REL "${PGSQL_LIBRARY_REL} ${TMP_REL}")
set(PGSQL_LIBRARY_DBG "${PGSQL_LIBRARY_DBG} ${TMP_DBG}")

# Setup OpenJPEG libraries + include path
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}/include" OPENJPEG_INCLUDE_DIR)
Expand Down
164 changes: 0 additions & 164 deletions ports/libpq/CMakeLists.txt

This file was deleted.

81 changes: 79 additions & 2 deletions ports/libpq/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,82 @@
Source: libpq
Version: 9.6.3
Version: 12.0
Build-Depends: libpq[bonjour] (osx)
Neumann-A marked this conversation as resolved.
Show resolved Hide resolved
Homepage: https://www.postgresql.org/
Description: The official database access API of postgresql
Build-Depends: openssl, zlib (linux)
Default-Features: zlib, openssl

Feature: openssl
Build-Depends: openssl
Description: support for encrypted client connections and random number generation on platforms that do not have "/dev/urandom" (except windows) (--with-openssl)

Feature: zlib
Build-Depends: zlib
Description: Use zlib (else --without-zlib)

Feature: readline
Build-Depends: readline
Description: Use readline (else --without-readline)

Feature: libedit
Build-Depends: libedit
Description: prefer libedit (--with-libedit-preferred)

Feature: perl
Build-Depends: perl
Description: build the server programming language PL/Perl (dynamic only?) (--with-perl)

Feature: python
Build-Depends: python
Description: build the PL/Python server programming language (dynamic only?) (--with-python)

Feature: tcl
Build-Depends: tcl
Description: build the PL/Tcl procedural language(dynamic only?) (--with-tcl)

Feature: nls
Build-Depends: gettext
Description: Native Language Support (--enable-nls[=LANGUAGES])

Feature: kerberos
Build-Depends: kerberos
Description: Kerberos Support (--with-gssapi)

Feature: systemd
Description: Build with support for systemd service notifications. (--with-systemd)

Feature: ldap
Build-Depends: openldap (linux)
Description: LDAP Support (--with-ldap)

Feature: bsd
Build-Depends: openbsd
Description: OpenBSD Support (--with-bsd-auth)

Feature: pam
Build-Depends: pam
Description: Build with PAM (Pluggable Authentication Modules) support. (--with-pam)

Feature: llvm
Build-Depends: llvm
Description: Build with support for LLVM based JIT compilation (--with-llvm)

Feature: icu
Build-Depends: icu
Description: Build with support for the ICU library (--with-icu)

Feature: bonjour
Description: Build with Bonjour support (--with-bonjour)

Feature: uuid
Description: Build the uuid-ossp module (which provides functions to generate UUIDs) (--with-uuid=LIBRARY LIBRARY=(bsd|e2fs|ossp))

Feature: xml
Build-Depends: libxml2
Description: Build with libxml (--with-libxml)

Feature: xslt
Build-Depends: libxslt
Description: Build with libxslt (--with-libxslt)

Feature: client
Description: Build all client tools and libraries.
27 changes: 27 additions & 0 deletions ports/libpq/config.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
our $config = {
asserts => 0, # --enable-cassert
# float4byval=>1, # --disable-float4-byval, on by default

# float8byval=> $platformbits == 64, # --disable-float8-byval,
# off by default on 32 bit platforms, on by default on 64 bit platforms

# blocksize => 8, # --with-blocksize, 8kB by default
# wal_blocksize => 8, # --with-wal-blocksize, 8kB by default
ldap => undef, # --with-ldap
extraver => undef, # --with-extra-version=<string>
gss => undef, # --with-gssapi=<path>
icu => undef, # --with-icu=<path>
nls => undef, # --enable-nls=<path>
tap_tests => undef, # --enable-tap-tests
tcl => undef, # --with-tcl=<path>
perl => undef, # --with-perl
python => undef, # --with-python=<path>
openssl => undef, # --with-openssl=<path>
uuid => undef, # --with-ossp-uuid
xml => undef, # --with-libxml=<path>
xslt => undef, # --with-libxslt=<path>
iconv => undef, # (not in configure, path to iconv)
zlib => undef # --with-zlib=<path>
};

1;
23 changes: 23 additions & 0 deletions ports/libpq/patches/windows/MSBuildProject-static-crt.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
index 823357c02..faa3e336f 100644
--- a/src/tools/msvc/MSBuildProject.pm
+++ b/src/tools/msvc/MSBuildProject.pm
@@ -84,16 +84,16 @@ EOF
defs => "_DEBUG;DEBUG=1",
opt => 'Disabled',
strpool => 'false',
- runtime => 'MultiThreadedDebugDLL'
+ runtime => 'MultiThreadedDebug'
});
$self->WriteItemDefinitionGroup(
$f,
'Release',
{
defs => "",
opt => 'Full',
strpool => 'true',
- runtime => 'MultiThreadedDLL'
+ runtime => 'MultiThreaded'
});
return;
}
13 changes: 13 additions & 0 deletions ports/libpq/patches/windows/MSBuildProject-static-lib.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
index 823357c02..e1dc59aa7 100644
--- a/src/tools/msvc/MSBuildProject.pm
+++ b/src/tools/msvc/MSBuildProject.pm
@@ -262,7 +262,7 @@ sub WriteConfigurationPropertyGroup
my $cfgtype =
($self->{type} eq "exe")
? 'Application'
- : ($self->{type} eq "dll" ? 'DynamicLibrary' : 'StaticLibrary');
+ : ($self->{type} eq "dll" ? 'StaticLibrary' : 'StaticLibrary');

print $f <<EOF;
<PropertyGroup Condition="'\$(Configuration)|\$(Platform)'=='$cfgname|$self->{platform}'" Label="Configuration">
13 changes: 13 additions & 0 deletions ports/libpq/patches/windows/Mkvcbuild-static-lib.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
index 99f39caa5..4f51c12f2 100644
--- a/src/tools/msvc/Mkvcbuild.pm
+++ b/src/tools/msvc/Mkvcbuild.pm
@@ -182,7 +182,7 @@ sub mkvcbuild
'syncrep_gram.y');
$postgres->AddFiles('src/backend/utils/adt', 'jsonpath_scan.l',
'jsonpath_gram.y');
- $postgres->AddDefine('BUILDING_DLL');
+ # $postgres->AddDefine('BUILDING_DLL');
$postgres->AddLibrary('secur32.lib');
$postgres->AddLibrary('ws2_32.lib');
$postgres->AddLibrary('wldap32.lib') if ($solution->{options}->{ldap});
39 changes: 39 additions & 0 deletions ports/libpq/patches/windows/Solution.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 51711c2bf..d33fdc3b0 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -69,9 +69,15 @@ sub DeterminePlatform
my $self = shift;

# Examine CL help output to determine if we are in 32 or 64-bit mode.
- my $output = `cl /? 2>&1`;
+ my $output = `cl 2>&1`;
$? >> 8 == 0 or die "cl command not found";
- $self->{platform} = ($output =~ /^\/favor:<.+AMD64/m) ? 'x64' : 'Win32';
+ if ($output =~ m/x64\n/) { $self->{platform} = 'x64';
+ } elsif ($output =~ m/x86\n/) { $self->{platform} = 'Win32';
+ } elsif ($output =~ m/ARM64\n/) { $self->{platform} = 'ARM64';
+ } elsif ($output =~ m/ARM\n/) { $self->{platform} = 'ARM';
+ } else { $self->{platform} = 'Unknown'
+ }
+ print "cl output $output.";
print "Detected hardware platform: $self->{platform}\n";
return;
}
@@ -526,14 +526,14 @@ EOF
|| confess "Could not open pg_config_paths.h";
print $o <<EOF;
#define PGBINDIR "/bin"
-#define PGSHAREDIR "/share"
+#define PGSHAREDIR "/share/libpq"
#define SYSCONFDIR "/etc"
#define INCLUDEDIR "/include"
#define PKGINCLUDEDIR "/include"
#define INCLUDEDIRSERVER "/include/server"
#define LIBDIR "/lib"
#define PKGLIBDIR "/lib"
-#define LOCALEDIR "/share/locale"
+#define LOCALEDIR "/share/libpq/locale"
#define DOCDIR "/doc"
#define HTMLDIR "/doc"
#define MANDIR "/man"
Loading