|
@@ -4,7 +4,7 @@
|
|
|
#
|
|
|
################################################################################
|
|
|
|
|
|
-POSTGRESQL_VERSION = 16.4
|
|
|
+POSTGRESQL_VERSION = 17.2
|
|
|
POSTGRESQL_SOURCE = postgresql-$(POSTGRESQL_VERSION).tar.bz2
|
|
|
POSTGRESQL_SITE = https://ftp.postgresql.org/pub/source/v$(POSTGRESQL_VERSION)
|
|
|
POSTGRESQL_LICENSE = PostgreSQL
|
|
@@ -13,59 +13,46 @@ POSTGRESQL_CPE_ID_VENDOR = postgresql
|
|
|
POSTGRESQL_SELINUX_MODULES = postgresql
|
|
|
POSTGRESQL_INSTALL_STAGING = YES
|
|
|
POSTGRESQL_CONFIG_SCRIPTS = pg_config
|
|
|
-POSTGRESQL_CONF_ENV = \
|
|
|
- ac_cv_type_struct_sockaddr_in6=yes \
|
|
|
- pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic=yes \
|
|
|
- LIBS=$(TARGET_NLS_LIBS)
|
|
|
-POSTGRESQL_CONF_OPTS = --disable-rpath
|
|
|
-POSTGRESQL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
|
|
+POSTGRESQL_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
|
|
|
+POSTGRESQL_CONF_OPTS = -Drpath=false
|
|
|
+POSTGRESQL_DEPENDENCIES = \
|
|
|
+ $(TARGET_NLS_DEPENDENCIES) \
|
|
|
+ host-bison \
|
|
|
+ host-flex
|
|
|
|
|
|
# CVE-2017-8806 is related to postgresql-common package
|
|
|
# It is false positive for postgresql
|
|
|
POSTGRESQL_IGNORE_CVES += CVE-2017-8806
|
|
|
|
|
|
-# 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_PACKAGE_POSTGRESQL_FULL),y)
|
|
|
-POSTGRESQL_MAKE_OPTS += world
|
|
|
+POSTGRESQL_NINJA_OPTS += world
|
|
|
POSTGRESQL_INSTALL_TARGET_OPTS += DESTDIR=$(TARGET_DIR) install-world
|
|
|
POSTGRESQL_INSTALL_STAGING_OPTS += DESTDIR=$(STAGING_DIR) install-world
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
|
|
-# PostgreSQL does not build against uClibc with locales
|
|
|
-# enabled, due to an uClibc bug, see
|
|
|
-# http://lists.uclibc.org/pipermail/uclibc/2014-April/048326.html
|
|
|
-# so overwrite automatic detection and disable locale support
|
|
|
-POSTGRESQL_CONF_ENV += pgac_cv_type_locale_t=no
|
|
|
-endif
|
|
|
-
|
|
|
-ifneq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),y)
|
|
|
-POSTGRESQL_CONF_OPTS += --disable-thread-safety
|
|
|
-endif
|
|
|
-
|
|
|
ifeq ($(BR2_arcle)$(BR2_arceb)$(BR2_microblazeel)$(BR2_microblazebe)$(BR2_or1k)$(BR2_nios2)$(BR2_riscv)$(BR2_xtensa),y)
|
|
|
-POSTGRESQL_CONF_OPTS += --disable-spinlocks
|
|
|
+POSTGRESQL_CONF_OPTS += -Dspinlocks=false
|
|
|
+else
|
|
|
+POSTGRESQL_CONF_OPTS += -Dspinlocks=true
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
POSTGRESQL_DEPENDENCIES += readline
|
|
|
+POSTGRESQL_CONF_OPTS += -Dreadline=enabled
|
|
|
else
|
|
|
-POSTGRESQL_CONF_OPTS += --without-readline
|
|
|
+POSTGRESQL_CONF_OPTS += -Dreadline=disabled
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
POSTGRESQL_DEPENDENCIES += zlib
|
|
|
+POSTGRESQL_CONF_OPTS += -Dzlib=enabled
|
|
|
else
|
|
|
-POSTGRESQL_CONF_OPTS += --without-zlib
|
|
|
+POSTGRESQL_CONF_OPTS += -Dzlib=disabled
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TZDATA),y)
|
|
|
POSTGRESQL_DEPENDENCIES += tzdata
|
|
|
-POSTGRESQL_CONF_OPTS += --with-system-tzdata=/usr/share/zoneinfo
|
|
|
+POSTGRESQL_CONF_OPTS += -Dsystem_tzdata=/usr/share/zoneinfo
|
|
|
else
|
|
|
POSTGRESQL_DEPENDENCIES += host-zic
|
|
|
POSTGRESQL_CONF_ENV += ZIC="$(ZIC)"
|
|
@@ -73,56 +60,53 @@ endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
POSTGRESQL_DEPENDENCIES += openssl
|
|
|
-POSTGRESQL_CONF_OPTS += --with-openssl
|
|
|
+POSTGRESQL_CONF_OPTS += -Dssl=openssl
|
|
|
else
|
|
|
-# PostgreSQL checks for /dev/urandom and fails if it's being cross-compiled and
|
|
|
-# an SSL library isn't found. Since /dev/urandom is guaranteed to be provided
|
|
|
-# on Linux systems, explicitly tell the configure script it's available.
|
|
|
-POSTGRESQL_CONF_ENV += ac_cv_file__dev_urandom=yes
|
|
|
+POSTGRESQL_CONF_OPTS += -Dssl=none
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENLDAP),y)
|
|
|
POSTGRESQL_DEPENDENCIES += openldap
|
|
|
-POSTGRESQL_CONF_OPTS += --with-ldap
|
|
|
+POSTGRESQL_CONF_OPTS += -Dldap=enabled
|
|
|
else
|
|
|
-POSTGRESQL_CONF_OPTS += --without-ldap
|
|
|
+POSTGRESQL_CONF_OPTS += -Dldap=disabled
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
|
|
POSTGRESQL_DEPENDENCIES += icu
|
|
|
-POSTGRESQL_CONF_OPTS += --with-icu
|
|
|
+POSTGRESQL_CONF_OPTS += -Dicu=enabled
|
|
|
else
|
|
|
-POSTGRESQL_CONF_OPTS += --without-icu
|
|
|
+POSTGRESQL_CONF_OPTS += -Dicu=disabled
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
|
POSTGRESQL_DEPENDENCIES += libxml2
|
|
|
-POSTGRESQL_CONF_OPTS += --with-libxml
|
|
|
+POSTGRESQL_CONF_OPTS += -Dlibxml=enabled
|
|
|
POSTGRESQL_CONF_ENV += XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
|
|
|
else
|
|
|
-POSTGRESQL_CONF_OPTS += --without-libxml
|
|
|
+POSTGRESQL_CONF_OPTS += -Dlibxml=disabled
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
|
|
POSTGRESQL_DEPENDENCIES += host-pkgconf zstd
|
|
|
-POSTGRESQL_CONF_OPTS += --with-zstd
|
|
|
+POSTGRESQL_CONF_OPTS += -Dzstd=enabled
|
|
|
else
|
|
|
-POSTGRESQL_CONF_OPTS += --without-zstd
|
|
|
+POSTGRESQL_CONF_OPTS += -Dzstd=disabled
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LZ4),y)
|
|
|
POSTGRESQL_DEPENDENCIES += host-pkgconf lz4
|
|
|
-POSTGRESQL_CONF_OPTS += --with-lz4
|
|
|
+POSTGRESQL_CONF_OPTS += -Dlz4=enabled
|
|
|
else
|
|
|
-POSTGRESQL_CONF_OPTS += --without-lz4
|
|
|
+POSTGRESQL_CONF_OPTS += -Dlz4=disabled
|
|
|
endif
|
|
|
|
|
|
# required for postgresql.service Type=notify
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
POSTGRESQL_DEPENDENCIES += systemd
|
|
|
-POSTGRESQL_CONF_OPTS += --with-systemd
|
|
|
+POSTGRESQL_CONF_OPTS += -Dsystemd=enabled
|
|
|
else
|
|
|
-POSTGRESQL_CONF_OPTS += --without-systemd
|
|
|
+POSTGRESQL_CONF_OPTS += -Dsystemd=disabled
|
|
|
endif
|
|
|
|
|
|
POSTGRESQL_CFLAGS = $(TARGET_CFLAGS)
|
|
@@ -165,4 +149,4 @@ define POSTGRESQL_INSTALL_INIT_SYSTEMD
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/postgresql.service
|
|
|
endef
|
|
|
|
|
|
-$(eval $(autotools-package))
|
|
|
+$(eval $(meson-package))
|