[arch-commits] Commit in pari-sage (7 files)

Antonio Rojas arojas at archlinux.org
Tue Apr 14 22:32:56 UTC 2015


    Date: Wednesday, April 15, 2015 @ 00:32:56
  Author: arojas
Revision: 131370

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

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

------------------------------------------------+
 community-i686/PKGBUILD                        |   45 ++++++++++++++++
 community-i686/public_memory_functions.patch   |   61 +++++++++++++++++++++++
 community-x86_64/PKGBUILD                      |   45 ++++++++++++++++
 community-x86_64/public_memory_functions.patch |   61 +++++++++++++++++++++++
 4 files changed, 212 insertions(+)

Copied: pari-sage/repos/community-i686/PKGBUILD (from rev 131369, pari-sage/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD	                        (rev 0)
+++ repos/community-i686/PKGBUILD	2015-04-14 22:32:56 UTC (rev 131370)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=pari-sage
+_pkgver=2.8-1369-g0e48e9b
+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" 'public_memory_functions.patch')
+md5sums=('2ae5684a10d557016fc1b6ad10b8bf80'
+         '9172b9faee975cd3fe0f97126ea61af8')
+
+prepare() {
+	cd pari-${_pkgver}
+	sed 's/\$addlib64//g' -i config/get_libpth
+
+# 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-i686/public_memory_functions.patch (from rev 131369, pari-sage/trunk/public_memory_functions.patch)
===================================================================
--- repos/community-i686/public_memory_functions.patch	                        (rev 0)
+++ repos/community-i686/public_memory_functions.patch	2015-04-14 22:32:56 UTC (rev 131370)
@@ -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-x86_64/PKGBUILD (from rev 131369, pari-sage/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2015-04-14 22:32:56 UTC (rev 131370)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=pari-sage
+_pkgver=2.8-1369-g0e48e9b
+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" 'public_memory_functions.patch')
+md5sums=('2ae5684a10d557016fc1b6ad10b8bf80'
+         '9172b9faee975cd3fe0f97126ea61af8')
+
+prepare() {
+	cd pari-${_pkgver}
+	sed 's/\$addlib64//g' -i config/get_libpth
+
+# 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-x86_64/public_memory_functions.patch (from rev 131369, pari-sage/trunk/public_memory_functions.patch)
===================================================================
--- repos/community-x86_64/public_memory_functions.patch	                        (rev 0)
+++ repos/community-x86_64/public_memory_functions.patch	2015-04-14 22:32:56 UTC (rev 131370)
@@ -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