mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
postgresql: Update to version 11.3
Version 11.3 is the current stable relase. Changes between 9.3 and 11.3: - pg_receivexlog, pg_resetxlog and pg_xlogdump have been replaced with pg_resetwal - ZIC config variable must be set when cross compiling - disable systemd support - ecpg is no longer needed for building - MAKELEVEL must be set to 0 when called from another makefile - Setting AC_CONFIG_AUX_DIR([config]) is no longer requried - Decrease build time by removing unnecessary configure checks Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This commit is contained in:
+14
-17
@@ -5,7 +5,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=postgresql
|
||||
PKG_VERSION:=9.6.13
|
||||
PKG_VERSION:=11.3
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||
PKG_LICENSE:=PostgreSQL
|
||||
@@ -16,12 +16,12 @@ PKG_SOURCE_URL:=\
|
||||
http://ftp.postgresql.org/pub/source/v$(PKG_VERSION) \
|
||||
ftp://ftp.postgresql.org/pub/source/v$(PKG_VERSION)
|
||||
|
||||
PKG_HASH:=ecbed20056296a65b6a4f5526c477e3ae5cc284cb01a15507785ddb23831e9a4
|
||||
PKG_HASH:=2a85e082fc225944821dfd23990e32dfcd2284c19060864b0ad4ca537d30522d
|
||||
|
||||
PKG_USE_MIPS16:=0
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_MACRO_PATHS:=config
|
||||
PKG_BUILD_DEPENDS:=readline/host postgresql/host
|
||||
PKG_BUILD_DEPENDS:=postgresql/host
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
@@ -88,23 +88,19 @@ PGSQL_SERVER_BIN := \
|
||||
pg_dump \
|
||||
pg_dumpall \
|
||||
pg_isready \
|
||||
pg_receivexlog \
|
||||
pg_recvlogical \
|
||||
pg_resetxlog \
|
||||
pg_resetwal \
|
||||
pg_restore \
|
||||
pg_standby \
|
||||
pg_upgrade \
|
||||
pg_xlogdump \
|
||||
postgres \
|
||||
initdb
|
||||
|
||||
PGSQL_CLI_EXTRA_BIN := \
|
||||
clusterdb \
|
||||
createdb \
|
||||
createlang \
|
||||
createuser \
|
||||
dropdb \
|
||||
droplang \
|
||||
dropuser \
|
||||
pgbench \
|
||||
reindexdb \
|
||||
@@ -112,7 +108,9 @@ PGSQL_CLI_EXTRA_BIN := \
|
||||
|
||||
PGSQL_CONFIG_VARS:= \
|
||||
pgac_cv_snprintf_long_long_int_format="%lld" \
|
||||
pgac_cv_snprintf_size_t_support=yes
|
||||
pgac_cv_snprintf_size_t_support=yes \
|
||||
USE_DEV_URANDOM=1 \
|
||||
ZIC=zic
|
||||
|
||||
ifeq ($(CONFIG_USE_UCLIBC),y)
|
||||
# PostgreSQL does not build against uClibc with locales
|
||||
@@ -137,6 +135,7 @@ HOST_CONFIGURE_ARGS += \
|
||||
--without-python \
|
||||
--without-readline \
|
||||
--without-tcl \
|
||||
--without-systemd \
|
||||
--with-zlib="yes" \
|
||||
--enable-depend
|
||||
|
||||
@@ -151,15 +150,15 @@ CONFIGURE_ARGS += \
|
||||
--without-perl \
|
||||
--without-python \
|
||||
--without-tcl \
|
||||
--without-systemd \
|
||||
--with-zlib="yes" \
|
||||
--enable-depend \
|
||||
$(if $(CONFIG_arc),--disable-spinlocks)
|
||||
|
||||
# Need a native ecpg, pg_config and zic for build
|
||||
# Need a native zic and pg_config for build
|
||||
define Host/Compile
|
||||
$(MAKE) -C $(HOST_BUILD_DIR)/src/bin/pg_config CC="$(HOSTCC)"
|
||||
$(MAKE) -C $(HOST_BUILD_DIR)/src/interfaces/ecpg/preproc CC="$(HOSTCC)"
|
||||
$(MAKE) -C $(HOST_BUILD_DIR)/src/timezone CC="$(HOSTCC)"
|
||||
+$(HOST_MAKE_VARS) MAKELEVEL=0 $(MAKE) -C $(HOST_BUILD_DIR)/src/bin/pg_config CC="$(HOSTCC)"
|
||||
+$(HOST_MAKE_VARS) MAKELEVEL=0 $(MAKE) -C $(HOST_BUILD_DIR)/src/timezone CC="$(HOSTCC)"
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
@@ -168,13 +167,11 @@ define Host/Install
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/port/libpgport.a $(STAGING_DIR_HOSTPKG)/lib/
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/bin/pg_config/pg_config $(STAGING_DIR_HOSTPKG)/lib/
|
||||
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/interfaces/ecpg/preproc/ecpg $(STAGING_DIR_HOSTPKG)/bin/
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/timezone/zic $(STAGING_DIR_HOSTPKG)/bin/
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(Build/Configure/Default)
|
||||
$(SED) 's@ECPG = ../../preproc/ecpg@ECPG = $(STAGING_DIR_HOSTPKG)/bin/ecpg@' $(PKG_BUILD_DIR)/src/interfaces/ecpg/test/Makefile.regress
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) MAKELEVEL=0 all contrib
|
||||
endef
|
||||
|
||||
# because PROFILE means something else in the project Makefile
|
||||
|
||||
Reference in New Issue
Block a user