unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#28000] [PATCH] gnu: octave: Build with texinfo.
@ 2017-08-07 10:43 Arun Isaac
  2017-08-07 22:13 ` Marius Bakke
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Arun Isaac @ 2017-08-07 10:43 UTC (permalink / raw)
  To: 28000

texinfo is required for the built-in documentation.

* gnu/packages/maths.scm (octave)[inputs]: Add texinfo.
[native-inputs]: Remove texinfo.
---
 gnu/packages/maths.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index e19c8edc8..44de8a4e6 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1026,7 +1026,7 @@ can solve two kinds of problems:
     (license license:bsd-3)))
 
 ;; For a fully featured Octave, users  are strongly recommended also to install
-;; the following packages: texinfo, less, ghostscript, gnuplot.
+;; the following packages: less, ghostscript, gnuplot.
 (define-public octave
   (package
     (name "octave")
@@ -1058,6 +1058,7 @@ can solve two kinds of problems:
        ("glu" ,glu)
        ("zlib" ,zlib)
        ("curl" ,curl)
+       ("texinfo" ,texinfo)
        ("graphicsmagick" ,graphicsmagick)))
     (native-inputs
      `(("lzip" ,lzip)
@@ -1072,7 +1073,6 @@ can solve two kinds of problems:
        ;; will still run without them, albeit without the features they
        ;; provide.
        ("less" ,less)
-       ("texinfo" ,texinfo)
        ("ghostscript" ,ghostscript)
        ("gnuplot" ,gnuplot)))
     (arguments
-- 
2.13.4


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

* [bug#28000] [PATCH] gnu: octave: Build with texinfo.
  2017-08-07 10:43 [bug#28000] [PATCH] gnu: octave: Build with texinfo Arun Isaac
@ 2017-08-07 22:13 ` Marius Bakke
  2017-09-26 13:23   ` Arun Isaac
  2017-08-07 22:18 ` [bug#28000] [Mail Delivery System] Undelivered Mail Returned to Sender Marius Bakke
  2017-09-30  9:25 ` [bug#28000] [PATCH] gnu: octave: Reference makeinfo with absolute path Arun Isaac
  2 siblings, 1 reply; 7+ messages in thread
From: Marius Bakke @ 2017-08-07 22:13 UTC (permalink / raw)
  To: Arun Isaac, 28000

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

Arun Isaac <arunisaac@systemreboot.net> writes:

> texinfo is required for the built-in documentation.
>
> * gnu/packages/maths.scm (octave)[inputs]: Add texinfo.
> [native-inputs]: Remove texinfo.

If I read this right, Octave references texinfo at runtime, so it's
moved to inputs for correctness? The commit message is a bit confusing,
since it already has texinfo available :-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* [bug#28000] [Mail Delivery System] Undelivered Mail Returned to Sender
  2017-08-07 10:43 [bug#28000] [PATCH] gnu: octave: Build with texinfo Arun Isaac
  2017-08-07 22:13 ` Marius Bakke
@ 2017-08-07 22:18 ` Marius Bakke
  2017-09-30  9:25 ` [bug#28000] [PATCH] gnu: octave: Reference makeinfo with absolute path Arun Isaac
  2 siblings, 0 replies; 7+ messages in thread
From: Marius Bakke @ 2017-08-07 22:18 UTC (permalink / raw)
  To: 28000

Arun, the previous email bounced at my mail server:

Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
    for name=hrrol.systemreboot.net type=A: Host not found

...in case you wonder where the replies are.

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

* [bug#28000] [PATCH] gnu: octave: Build with texinfo.
  2017-08-07 22:13 ` Marius Bakke
@ 2017-09-26 13:23   ` Arun Isaac
  0 siblings, 0 replies; 7+ messages in thread
From: Arun Isaac @ 2017-09-26 13:23 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 28000


Indeed, I was waiting for a response to this patch, and am seeing your
reply only now, after almost 2 months! It looks like I'm having trouble
with my DNS configuration. :-(


>> texinfo is required for the built-in documentation.
>>
>> * gnu/packages/maths.scm (octave)[inputs]: Add texinfo.
>> [native-inputs]: Remove texinfo.
>
>If I read this right, Octave references texinfo at runtime, so it's
>moved to inputs for correctness? The commit message is a bit confusing,
>since it already has texinfo available :-)

Currently, there is a comment above the octave package definition saying
that users should install texinfo manually in their profile. My patch
allows the user to not have to do that. This is the meaning I was trying
to convey with the commit message. What other commit message would you
suggest?

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

* [bug#28000] [PATCH] gnu: octave: Reference makeinfo with absolute path.
  2017-08-07 10:43 [bug#28000] [PATCH] gnu: octave: Build with texinfo Arun Isaac
  2017-08-07 22:13 ` Marius Bakke
  2017-08-07 22:18 ` [bug#28000] [Mail Delivery System] Undelivered Mail Returned to Sender Marius Bakke
@ 2017-09-30  9:25 ` Arun Isaac
  2017-10-04 14:37   ` Ludovic Courtès
  2 siblings, 1 reply; 7+ messages in thread
From: Arun Isaac @ 2017-09-30  9:25 UTC (permalink / raw)
  To: 28000, mbakke

* gnu/packages/maths.scm (octave)[arguments]: Add configure-makeinfo phase.
[inputs]: Add texinfo.
[native-inputs]: Remove texinfo.
---
 gnu/packages/maths.scm | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index f326f6af7..5c2ab05d1 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1126,7 +1126,7 @@ can solve two kinds of problems:
     (license license:bsd-3)))
 
 ;; For a fully featured Octave, users  are strongly recommended also to install
-;; the following packages: texinfo, less, ghostscript, gnuplot.
+;; the following packages: less, ghostscript, gnuplot.
 (define-public octave
   (package
     (name "octave")
@@ -1158,6 +1158,7 @@ can solve two kinds of problems:
        ("glu" ,glu)
        ("zlib" ,zlib)
        ("curl" ,curl)
+       ("texinfo" ,texinfo)
        ("graphicsmagick" ,graphicsmagick)))
     (native-inputs
      `(("lzip" ,lzip)
@@ -1172,14 +1173,23 @@ can solve two kinds of problems:
        ;; will still run without them, albeit without the features they
        ;; provide.
        ("less" ,less)
-       ("texinfo" ,texinfo)
        ("ghostscript" ,ghostscript)
        ("gnuplot" ,gnuplot)))
     (arguments
      `(#:configure-flags
        (list (string-append "--with-shell="
                             (assoc-ref %build-inputs "bash")
-                            "/bin/sh"))))
+                            "/bin/sh"))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'configure 'configure-makeinfo
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "libinterp/corefcn/help.cc"
+               (("Vmakeinfo_program = \"makeinfo\"")
+                (string-append "Vmakeinfo_program = \""
+                               (assoc-ref inputs "texinfo")
+                               "/bin/makeinfo\"")))
+             #t)))))
     (home-page "https://www.gnu.org/software/octave/")
     (synopsis "High-level language for numerical computation")
     (description "GNU Octave is a high-level interpreted language that is
-- 
2.14.1


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

* [bug#28000] [PATCH] gnu: octave: Reference makeinfo with absolute path.
  2017-09-30  9:25 ` [bug#28000] [PATCH] gnu: octave: Reference makeinfo with absolute path Arun Isaac
@ 2017-10-04 14:37   ` Ludovic Courtès
  2017-10-05 22:09     ` bug#28000: " Arun Isaac
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2017-10-04 14:37 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 28000

Arun Isaac <arunisaac@systemreboot.net> skribis:

> * gnu/packages/maths.scm (octave)[arguments]: Add configure-makeinfo phase.
> [inputs]: Add texinfo.
> [native-inputs]: Remove texinfo.

LGTM, thank you!

Ludo’.

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

* bug#28000: [PATCH] gnu: octave: Reference makeinfo with absolute path.
  2017-10-04 14:37   ` Ludovic Courtès
@ 2017-10-05 22:09     ` Arun Isaac
  0 siblings, 0 replies; 7+ messages in thread
From: Arun Isaac @ 2017-10-05 22:09 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 28000-done


Pushed, thanks!

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

end of thread, other threads:[~2017-10-05 22:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-07 10:43 [bug#28000] [PATCH] gnu: octave: Build with texinfo Arun Isaac
2017-08-07 22:13 ` Marius Bakke
2017-09-26 13:23   ` Arun Isaac
2017-08-07 22:18 ` [bug#28000] [Mail Delivery System] Undelivered Mail Returned to Sender Marius Bakke
2017-09-30  9:25 ` [bug#28000] [PATCH] gnu: octave: Reference makeinfo with absolute path Arun Isaac
2017-10-04 14:37   ` Ludovic Courtès
2017-10-05 22:09     ` bug#28000: " Arun Isaac

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).