Bump buildroot to 2019.02
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
POSTGRESQL_VERSION = 10.6
|
||||
POSTGRESQL_VERSION = 11.2
|
||||
POSTGRESQL_SOURCE = postgresql-$(POSTGRESQL_VERSION).tar.bz2
|
||||
POSTGRESQL_SITE = http://ftp.postgresql.org/pub/source/v$(POSTGRESQL_VERSION)
|
||||
POSTGRESQL_LICENSE = PostgreSQL
|
||||
@@ -17,6 +17,11 @@ POSTGRESQL_CONF_ENV = \
|
||||
pgac_cv_snprintf_size_t_support=yes
|
||||
POSTGRESQL_CONF_OPTS = --disable-rpath
|
||||
|
||||
# https://www.postgresql.org/docs/11/static/install-procedure.html:
|
||||
# "If you want to invoke the build from another makefile rather than
|
||||
# manually, you must unset MAKELEVEL or set it to zero"
|
||||
POSTGRESQL_MAKE_OPTS = MAKELEVEL=0
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
# PostgreSQL does not build against uClibc with locales
|
||||
# enabled, due to an uClibc bug, see
|
||||
@@ -29,7 +34,7 @@ ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
POSTGRESQL_CONF_OPTS += --disable-thread-safety
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_arcle)$(BR2_arceb)$(BR2_microblazeel)$(BR2_microblazebe)$(BR2_or1k)$(BR2_nios2)$(BR2_xtensa),y)
|
||||
ifeq ($(BR2_arcle)$(BR2_arceb)$(BR2_microblazeel)$(BR2_microblazebe)$(BR2_or1k)$(BR2_nios2)$(BR2_riscv)$(BR2_xtensa),y)
|
||||
POSTGRESQL_CONF_OPTS += --disable-spinlocks
|
||||
endif
|
||||
|
||||
@@ -70,6 +75,22 @@ else
|
||||
POSTGRESQL_CONF_OPTS += --without-ldap
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
||||
POSTGRESQL_DEPENDENCIES += libxml2
|
||||
POSTGRESQL_CONF_OPTS += --with-libxml
|
||||
POSTGRESQL_CONF_ENV += XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
|
||||
else
|
||||
POSTGRESQL_CONF_OPTS += --without-libxml
|
||||
endif
|
||||
|
||||
# required for postgresql.service Type=notify
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
POSTGRESQL_DEPENDENCIES += systemd
|
||||
POSTGRESQL_CONF_OPTS += --with-systemd
|
||||
else
|
||||
POSTGRESQL_CONF_OPTS += --without-systemd
|
||||
endif
|
||||
|
||||
define POSTGRESQL_USERS
|
||||
postgres -1 postgres -1 * /var/lib/pgsql /bin/sh - PostgreSQL Server
|
||||
endef
|
||||
@@ -84,6 +105,7 @@ POSTGRESQL_POST_INSTALL_TARGET_HOOKS += POSTGRESQL_INSTALL_TARGET_FIXUP
|
||||
define POSTGRESQL_INSTALL_CUSTOM_PG_CONFIG
|
||||
$(INSTALL) -m 0755 -D package/postgresql/pg_config \
|
||||
$(STAGING_DIR)/usr/bin/pg_config
|
||||
$(SED) "s|@POSTGRESQL_VERSION@|$(POSTGRESQL_VERSION)|g" $(STAGING_DIR)/usr/bin/pg_config
|
||||
endef
|
||||
|
||||
POSTGRESQL_POST_INSTALL_STAGING_HOOKS += POSTGRESQL_INSTALL_CUSTOM_PG_CONFIG
|
||||
|
||||
Reference in New Issue
Block a user