unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Federico Beffa <beffa@ieee.org>
To: guix-devel@gnu.org
Subject: [PATCH] gnu packages maxima: Update to 5.34.1 and fix dependencies
Date: Tue, 23 Sep 2014 18:18:42 +0200	[thread overview]
Message-ID: <CAKrPhPOYBHp+hxVMd_i_WOwm94qa7W46CuhypXM3UzbBNx21fw@mail.gmail.com> (raw)

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

I would like to propose the attached patch for maxima.
This updates it to version 5.34.1 which fixes an upstream bug in
plot2d and friends. Also it fixes dependencies to gnuplot and tk.

In preparing the patch I've observed the following:

The build procedure (make) generates some temporary files. When I
build the package with guix, guix extracts the program tar.gz archive
in the temporary directory

/tmp/nix-build-maxima-5.34.1.drv-0

However, maxima attempts to create temporary files in

/tmp/nix-build-maxima-5.34.1

and fails. To correct for this I've explicitly passed "TMPDIR=/tmp" to
make. Is this the expected behavior?

Regards,
Fede

[-- Attachment #2: 0001-gnu-packages-maxima-Update-to-5.34.1-and-fix-depende.patch --]
[-- Type: text/x-patch, Size: 2794 bytes --]

From 998303ea042361727837baf38193462148c07565 Mon Sep 17 00:00:00 2001
From: Federico Beffa <beffa@fbengineering.ch>
Date: Tue, 23 Sep 2014 16:20:02 +0200
Subject: [PATCH] gnu packages maxima: Update to 5.34.1 and fix dependencies

* gnu/packages/maths.scm(maxima): Update to 5.34.1 which fixes a bug in the
  plotting capabilities (plot2d, ...) present in the previous version
  (5.33.0).  Add the 'gnuplot' depencency which is required to generate plots.
  Add 'tcl' and 'tk' as dependencies: they are required by the 'xmaxima'
  command.
---
 gnu/packages/maths.scm | 33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index af9feff..0321929 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -58,6 +58,7 @@
   #:use-module (gnu packages python)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages tcsh)
+  #:use-module (gnu packages tcl)
   #:use-module (gnu packages texinfo)
   #:use-module (gnu packages texlive)
   #:use-module (gnu packages xml))
@@ -836,7 +837,7 @@ to BMP, JPEG or PNG image formats.")
 (define-public maxima
   (package
     (name "maxima")
-    (version "5.33.0")
+    (version "5.34.1")
     (source
      (origin
        (method url-fetch)
@@ -844,19 +845,33 @@ to BMP, JPEG or PNG image formats.")
                            version "-source/" name "-" version ".tar.gz"))
        (sha256
         (base32
-         "13axm11xw0f3frx5b0qdidi7igkn1524fzz77s9rbpl2yy2nrbz2"))))
+         "1dw9vfzldpj7lv303xbw0wpyn6ra6i2yzwlrjbcx7j0jm5n43ji0"))))
     (build-system gnu-build-system)
-    (arguments
-     `(#:phases (alist-cons-before
-                 'check 'pre-check
-                 (lambda _ 
-                   (chmod "src/maxima" #o555))
-                 %standard-phases)))
     (inputs 
-     `(("gcl" ,gcl)))
+     `(("gcl" ,gcl)
+       ("gnuplot" ,gnuplot)
+       ("tcl" ,tcl)
+       ("tk" ,tk)))
     (native-inputs 
      `(("texinfo" ,texinfo)
        ("perl" ,perl)))
+    (arguments
+     `(#:configure-flags 
+       (list "--enable-gcl"
+	     (string-append "--with-posix-shell="
+			    (assoc-ref %build-inputs "bash")
+			    "/bin/sh")
+	     (string-append "--with-wish="
+			    (assoc-ref %build-inputs "tk")
+			    "/bin/wish"
+			    (let ((v ,(package-version tk)))
+			      (string-take v (string-index-right v #\.)))))
+       #:make-flags (list "TMPDIR=/tmp")
+       #:phases (alist-cons-before
+		 'check 'pre-check
+		 (lambda _ 
+		   (chmod "src/maxima" #o555))
+		 %standard-phases)))
     (home-page "http://maxima.sourceforge.net")
     (synopsis "Numeric and symbolic expression manipulation")
     (description "Maxima is a system for the manipulation of symbolic and
-- 
1.8.4


             reply	other threads:[~2014-09-23 16:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23 16:18 Federico Beffa [this message]
2014-09-24  7:45 ` [PATCH] gnu packages maxima: Update to 5.34.1 and fix dependencies Ludovic Courtès
2014-09-25 17:01   ` Federico Beffa
2014-09-25 19:12     ` Ludovic Courtès
2014-09-26 16:59       ` Federico Beffa
2014-09-27  9:24         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKrPhPOYBHp+hxVMd_i_WOwm94qa7W46CuhypXM3UzbBNx21fw@mail.gmail.com \
    --to=beffa@ieee.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).