[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/15: gnu: PostgreSQL: Permit loading plugins from symlink unions again
From: |
guix-commits |
Subject: |
01/15: gnu: PostgreSQL: Permit loading plugins from symlink unions again. |
Date: |
Tue, 14 Jun 2022 17:36:18 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit e03b450c363a0591301b6a190d393b9c51e69bd7
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jun 14 14:20:59 2022 +0200
gnu: PostgreSQL: Permit loading plugins from symlink unions again.
...this fixes a regression since 49b350fafc2c3 where the patch to disable
symlink resolving went missing from versions < 14.
* gnu/packages/databases.scm (postgresql-13/replacement): New variable.
(postgresql-13)[replacement]: New field.
(postgresql-11)[source](patches): Add
'postgresql-disable-resolve_symlinks.patch'.
---
gnu/packages/databases.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 6052b53158..31efb87e37 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1247,6 +1247,7 @@ pictures, sounds, or video.")
(package
(inherit postgresql-14)
(version "13.6")
+ (replacement postgresql-13/replacement)
(source (origin
(inherit (package-source postgresql-14))
(uri (string-append "https://ftp.postgresql.org/pub/source/v"
@@ -1256,6 +1257,24 @@ pictures, sounds, or video.")
"1z37ix80hb2bqa2smh1hbj9r507ypnl3pil43gkqznnlv6ipzz5s"))
(patches (search-patches "postgresql-riscv-spinlocks.patch"))))))
+;; The merge of commit ...
+;; 781dd2de230e3 gnu: postgresql-13: Fix building on riscv64-linux.
+;; ... in ...
+;; 49b350fafc2c3 Merge branch 'master' into staging.
+;; ... lost the inherited patch from postgresql-14, causing problems such as
...
+;; 05fef7bfc6005 gnu: timescaledb: Adjust test preparation to PostgreSQL 13.6.
+;;
+;; While at it, remove the RISC-V spinlock patch, which has been upstreamed
+;; in a different form (so the old patch still applies).
+;; TODO: Remove in the next rebuild cycle.
+(define postgresql-13/replacement
+ (package
+ (inherit postgresql-13)
+ (source
+ (origin
+ (inherit (package-source postgresql-13))
+ (patches (search-patches
"postgresql-disable-resolve_symlinks.patch"))))))
+
(define-public postgresql-11
(package
(inherit postgresql-13)
@@ -1267,7 +1286,9 @@ pictures, sounds, or video.")
version "/postgresql-" version ".tar.bz2"))
(sha256
(base32
- "1qvrm0vhwnc5nijfbqybhwfjbq4r7vmk445sz7s6fiagpn78xxf8"))))
+ "1qvrm0vhwnc5nijfbqybhwfjbq4r7vmk445sz7s6fiagpn78xxf8"))
+ (patches (search-patches
+ "postgresql-disable-resolve_symlinks.patch"))))
(native-inputs
(modify-inputs (package-native-inputs postgresql-13)
(replace "docbook-xml" docbook-xml-4.2)))))
@@ -1362,6 +1383,8 @@ pictures, sounds, or video.")
;; and friends such that 'pg_config --libdir', for
;; instance, points to PG-UNION, allowing it to load
;; the timescaledb extension.
+ ;; TODO: The above comment and the #:symlink trick can
+ ;; be removed in the next rebuild cycle.
(union-build pg-union (cons #$output directories)
#:symlink
(lambda (old new)
- 06/15: gnu: ruby-pg: Update to 1.3.5., (continued)
- 06/15: gnu: ruby-pg: Update to 1.3.5., guix-commits, 2022/06/14
- 07/15: gnu: TimescaleDB: Update to 2.7.0., guix-commits, 2022/06/14
- 08/15: gnu: python-josepy: Update to 1.13.0., guix-commits, 2022/06/14
- 09/15: gnu: python-acme, certbot: Update to 1.28.0., guix-commits, 2022/06/14
- 15/15: gnu: PostgreSQL: Promote version 14 to the default., guix-commits, 2022/06/14
- 13/15: gnu: python-tortoise-orm: Update to 0.19.1., guix-commits, 2022/06/14
- 11/15: gnu: gplates: Update to 2.3.01-beta.3., guix-commits, 2022/06/14
- 03/15: gnu: PostgreSQL@11: Update to 11.16 [fixes CVE-2022-1552]., guix-commits, 2022/06/14
- 10/15: gnu: perl-dbd-pg: Update to 3.15.1., guix-commits, 2022/06/14
- 14/15: gnu: python-asyncpg: Update to 0.25.0., guix-commits, 2022/06/14
- 01/15: gnu: PostgreSQL: Permit loading plugins from symlink unions again.,
guix-commits <=
- 12/15: gnu: python-pypika-tortoise: Update to 0.1.5., guix-commits, 2022/06/14