[sagemath] 02/03: Add pari.patch to let sage find pari.desc.

Tobias Hansen thansen at moszumanska.debian.org
Sat May 23 14:16:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository sagemath.

commit 074d631a28737d7cfa812f8d381c1dc550fd0298
Author: Tobias Hansen <tobias.han at gmx.de>
Date:   Sat May 23 14:04:45 2015 +0000

    Add pari.patch to let sage find pari.desc.
---
 debian/patches/pari.patch | 23 +++++++++++++++++++++++
 debian/patches/series     |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/pari.patch b/debian/patches/pari.patch
new file mode 100644
index 0000000..804bb9a
--- /dev/null
+++ b/debian/patches/pari.patch
@@ -0,0 +1,23 @@
+--- a/sage/src/Makefile
++++ b/sage/src/Makefile
+@@ -24,7 +24,7 @@
+ 
+ 
+ # Auto-generated files
+-sage/libs/pari/auto_gen.pxi: $(SAGE_LOCAL)/share/pari/pari.desc \
++sage/libs/pari/auto_gen.pxi: /usr/share/pari/pari.desc \
+         sage/libs/pari/decl.pxi sage_setup/autogen/pari/*.py
+ 	python -c "from sage_setup.autogen.pari import rebuild; rebuild()"
+ 
+--- a/sage/src/sage_setup/autogen/pari/parser.py
++++ b/sage/src/sage_setup/autogen/pari/parser.py
+@@ -43,8 +43,7 @@
+         sage: pari_share()
+         '.../local/share/pari'
+     """
+-    SAGE_LOCAL = os.environ["SAGE_LOCAL"]
+-    return os.path.join(SAGE_LOCAL, "share", "pari")
++    return os.path.join("/usr", "share", "pari")
+ 
+ paren_re = re.compile(r"[(](.*)[)]")
+ argname_re = re.compile(r"[ {]*([A-Za-z0-9_]+)")
diff --git a/debian/patches/series b/debian/patches/series
index fbe799f..9ff3eb1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ sagedoc_avoid_exception.patch
 silence_matplotlib_1_3_changes.patch
 rubiks_executables_renames.patch
 python_installs_in_userdir.patch
+pari.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list