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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ messages in thread

* [bug#28000] [PATCH] gnu: octave: Build with texinfo.
       [not found] <ddec1ecd.AEEARAgPOywAAAAAAAAAAAPFd4cAAAACwQwAAAAAAAW9WABZylTD@mailjet.com>
@ 2017-09-27 21:14 ` Marius Bakke
  2017-09-29 14:55   ` Arun Isaac
  0 siblings, 1 reply; 9+ messages in thread
From: Marius Bakke @ 2017-09-27 21:14 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 28000

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

Arun Isaac <arunisaac@systemreboot.net> writes:

> 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?

I think the comment may be referring to some of the command-line
utilities from Texinfo, e.g. for PDF exports.  There are no new
texinfo references in "octave" after this patch:

--8<---------------cut here---------------start------------->8---
$ grep -R /gnu/store/gfsiaw6rn29ii8cpjnix05a7r588k9yv-texinfo-6.3 $(./pre-inst-env guix build octave)
Binary file /gnu/store/pkg54952yx7dgv4cwjiwpfq5l9lyv90y-octave-4.2.1/lib/octave/4.2.1/liboctinterp.so.4.0.0 matches
Binary file /gnu/store/pkg54952yx7dgv4cwjiwpfq5l9lyv90y-octave-4.2.1/lib/octave/4.2.1/liboctinterp.so.4 matches
Binary file /gnu/store/pkg54952yx7dgv4cwjiwpfq5l9lyv90y-octave-4.2.1/lib/octave/4.2.1/liboctinterp.so matches
Binary file /gnu/store/pkg54952yx7dgv4cwjiwpfq5l9lyv90y-octave-4.2.1/bin/mkoctfile matches
Binary file /gnu/store/pkg54952yx7dgv4cwjiwpfq5l9lyv90y-octave-4.2.1/bin/mkoctfile-4.2.1 matches
--8<---------------cut here---------------end--------------->8---

However, native-inputs should not be referenced at all, so the patch
LGTM apart from the comment update.  Or maybe it's simply outdated?

Side note: Why is it referring to a different texinfo than the one from
`guix build texinfo`.

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

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

* [bug#28000] [PATCH] gnu: octave: Build with texinfo.
  2017-09-27 21:14 ` [bug#28000] [PATCH] gnu: octave: Build with texinfo Marius Bakke
@ 2017-09-29 14:55   ` Arun Isaac
  0 siblings, 0 replies; 9+ messages in thread
From: Arun Isaac @ 2017-09-29 14:55 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 28000


Oops! I just realized that my patch doesn't work. Let me explain.

Octave uses makeinfo to render the built-in function documentation. So,
it complains when it is not able to find makeinfo. This is shown below:

octave:1> help sin
sh: makeinfo: command not found
warning: help: Texinfo formatting filter exited abnormally; raw Texinfo source of help text follows...
'sin' is a built-in function from the file libinterp/corefcn/mappers.cc

Moving texinfo to inputs does not fix this. I wrongly thought it did
because when I tested octave within the following environment, the
built-in documentation worked.

$ guix environment guix
$ ./pre-inst-env guix environment --ad-hoc octave

However, this was only because texinfo, having been pulled in by the
guix environment, was in the profile.

Now, I'll try to patch the octave source code so that it references the
makeinfo executable in the store. I will send a new patch when I'm done.

^ permalink raw reply	[flat|nested] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ messages in thread

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

Thread overview: 9+ 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
     [not found] <ddec1ecd.AEEARAgPOywAAAAAAAAAAAPFd4cAAAACwQwAAAAAAAW9WABZylTD@mailjet.com>
2017-09-27 21:14 ` [bug#28000] [PATCH] gnu: octave: Build with texinfo Marius Bakke
2017-09-29 14:55   ` 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).