[arch-commits] Commit in pari-sage/repos (6 files)

Antonio Rojas arojas at archlinux.org
Mon May 18 09:27:12 UTC 2015


    Date: Monday, May 18, 2015 @ 11:27:12
  Author: arojas
Revision: 133703

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  pari-sage/repos/community-staging-i686/
  pari-sage/repos/community-staging-i686/PKGBUILD
    (from rev 133702, pari-sage/trunk/PKGBUILD)
  pari-sage/repos/community-staging-i686/public_memory_functions.patch
    (from rev 133702, pari-sage/trunk/public_memory_functions.patch)
  pari-sage/repos/community-staging-x86_64/
  pari-sage/repos/community-staging-x86_64/PKGBUILD
    (from rev 133702, pari-sage/trunk/PKGBUILD)
  pari-sage/repos/community-staging-x86_64/public_memory_functions.patch
    (from rev 133702, pari-sage/trunk/public_memory_functions.patch)

--------------------------------------------------------+
 community-staging-i686/PKGBUILD                        |   46 +++++++++++
 community-staging-i686/public_memory_functions.patch   |   61 +++++++++++++++
 community-staging-x86_64/PKGBUILD                      |   46 +++++++++++
 community-staging-x86_64/public_memory_functions.patch |   61 +++++++++++++++
 4 files changed, 214 insertions(+)

Copied: pari-sage/repos/community-staging-i686/PKGBUILD (from rev 133702, pari-sage/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-05-18 09:27:12 UTC (rev 133703)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=pari-sage
+_pkgver=2.8-1564-gdeac36e
+pkgver=${_pkgver//-/.}
+pkgrel=1
+pkgdesc='Computer algebra system designed for fast computations in number theory. Development snapshot required by SageMath'
+url='http://pari.math.u-bordeaux.fr/'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('gmp' 'readline' 'libx11')
+makedepends=('perl' 'texlive-core')
+optdepends=('perl: gphelp, tex2mail')
+conflicts=('pari')
+provides=('pari')
+# source=("http://www.sagemath.org/packages/upstream/pari/pari-$_pkgver.tar.gz"
+source=("http://mirrors.mit.edu/sage/spkg/upstream/pari/pari-$_pkgver.tar.gz"
+ 'public_memory_functions.patch')
+md5sums=('971950d42bd6d953b22f86a02a486878'
+         '9172b9faee975cd3fe0f97126ea61af8')
+
+prepare() {
+  cd pari-${_pkgver}
+
+# make some private functions public
+  patch -p1 -i "$srcdir"/public_memory_functions.patch
+}
+
+build() {
+	cd pari-${_pkgver}
+	./Configure \
+		--prefix=/usr \
+		--with-readline \
+		--mt=pthread \
+		--with-gmp \
+
+	make all
+}
+
+package() {
+	cd pari-${_pkgver}
+	make DESTDIR="${pkgdir}" install
+	ln -sf gp.1.gz "${pkgdir}"/usr/share/man/man1/pari.1
+}

Copied: pari-sage/repos/community-staging-i686/public_memory_functions.patch (from rev 133702, pari-sage/trunk/public_memory_functions.patch)
===================================================================
--- community-staging-i686/public_memory_functions.patch	                        (rev 0)
+++ community-staging-i686/public_memory_functions.patch	2015-05-18 09:27:12 UTC (rev 133703)
@@ -0,0 +1,61 @@
+diff --git a/src/headers/paridecl.h b/src/headers/paridecl.h
+index 7067183..4ede6ed 100644
+--- a/src/headers/paridecl.h
++++ b/src/headers/paridecl.h
+@@ -2819,6 +2819,9 @@ GEN     pari_thread_start(struct pari_thread *t);
+ void    pari_thread_valloc(struct pari_thread *t, size_t s, size_t v, GEN arg);
+ GEN     pari_version(void);
+ void    pari_warn(int numerr, ...);
++void *  pari_mainstack_malloc(size_t size);
++void    pari_mainstack_mfree(void *s, size_t size);
++void    pari_mainstack_free(struct pari_mainstack *st);
+ void    paristack_alloc(size_t rsize, size_t vsize);
+ void    paristack_newrsize(ulong newsize);
+ void    paristack_resize(ulong newsize);
+diff --git a/src/language/init.c b/src/language/init.c
+index 7b5922d..2a578d7 100644
+--- a/src/language/init.c
++++ b/src/language/init.c
+@@ -612,7 +612,7 @@ pari_add_oldmodule(entree *ep)
+ #ifndef MAP_NORESERVE
+ #define MAP_NORESERVE 0
+ #endif
+-static void *
++void *
+ pari_mainstack_malloc(size_t size)
+ {
+   void *b = mmap(NULL, size, PROT_READ|PROT_WRITE,
+@@ -620,7 +620,7 @@ pari_mainstack_malloc(size_t size)
+   return (b == MAP_FAILED) ? NULL: b;
+ }
+ 
+-static void
++void
+ pari_mainstack_mfree(void *s, size_t size)
+ {
+   munmap(s, size);
+@@ -634,13 +634,13 @@ pari_mainstack_mreset(void *s, size_t size)
+ 
+ #else
+ #define PARI_STACK_ALIGN (0x40UL)
+-static void *
++void *
+ pari_mainstack_malloc(size_t s)
+ {
+   return malloc(s); /* NOT pari_malloc, e_MEM would be deadly */
+ }
+ 
+-static void
++void
+ pari_mainstack_mfree(void *s, size_t size) { (void) size; free(s); }
+ 
+ static void
+@@ -681,7 +681,7 @@ pari_mainstack_alloc(struct pari_mainstack *st, size_t rsize, size_t vsize)
+   st->memused = 0;
+ }
+ 
+-static void
++void
+ pari_mainstack_free(struct pari_mainstack *st)
+ {
+   pari_mainstack_mfree((void*)st->vbot, st->vsize ? st->vsize : fix_size(st->rsize));

Copied: pari-sage/repos/community-staging-x86_64/PKGBUILD (from rev 133702, pari-sage/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-05-18 09:27:12 UTC (rev 133703)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=pari-sage
+_pkgver=2.8-1564-gdeac36e
+pkgver=${_pkgver//-/.}
+pkgrel=1
+pkgdesc='Computer algebra system designed for fast computations in number theory. Development snapshot required by SageMath'
+url='http://pari.math.u-bordeaux.fr/'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('gmp' 'readline' 'libx11')
+makedepends=('perl' 'texlive-core')
+optdepends=('perl: gphelp, tex2mail')
+conflicts=('pari')
+provides=('pari')
+# source=("http://www.sagemath.org/packages/upstream/pari/pari-$_pkgver.tar.gz"
+source=("http://mirrors.mit.edu/sage/spkg/upstream/pari/pari-$_pkgver.tar.gz"
+ 'public_memory_functions.patch')
+md5sums=('971950d42bd6d953b22f86a02a486878'
+         '9172b9faee975cd3fe0f97126ea61af8')
+
+prepare() {
+  cd pari-${_pkgver}
+
+# make some private functions public
+  patch -p1 -i "$srcdir"/public_memory_functions.patch
+}
+
+build() {
+	cd pari-${_pkgver}
+	./Configure \
+		--prefix=/usr \
+		--with-readline \
+		--mt=pthread \
+		--with-gmp \
+
+	make all
+}
+
+package() {
+	cd pari-${_pkgver}
+	make DESTDIR="${pkgdir}" install
+	ln -sf gp.1.gz "${pkgdir}"/usr/share/man/man1/pari.1
+}

Copied: pari-sage/repos/community-staging-x86_64/public_memory_functions.patch (from rev 133702, pari-sage/trunk/public_memory_functions.patch)
===================================================================
--- community-staging-x86_64/public_memory_functions.patch	                        (rev 0)
+++ community-staging-x86_64/public_memory_functions.patch	2015-05-18 09:27:12 UTC (rev 133703)
@@ -0,0 +1,61 @@
+diff --git a/src/headers/paridecl.h b/src/headers/paridecl.h
+index 7067183..4ede6ed 100644
+--- a/src/headers/paridecl.h
++++ b/src/headers/paridecl.h
+@@ -2819,6 +2819,9 @@ GEN     pari_thread_start(struct pari_thread *t);
+ void    pari_thread_valloc(struct pari_thread *t, size_t s, size_t v, GEN arg);
+ GEN     pari_version(void);
+ void    pari_warn(int numerr, ...);
++void *  pari_mainstack_malloc(size_t size);
++void    pari_mainstack_mfree(void *s, size_t size);
++void    pari_mainstack_free(struct pari_mainstack *st);
+ void    paristack_alloc(size_t rsize, size_t vsize);
+ void    paristack_newrsize(ulong newsize);
+ void    paristack_resize(ulong newsize);
+diff --git a/src/language/init.c b/src/language/init.c
+index 7b5922d..2a578d7 100644
+--- a/src/language/init.c
++++ b/src/language/init.c
+@@ -612,7 +612,7 @@ pari_add_oldmodule(entree *ep)
+ #ifndef MAP_NORESERVE
+ #define MAP_NORESERVE 0
+ #endif
+-static void *
++void *
+ pari_mainstack_malloc(size_t size)
+ {
+   void *b = mmap(NULL, size, PROT_READ|PROT_WRITE,
+@@ -620,7 +620,7 @@ pari_mainstack_malloc(size_t size)
+   return (b == MAP_FAILED) ? NULL: b;
+ }
+ 
+-static void
++void
+ pari_mainstack_mfree(void *s, size_t size)
+ {
+   munmap(s, size);
+@@ -634,13 +634,13 @@ pari_mainstack_mreset(void *s, size_t size)
+ 
+ #else
+ #define PARI_STACK_ALIGN (0x40UL)
+-static void *
++void *
+ pari_mainstack_malloc(size_t s)
+ {
+   return malloc(s); /* NOT pari_malloc, e_MEM would be deadly */
+ }
+ 
+-static void
++void
+ pari_mainstack_mfree(void *s, size_t size) { (void) size; free(s); }
+ 
+ static void
+@@ -681,7 +681,7 @@ pari_mainstack_alloc(struct pari_mainstack *st, size_t rsize, size_t vsize)
+   st->memused = 0;
+ }
+ 
+-static void
++void
+ pari_mainstack_free(struct pari_mainstack *st)
+ {
+   pari_mainstack_mfree((void*)st->vbot, st->vsize ? st->vsize : fix_size(st->rsize));



More information about the arch-commits mailing list