From 5ac097e28c3b654ae7ae821e757599e1738e23aa Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 26 Mar 2017 09:10:30 +0200 Subject: [PATCH] gnu: libpqxx: Fix build with newer sed. * gnu/packages/databases.scm (libpqxx)[arguments]: Add 'fix-sed-command' phase that corrects a typo in the configure script. --- gnu/packages/databases.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 8b01a2f01b..be92c416fb 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -1349,7 +1349,15 @@ (define-public libpqxx `(("python" ,python-2))) (inputs `(("postgresql" ,postgresql))) (arguments - `(#:tests? #f)) ; # FAIL: 1 + `(#:tests? #f ; # FAIL: 1 + #:phases + (modify-phases %standard-phases + (add-before 'configure 'fix-sed-command + (lambda _ + ;; Newer sed versions error out if double brackets are not used. + (substitute* "configure" + (("\\[:space:\\]") "[[:space:]]")) + #t))))) (synopsis "C++ connector for PostgreSQL") (description "Libpqxx is a C++ library to enable user programs to communicate with the