unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47606: postgresql man and info pages are not included
@ 2021-04-05 20:10 Jesús Gómez
  2021-12-12 18:31 ` bug#47606: [PATCH] gnu: postgresql: Add manuals Brice Waegeneire
  0 siblings, 1 reply; 3+ messages in thread
From: Jesús Gómez @ 2021-04-05 20:10 UTC (permalink / raw)
  To: 47606

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

After installing the package, I noticed I can't read the man and info pages
of Postgres.

I was told in the IRC channel that the package doesn't include them
currently, and we think those pages should be included (also updating the
`.guix-profile/etx/profile` file as needed).

Thanks for Guix!

[-- Attachment #2: Type: text/html, Size: 381 bytes --]

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

* bug#47606: [PATCH] gnu: postgresql: Add manuals.
  2021-04-05 20:10 bug#47606: postgresql man and info pages are not included Jesús Gómez
@ 2021-12-12 18:31 ` Brice Waegeneire
  2022-03-18  4:56   ` bug#47606: postgresql man and info pages are not included Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Brice Waegeneire @ 2021-12-12 18:31 UTC (permalink / raw)
  To: 47606

Fixes <https://issues.guix.gnu.org/47606>.

* gnu/packages/databases.scm (postgresql)[arguments]: Add configure flag
  '--mandir'.  Add phase 'install-man'.
---
 gnu/packages/databases.scm | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 7cff0f99c5..76e99283ed 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -54,6 +54,7 @@
 ;;; Copyright © 2021 Alexandre Hannud Abdo <abdo@member.fsf.org>
 ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
 ;;; Copyright © 2021 jgart <jgart@dismail.de>
+;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1118,12 +1119,14 @@ (define-public postgresql-13
               (patches (search-patches "postgresql-disable-resolve_symlinks.patch"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:configure-flags '("--with-uuid=e2fs" "--with-openssl"
-                           ;; PostgreSQL installs its own Makefile (should it?).
-                           ;; Prevent it from retaining needless references to
-                           ;; the build tools in order to save size.
-                           "MKDIR_P=mkdir -p" "INSTALL_BIN=install -c"
-                           "LD=ld" "TAR=tar")
+     `(#:configure-flags
+       (list "--with-uuid=e2fs" "--with-openssl"
+             (string-append "--mandir=" (assoc-ref %outputs "out") "/share/man")
+             ;; PostgreSQL installs its own Makefile (should it?).
+             ;; Prevent it from retaining needless references to
+             ;; the build tools in order to save size.
+             "MKDIR_P=mkdir -p" "INSTALL_BIN=install -c"
+             "LD=ld" "TAR=tar")
        #:phases
        (modify-phases %standard-phases
          (add-before 'configure 'patch-/bin/sh
@@ -1138,7 +1141,10 @@ (define-public postgresql-13
              (invoke "make" "-C" "contrib")))
          (add-after 'install 'install-contrib
            (lambda _
-             (invoke "make" "-C" "contrib" "install"))))))
+             (invoke "make" "-C" "contrib" "install")))
+         (add-after 'install 'install-man
+           (lambda _
+             (invoke "make" "-C" "doc/src/sgml" "install-man"))))))
     (inputs
      `(("readline" ,readline)
        ("libuuid" ,util-linux "lib")

base-commit: 604880ae22e1a7662acb1d3f282242470de0cd03
prerequisite-patch-id: ecd20aaded80566551ed0bd654517209ad239de5
prerequisite-patch-id: 96a62566ab07f5d80f2edd43cd0f89c7191e7ee6
prerequisite-patch-id: 5f8c05b16a80862bfc759169d05d1b03d48284a6
prerequisite-patch-id: 4a455af71d83d984fe88b3cdbc1f8f477b27f2a9
-- 
2.34.0






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

* bug#47606: postgresql man and info pages are not included
  2021-12-12 18:31 ` bug#47606: [PATCH] gnu: postgresql: Add manuals Brice Waegeneire
@ 2022-03-18  4:56   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2022-03-18  4:56 UTC (permalink / raw)
  To: Brice Waegeneire; +Cc: 47606-done

Hi,

Brice Waegeneire <brice@waegenei.re> writes:

> Fixes <https://issues.guix.gnu.org/47606>.
>
> * gnu/packages/databases.scm (postgresql)[arguments]: Add configure flag
>   '--mandir'.  Add phase 'install-man'.

I pushed a superset of this which also builds an info manual as
f0227a18c2, to the staging branch along an update to the v13 package.

Thank you!

Maxim




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

end of thread, other threads:[~2022-03-18  4:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-05 20:10 bug#47606: postgresql man and info pages are not included Jesús Gómez
2021-12-12 18:31 ` bug#47606: [PATCH] gnu: postgresql: Add manuals Brice Waegeneire
2022-03-18  4:56   ` bug#47606: postgresql man and info pages are not included Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).