mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] postgresql: version bump 9.4.1 -> 11.5
@ 2019-10-08  9:48 Björn Esser
  2019-10-08 15:39 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Björn Esser @ 2019-10-08  9:48 UTC (permalink / raw)
  To: ptxdist; +Cc: Björn Esser

Signed-off-by: Björn Esser <b.esser@pengutronix.de>
---
 rules/postgresql.in   |  6 ++++++
 rules/postgresql.make | 35 +++++++++++++++++++++++++++--------
 2 files changed, 33 insertions(+), 8 deletions(-)

diff --git a/rules/postgresql.in b/rules/postgresql.in
index b6173b1b5..289416051 100644
--- a/rules/postgresql.in
+++ b/rules/postgresql.in
@@ -2,6 +2,12 @@
 
 config POSTGRESQL
 	tristate
+	select HOST_LIBXML2
+	select HOST_LIBXSLT
+	select LIBC_CRYPT
+	select LIBC_DL
+	select LIBC_PTHREAD
+	select LIBC_RT
 	prompt "postgresql"
 	help
 	  A database.
diff --git a/rules/postgresql.make b/rules/postgresql.make
index ad684277d..7cb327dc7 100644
--- a/rules/postgresql.make
+++ b/rules/postgresql.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_POSTGRESQL) += postgresql
 #
 # Paths and names
 #
-POSTGRESQL_VERSION	:= 9.4.1
-POSTGRESQL_MD5		:= 2cf30f50099ff1109d0aa517408f8eff
+POSTGRESQL_VERSION	:= 11.5
+POSTGRESQL_MD5		:= 580da94f6d85046ff2a228785ab2cc89
 POSTGRESQL		:= postgresql-$(POSTGRESQL_VERSION)
 POSTGRESQL_SUFFIX	:= tar.bz2
 POSTGRESQL_URL		:= https://ftp.postgresql.org/pub/source/v$(POSTGRESQL_VERSION)/$(POSTGRESQL).$(POSTGRESQL_SUFFIX)
@@ -27,47 +27,66 @@ POSTGRESQL_LICENSE	:= PostgreSQL
 # Prepare
 # ----------------------------------------------------------------------------
 
-POSTGRESQL_CONF_ENV	:= $(CROSS_ENV)
+POSTGRESQL_CONF_ENV	:= \
+	$(CROSS_ENV) \
+	ac_cv_file__dev_urandom=yes
 
 #
 # autoconf
 #
 POSTGRESQL_CONF_TOOL	:= autoconf
-POSTGRESQL_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
+POSTGRESQL_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
 	--enable-integer-datetimes \
 	--disable-nls \
+	--disable-rpath \
+	--enable-spinlocks \
+	--enable-atomics \
+	--enable-strong-random \
 	--disable-debug \
 	--disable-profiling \
 	--disable-coverage \
 	--disable-dtrace \
 	--disable-tap-tests \
+	--disable-depend \
 	--disable-cassert \
+	--enable-thread-safety \
 	--enable-largefile \
 	--disable-float4-byval \
 	--disable-float8-byval \
+	--without-llvm \
+	--without-icu \
 	--without-tcl \
 	--without-perl \
 	--without-python \
 	--without-gssapi \
 	--without-pam \
+	--without-bsd-auth \
 	--without-ldap \
 	--without-bonjour \
 	--without-openssl \
 	--without-selinux \
+	--$(call ptx/wwo,PTXCONF_SYSTEMD)-systemd \
 	--without-readline \
 	--without-libedit-preferred \
+	--without-ossp-uuid \
 	--without-libxml \
 	--without-libxslt \
-	--without-zlib \
-	--with-system-tzdata=/usr/share/zoneinfo
+	--with-system-tzdata=/usr/share/zoneinfo \
+	--without-zlib
 
-#  --disable-spinlocks     do not use spinlocks
 #  --enable-tap-tests      enable TAP tests (requires Perl and IPC::Run)
 #  --enable-depend         turn on automatic dependency tracking
-#  --disable-thread-safety disable thread-safety in client libraries
 #  --with-uuid=LIB         build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
 #  --with-ossp-uuid        obsolete spelling of --with-uuid=ossp
 
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+POSTGRESQL_MAKE_ENV	:= \
+	MAKELEVEL=0
+
 # ----------------------------------------------------------------------------
 # Target-Install
 # ----------------------------------------------------------------------------
-- 
2.23.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] [PATCH] postgresql: version bump 9.4.1 -> 11.5
  2019-10-08  9:48 [ptxdist] [PATCH] postgresql: version bump 9.4.1 -> 11.5 Björn Esser
@ 2019-10-08 15:39 ` Michael Olbrich
  2019-10-09  8:47   ` [ptxdist] [PATCH v2] " Björn Esser
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2019-10-08 15:39 UTC (permalink / raw)
  To: ptxdist; +Cc: Björn Esser

On Tue, Oct 08, 2019 at 11:48:09AM +0200, Björn Esser wrote:
> Signed-off-by: Björn Esser <b.esser@pengutronix.de>
> ---
>  rules/postgresql.in   |  6 ++++++
>  rules/postgresql.make | 35 +++++++++++++++++++++++++++--------
>  2 files changed, 33 insertions(+), 8 deletions(-)
> 
> diff --git a/rules/postgresql.in b/rules/postgresql.in
> index b6173b1b5..289416051 100644
> --- a/rules/postgresql.in
> +++ b/rules/postgresql.in
> @@ -2,6 +2,12 @@
>  
>  config POSTGRESQL
>  	tristate
> +	select HOST_LIBXML2
> +	select HOST_LIBXSLT
> +	select LIBC_CRYPT
> +	select LIBC_DL
> +	select LIBC_PTHREAD
> +	select LIBC_RT
>  	prompt "postgresql"
>  	help
>  	  A database.
> diff --git a/rules/postgresql.make b/rules/postgresql.make
> index ad684277d..7cb327dc7 100644
> --- a/rules/postgresql.make
> +++ b/rules/postgresql.make
> @@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_POSTGRESQL) += postgresql
>  #
>  # Paths and names
>  #
> -POSTGRESQL_VERSION	:= 9.4.1
> -POSTGRESQL_MD5		:= 2cf30f50099ff1109d0aa517408f8eff
> +POSTGRESQL_VERSION	:= 11.5
> +POSTGRESQL_MD5		:= 580da94f6d85046ff2a228785ab2cc89
>  POSTGRESQL		:= postgresql-$(POSTGRESQL_VERSION)
>  POSTGRESQL_SUFFIX	:= tar.bz2
>  POSTGRESQL_URL		:= https://ftp.postgresql.org/pub/source/v$(POSTGRESQL_VERSION)/$(POSTGRESQL).$(POSTGRESQL_SUFFIX)
> @@ -27,47 +27,66 @@ POSTGRESQL_LICENSE	:= PostgreSQL
>  # Prepare
>  # ----------------------------------------------------------------------------
>  
> -POSTGRESQL_CONF_ENV	:= $(CROSS_ENV)
> +POSTGRESQL_CONF_ENV	:= \
> +	$(CROSS_ENV) \
> +	ac_cv_file__dev_urandom=yes
>  
>  #
>  # autoconf
>  #
>  POSTGRESQL_CONF_TOOL	:= autoconf
> -POSTGRESQL_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
> +POSTGRESQL_CONF_OPT	:= \
> +	$(CROSS_AUTOCONF_USR) \
>  	--enable-integer-datetimes \
>  	--disable-nls \
> +	--disable-rpath \
> +	--enable-spinlocks \
> +	--enable-atomics \
> +	--enable-strong-random \
>  	--disable-debug \
>  	--disable-profiling \
>  	--disable-coverage \
>  	--disable-dtrace \
>  	--disable-tap-tests \
> +	--disable-depend \
>  	--disable-cassert \
> +	--enable-thread-safety \
>  	--enable-largefile \
>  	--disable-float4-byval \
>  	--disable-float8-byval \
> +	--without-llvm \
> +	--without-icu \
>  	--without-tcl \
>  	--without-perl \
>  	--without-python \
>  	--without-gssapi \
>  	--without-pam \
> +	--without-bsd-auth \
>  	--without-ldap \
>  	--without-bonjour \
>  	--without-openssl \
>  	--without-selinux \
> +	--$(call ptx/wwo,PTXCONF_SYSTEMD)-systemd \

Never use options from other packages directly. So add a suboption, maybe
default to INITMETHOD_SYSTEMD. Also, systemd is needed at build-time, so it
must be selected.

Michael

>  	--without-readline \
>  	--without-libedit-preferred \
> +	--without-ossp-uuid \
>  	--without-libxml \
>  	--without-libxslt \
> -	--without-zlib \
> -	--with-system-tzdata=/usr/share/zoneinfo
> +	--with-system-tzdata=/usr/share/zoneinfo \
> +	--without-zlib
>  
> -#  --disable-spinlocks     do not use spinlocks
>  #  --enable-tap-tests      enable TAP tests (requires Perl and IPC::Run)
>  #  --enable-depend         turn on automatic dependency tracking
> -#  --disable-thread-safety disable thread-safety in client libraries
>  #  --with-uuid=LIB         build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
>  #  --with-ossp-uuid        obsolete spelling of --with-uuid=ossp
>  
> +# ----------------------------------------------------------------------------
> +# Compile
> +# ----------------------------------------------------------------------------
> +
> +POSTGRESQL_MAKE_ENV	:= \
> +	MAKELEVEL=0
> +
>  # ----------------------------------------------------------------------------
>  # Target-Install
>  # ----------------------------------------------------------------------------
> -- 
> 2.23.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ptxdist] [PATCH v2] postgresql: version bump 9.4.1 -> 11.5
  2019-10-08 15:39 ` Michael Olbrich
@ 2019-10-09  8:47   ` Björn Esser
  0 siblings, 0 replies; 3+ messages in thread
From: Björn Esser @ 2019-10-09  8:47 UTC (permalink / raw)
  To: ptxdist; +Cc: Björn Esser

Signed-off-by: Björn Esser <b.esser@pengutronix.de>
---
 rules/postgresql.in   | 15 +++++++++++++++
 rules/postgresql.make | 35 +++++++++++++++++++++++++++--------
 2 files changed, 42 insertions(+), 8 deletions(-)

diff --git a/rules/postgresql.in b/rules/postgresql.in
index b6173b1b5..56c74e893 100644
--- a/rules/postgresql.in
+++ b/rules/postgresql.in
@@ -2,6 +2,21 @@
 
 config POSTGRESQL
 	tristate
+	select HOST_LIBXML2
+	select HOST_LIBXSLT
+	select LIBC_CRYPT
+	select LIBC_DL
+	select LIBC_PTHREAD
+	select LIBC_RT
+	select SYSTEMD		if POSTGRESQL_SYSTEMD
 	prompt "postgresql"
 	help
 	  A database.
+
+if POSTGRESQL
+
+config POSTGRESQL_SYSTEMD
+	bool
+	default y		if INITMETHOD_SYSTEMD
+
+endif
diff --git a/rules/postgresql.make b/rules/postgresql.make
index ad684277d..af3eb6b45 100644
--- a/rules/postgresql.make
+++ b/rules/postgresql.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_POSTGRESQL) += postgresql
 #
 # Paths and names
 #
-POSTGRESQL_VERSION	:= 9.4.1
-POSTGRESQL_MD5		:= 2cf30f50099ff1109d0aa517408f8eff
+POSTGRESQL_VERSION	:= 11.5
+POSTGRESQL_MD5		:= 580da94f6d85046ff2a228785ab2cc89
 POSTGRESQL		:= postgresql-$(POSTGRESQL_VERSION)
 POSTGRESQL_SUFFIX	:= tar.bz2
 POSTGRESQL_URL		:= https://ftp.postgresql.org/pub/source/v$(POSTGRESQL_VERSION)/$(POSTGRESQL).$(POSTGRESQL_SUFFIX)
@@ -27,47 +27,66 @@ POSTGRESQL_LICENSE	:= PostgreSQL
 # Prepare
 # ----------------------------------------------------------------------------
 
-POSTGRESQL_CONF_ENV	:= $(CROSS_ENV)
+POSTGRESQL_CONF_ENV	:= \
+	$(CROSS_ENV) \
+	ac_cv_file__dev_urandom=yes
 
 #
 # autoconf
 #
 POSTGRESQL_CONF_TOOL	:= autoconf
-POSTGRESQL_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
+POSTGRESQL_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
 	--enable-integer-datetimes \
 	--disable-nls \
+	--disable-rpath \
+	--enable-spinlocks \
+	--enable-atomics \
+	--enable-strong-random \
 	--disable-debug \
 	--disable-profiling \
 	--disable-coverage \
 	--disable-dtrace \
 	--disable-tap-tests \
+	--disable-depend \
 	--disable-cassert \
+	--enable-thread-safety \
 	--enable-largefile \
 	--disable-float4-byval \
 	--disable-float8-byval \
+	--without-llvm \
+	--without-icu \
 	--without-tcl \
 	--without-perl \
 	--without-python \
 	--without-gssapi \
 	--without-pam \
+	--without-bsd-auth \
 	--without-ldap \
 	--without-bonjour \
 	--without-openssl \
 	--without-selinux \
+	--$(call ptx/wwo,POSTGRESQL_SYSTEMD)-systemd \
 	--without-readline \
 	--without-libedit-preferred \
+	--without-ossp-uuid \
 	--without-libxml \
 	--without-libxslt \
-	--without-zlib \
-	--with-system-tzdata=/usr/share/zoneinfo
+	--with-system-tzdata=/usr/share/zoneinfo \
+	--without-zlib
 
-#  --disable-spinlocks     do not use spinlocks
 #  --enable-tap-tests      enable TAP tests (requires Perl and IPC::Run)
 #  --enable-depend         turn on automatic dependency tracking
-#  --disable-thread-safety disable thread-safety in client libraries
 #  --with-uuid=LIB         build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
 #  --with-ossp-uuid        obsolete spelling of --with-uuid=ossp
 
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+POSTGRESQL_MAKE_ENV	:= \
+	MAKELEVEL=0
+
 # ----------------------------------------------------------------------------
 # Target-Install
 # ----------------------------------------------------------------------------
-- 
2.23.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-09  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08  9:48 [ptxdist] [PATCH] postgresql: version bump 9.4.1 -> 11.5 Björn Esser
2019-10-08 15:39 ` Michael Olbrich
2019-10-09  8:47   ` [ptxdist] [PATCH v2] " Björn Esser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox