diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-08-26 22:41:26 +0200 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-04-07 23:23:33 +0900 |
| commit | aa9d9212eb965fdca8a24e9173ab78d09367fd79 (patch) | |
| tree | 75daab10b45e5373ed44534edc0afcf5336a0be7 /gnu/packages/databases.scm | |
| parent | 086b94116d8e6d9e45705e82be8db43633b0b5d9 (diff) | |
gnu: Add postgresql-17.
* gnu/packages/databases.scm (postgresql-17): New variable.
(postgresql-16): Redefine with postgresql-17 inheritance (same
derivation as in previous commit).
Change-Id: I1a14dc6835a043138fae2163efd07d068a2c2783
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/databases.scm')
| -rw-r--r-- | gnu/packages/databases.scm | 59 |
1 files changed, 47 insertions, 12 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index d2926c8b197..504e554ea28 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -1545,17 +1545,17 @@ and high-availability (HA).") (license license:gpl2))) ;'COPYING' says "version 2" only ;; Don't forget to update the other postgresql packages when upgrading this one. -(define-public postgresql-16 +(define-public postgresql-17 (package (name "postgresql") - (version "16.11") + (version "17.7") (source (origin (method url-fetch) (uri (string-append "https://ftp.postgresql.org/pub/source/v" version "/postgresql-" version ".tar.bz2")) (sha256 (base32 - "1b4f2wpv9h6zy8fqkn4gjvwawr7gxr4l1hfiif7pvmq37p10isvd")) + "1dg9labqgph2idaypb8khdvbag29pr3h4bqv5w8k7kgc08rk97pg")) (patches (search-patches "postgresql-disable-normalize_exec_path.patch")))) (build-system gnu-build-system) @@ -1585,18 +1585,22 @@ and high-availability (HA).") (add-after 'build 'build-contrib (lambda _ (invoke "make" "-C" "contrib"))) + ;; FIXME: Install manpages too. + ;; The 'install-mangpages phase in postgresql-16 fails silently here. (add-after 'install 'install-contrib (lambda _ - (invoke "make" "-C" "contrib" "install"))) - (add-after 'install 'install-manuals - (lambda _ - (with-directory-excursion "doc/src/sgml" - (invoke "make" "install-man") - (invoke "make" "postgres.info") - (install-file "postgres.info" - (string-append #$output "/share/info")))))))) + (invoke "make" "-C" "contrib" "install")))))) (native-inputs - (list docbook-xml-4.5 docbook2x libxml2 perl pkg-config texinfo)) + (list bison + docbook-xml-4.5 + docbook-xsl + docbook2x + flex + libxml2 + libxslt + perl + pkg-config + texinfo)) (inputs (list icu4c readline `(,util-linux "lib") openssl zlib)) (home-page "https://www.postgresql.org/") @@ -1610,6 +1614,37 @@ TIMESTAMP. It also supports storage of binary large objects, including pictures, sounds, or video.") (license (license:x11-style "file://COPYRIGHT")))) +(define-public postgresql-16 + (package + (inherit postgresql-17) + (name "postgresql") + (version "16.10") + (source (origin + (method url-fetch) + (uri (string-append "https://ftp.postgresql.org/pub/source/v" + version "/postgresql-" version ".tar.bz2")) + (sha256 + (base32 + "0hib575m9x3z8c71gkcv9jsyq77d3qk7q2zgzvfy6clwrvs8b16y")) + (patches (search-patches + "postgresql-disable-normalize_exec_path.patch")))) + (arguments + (substitute-keyword-arguments (package-arguments postgresql-17) + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (add-after 'install 'install-manuals + (lambda _ + (with-directory-excursion "doc/src/sgml" + (invoke "make" "install-man") + (invoke "make" "postgres.info") + (install-file "postgres.info" + (string-append #$output "/share/info"))))))))) + (native-inputs (modify-inputs (package-native-inputs postgresql-17) + (delete "bison") + (delete "docbook-xsl") + (delete "flex") + (delete "libxslt"))))) + (define-public postgresql-15 (package (inherit postgresql-16) |
