Github messages for voidlinux
 help / color / mirror / Atom feed
From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] postgresql: fix shell version of pg_config.sh
Date: Thu, 09 Apr 2020 17:41:29 +0200	[thread overview]
Message-ID: <20200409154129.QSCK1KHSbgPvaQPatzfAofH5v9Eoh-Bg_S2EEl8XltU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20794@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages postgresql-fix-pg-config
https://github.com/void-linux/void-packages/pull/20794

postgresql: fix shell version of pg_config.sh
@xtraeme @pullmoll Please help to pull this.
Sorry, but I've another thing to do.
The old version (#20783) may work because echo doesn't accept -W -f -L -l by now

A patch file from https://github.com/void-linux/void-packages/pull/20794.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-postgresql-fix-pg-config-20794.patch --]
[-- Type: text/x-diff, Size: 3503 bytes --]

From 8079f3d214b5a9ac56b57818a7013de836342975 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Thu, 9 Apr 2020 22:01:41 +0700
Subject: [PATCH] postgresql: fix shell version of pg_config.sh

[skip ci]
---
 srcpkgs/postgresql/files/pg_config.sh.in | 56 +++++++++++++-----------
 srcpkgs/postgresql/template              |  2 +-
 2 files changed, 31 insertions(+), 27 deletions(-)

diff --git a/srcpkgs/postgresql/files/pg_config.sh.in b/srcpkgs/postgresql/files/pg_config.sh.in
index 5e6a0d37773..4598753f693 100644
--- a/srcpkgs/postgresql/files/pg_config.sh.in
+++ b/srcpkgs/postgresql/files/pg_config.sh.in
@@ -1,6 +1,10 @@
 #!/bin/sh
 # Released to Public Domain by Doan Tran Cong Danh
 
+print() {
+	printf '%s\n' "$@"
+}
+
 sysroot="$(cd "${0%/*}" && cd ../.. && pwd)"
 
 BINDIR="$sysroot/usr/bin"
@@ -29,9 +33,9 @@ LIBS="@LIBS@"
 VERSION="PostgreSQL @VERSION@"
 
 if [ "$sysroot" != "/" ]; then
-	CPPFLAGS="$(echo "$CPPFLAGS" | sed "s,-I *\\(/usr/include\\),-I$sysroot\\1,g")"
-	CFLAGS="$(echo "$CFLAGS" | sed "s,-I *\\(/usr/include\\),-I$sysroot\\1,g")"
-	LDFLAGS="$(echo "$LDFLAGS" | sed "s,-L *\\(/usr/lib\\),-L$sysroot\\1,g")"
+	CPPFLAGS="$(print "$CPPFLAGS" | sed "s,-I *\\(/usr/include\\),-I$sysroot\\1,g")"
+	CFLAGS="$(print "$CFLAGS" | sed "s,-I *\\(/usr/include\\),-I$sysroot\\1,g")"
+	LDFLAGS="$(print "$LDFLAGS" | sed "s,-L *\\(/usr/lib\\),-L$sysroot\\1,g")"
 fi
 
 usage() {
@@ -112,28 +116,28 @@ done
 for arg
 do
 	case "$arg" in
-	--bindir) echo "$BINDIR" ;;
-	--docdir) echo "$DOCDIR" ;;
-	--htmldir) echo "$HTMLDIR" ;;
-	--includedir) echo "$INCLUDEDIR" ;;
-	--pkgincludedir) echo "$PKGINCLUDEDIR" ;;
-	--includedir-server) echo "$INCLUDEDIR_SERVER" ;;
-	--libdir) echo "$LIBDIR" ;;
-	--pkglibdir) echo "$PKGLIBDIR" ;;
-	--localedir) echo "$LOCALEDIR" ;;
-	--mandir) echo "$MANDIR" ;;
-	--sharedir) echo "$SHAREDIR" ;;
-	--sysconfdir) echo "$SYSCONFDIR" ;;
-	--pgxs) echo "$PGXS" ;;
-	--configure) echo "$CONFIGURE" ;;
-	--cc) echo "$CC" ;;
-	--cppflags) echo "$CPPFLAGS" ;;
-	--cflags) echo "$CFLAGS" ;;
-	--cflags_sl) echo "$CFLAGS_SL" ;;
-	--ldflags) echo "$LDFLAGS" ;;
-	--ldflags_ex) echo "$LDFLAGS_EX" ;;
-	--ldflags_sl) echo "$LDFLAGS_SL" ;;
-	--libs) echo "$LIBS" ;;
-	--version) echo "$VERSION" ;;
+	--bindir) print "$BINDIR" ;;
+	--docdir) print "$DOCDIR" ;;
+	--htmldir) print "$HTMLDIR" ;;
+	--includedir) print "$INCLUDEDIR" ;;
+	--pkgincludedir) print "$PKGINCLUDEDIR" ;;
+	--includedir-server) print "$INCLUDEDIR_SERVER" ;;
+	--libdir) print "$LIBDIR" ;;
+	--pkglibdir) print "$PKGLIBDIR" ;;
+	--localedir) print "$LOCALEDIR" ;;
+	--mandir) print "$MANDIR" ;;
+	--sharedir) print "$SHAREDIR" ;;
+	--sysconfdir) print "$SYSCONFDIR" ;;
+	--pgxs) print "$PGXS" ;;
+	--configure) print "$CONFIGURE" ;;
+	--cc) print "$CC" ;;
+	--cppflags) print "$CPPFLAGS" ;;
+	--cflags) print "$CFLAGS" ;;
+	--cflags_sl) print "$CFLAGS_SL" ;;
+	--ldflags) print "$LDFLAGS" ;;
+	--ldflags_ex) print "$LDFLAGS_EX" ;;
+	--ldflags_sl) print "$LDFLAGS_SL" ;;
+	--libs) print "$LIBS" ;;
+	--version) print "$VERSION" ;;
 	esac
 done
diff --git a/srcpkgs/postgresql/template b/srcpkgs/postgresql/template
index 084ae5bb70f..29031650d56 100644
--- a/srcpkgs/postgresql/template
+++ b/srcpkgs/postgresql/template
@@ -1,7 +1,7 @@
 # Template file for 'postgresql'
 pkgname=postgresql
 version=9.6.17
-revision=2
+revision=3
 build_style=gnu-configure
 make_build_target=world
 configure_args="--with-openssl --with-python

  parent reply	other threads:[~2020-04-09 15:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-09 15:03 [PR PATCH] " sgn
2020-04-09 15:06 ` xtraeme
2020-04-09 15:25 ` Piraty
2020-04-09 15:28 ` sgn
2020-04-09 15:29 ` [PR PATCH] [Updated] " sgn
2020-04-09 15:37 ` xtraeme
2020-04-09 15:41 ` sgn [this message]
2020-04-09 15:53 ` [PR PATCH] [Merged]: " pullmoll
2020-04-09 15:53 ` pullmoll

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200409154129.QSCK1KHSbgPvaQPatzfAofH5v9Eoh-Bg_S2EEl8XltU@z \
    --to=sgn@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).