[arch-commits] Commit in sympow/repos/community-x86_64 (6 files)

Antonio Rojas arojas at archlinux.org
Mon Dec 11 23:17:26 UTC 2017


    Date: Monday, December 11, 2017 @ 23:17:25
  Author: arojas
Revision: 273920

archrelease: copy trunk to community-x86_64

Added:
  sympow/repos/community-x86_64/PKGBUILD
    (from rev 273919, sympow/trunk/PKGBUILD)
  sympow/repos/community-x86_64/sympow-datafiles.patch
    (from rev 273919, sympow/trunk/sympow-datafiles.patch)
  sympow/repos/community-x86_64/sympow-initialize-tacks.patch
    (from rev 273919, sympow/trunk/sympow-initialize-tacks.patch)
  sympow/repos/community-x86_64/sympow.sh
    (from rev 273919, sympow/trunk/sympow.sh)
Deleted:
  sympow/repos/community-x86_64/PKGBUILD
  sympow/repos/community-x86_64/sympow.sh

-------------------------------+
 PKGBUILD                      |   88 +++++++++++++++++++---------------------
 sympow-datafiles.patch        |   76 ++++++++++++++++++++++++++++++++++
 sympow-initialize-tacks.patch |   38 +++++++++++++++++
 sympow.sh                     |   20 ++++-----
 4 files changed, 166 insertions(+), 56 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-11 23:17:06 UTC (rev 273919)
+++ PKGBUILD	2017-12-11 23:17:25 UTC (rev 273920)
@@ -1,46 +0,0 @@
-# $Id$
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=sympow
-pkgver=1.018.1
-pkgrel=4
-pkgdesc="A a package to compute special values of symmetric power elliptic
-curve L-functions"
-arch=(i686 x86_64)
-url="http://www.sagemath.org"
-license=(GPL)
-depends=(pari)
-source=("http://mirrors.mit.edu/sage/spkg/upstream/$pkgname/$pkgname-$pkgver.tar.bz2" 'sympow.sh')
-md5sums=('b6cbb7488870d70d92d11176049cb91b'
-         '93f214e7f22df8ae525d9fbfbf82eeb1')
-
-prepare() {
-  cd $pkgname-$pkgver
-
-  sed -e "s|../sympow|sympow_bin|g" -i generate.c
-  sed -e "s|./sympow|sympow_bin|g" -i disk.c new_data
-}
-
-build() {
-  cd $pkgname-$pkgver
-
-  ./Configure
-  make
-}
-
-package() {
-  cd $pkgname-$pkgver
-
-  mkdir -p "$pkgdir"/usr/{bin,share/sympow}
-  cp -r *.gp datafiles "$pkgdir"/usr/share/sympow
-  cp sympow "$pkgdir"/usr/bin/sympow_bin
-  cp new_data "$pkgdir"/usr/bin/new_data
-
-  cd "$pkgdir"/usr/share/sympow/datafiles
-
-  for file in *.txt; do
-    "$srcdir"/$pkgname-$pkgver/sympow -txt2bin "$(grep -c AT $file)" <$file ${file/txt/bin}
-  done
-
-  install -Dm755 "$srcdir"/sympow.sh "$pkgdir"/usr/bin/sympow
-}

Copied: sympow/repos/community-x86_64/PKGBUILD (from rev 273919, sympow/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-12-11 23:17:25 UTC (rev 273920)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=sympow
+pkgver=1.018.1
+pkgrel=5
+pkgdesc="A a package to compute special values of symmetric power elliptic curve L-functions"
+arch=(x86_64)
+url="http://www.sagemath.org"
+license=(GPL)
+depends=(pari)
+source=("http://mirrors.mit.edu/sage/spkg/upstream/$pkgname/$pkgname-$pkgver.tar.bz2" 'sympow.sh'
+        sympow-datafiles.patch sympow-initialize-tacks.patch)
+sha256sums=('6cd4559e177502c44dbce3b1a6aeab3e6f4d24df1f21e19aaf25f3a0e2d1f042'
+            'cc9afc9c4cc1b9b539b2051bda960a661809475e68389f4e9c56bd72268e16ee'
+            'c3028de720d5069f89f520d86c3ab6dec686f476c8b19a7a0bd83a7db4abf0cd'
+            '61c79418d5bb173a3976a3c351a7a1ae1ddba4e2e8e183d7246ba5013efe1e31')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  patch -p1 -i ../sympow-datafiles.patch # Fedora
+  patch -p1 -i ../sympow-initialize-tacks.patch # fix segfaults
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./Configure
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  mkdir -p "$pkgdir"/usr/{bin,share/sympow}
+  cp -r *.gp datafiles "$pkgdir"/usr/share/sympow
+  cp sympow "$pkgdir"/usr/bin/sympow_bin
+  cp new_data "$pkgdir"/usr/bin/new_data
+
+  install -Dm755 "$srcdir"/sympow.sh "$pkgdir"/usr/bin/sympow
+}

Copied: sympow/repos/community-x86_64/sympow-datafiles.patch (from rev 273919, sympow/trunk/sympow-datafiles.patch)
===================================================================
--- sympow-datafiles.patch	                        (rev 0)
+++ sympow-datafiles.patch	2017-12-11 23:17:25 UTC (rev 273920)
@@ -0,0 +1,76 @@
+diff -p -up SYMPOW-1.019/disk.c.orig SYMPOW-1.019/disk.c
+--- SYMPOW-1.019/disk.c.orig	2009-09-03 18:20:37.000000000 -0300
++++ SYMPOW-1.019/disk.c	2009-09-03 18:22:08.000000000 -0300
+@@ -47,8 +47,8 @@ static int get_params(int which,int sp,i
+  while (1)
+  {if (!getline0(F,LINE,64))
+   {printf("**ERROR** %s not found in param_data file\n",S);
+-   if (!HECKE) printf("It can be added with './sympow -new_data %i",sp);
+-   else printf("It can be added with './sympow -new_data %i",ep);
++   if (!HECKE) printf("It can be added with 'sympow -new_data %i",sp);
++   else printf("It can be added with 'sympow -new_data %i",ep);
+    if ((sp&1) || HECKE) printf("d%i",dv); if ((HECKE) && (sp>1)) printf("h");
+    if ((CM_CASE) && ((sp&3)==0)) printf("c"); printf("'\n"); exit(-1);}
+   if ((S[0]==LINE[0]) && (S[1]==LINE[1]) && (S[2]==LINE[2]) && (S[3]==LINE[3])
+diff -p -up SYMPOW-1.019/generate.c.orig SYMPOW-1.019/generate.c
+--- SYMPOW-1.019/generate.c.orig	2009-09-03 18:20:49.000000000 -0300
++++ SYMPOW-1.019/generate.c	2009-09-03 18:22:23.000000000 -0300
+@@ -101,9 +101,11 @@ int assure_line(char *STR)
+ 
+ void new_sympow_s1(char *A)
+ {procit(A);
+- printf("echo 'Removing any old data files'\n"); printf("cd datafiles\n");
+- printf("%s -f %s %s %s\n",RM,Mtxt1,Stxt1,Mbin1);
+- if (HILO) printf("%s -f %s %s %s\n",RM,Mtxt2,Stxt2,Mbin2); printf("cd ..\n");}
++ printf("if [ -d datafiles ]; then\n");
++ printf("    echo 'Removing any old data files'\n"); printf("    pushd datafiles\n    touch param_data\n");
++ printf("    %s -f %s %s %s\n",RM,Mtxt1,Stxt1,Mbin1);
++ if (HILO) printf("    %s -f %s %s %s\n",RM,Mtxt2,Stxt2,Mbin2); printf("    popd\n");
++ printf("else\n    mkdir datafiles\n    touch datafiles/param_data\nfi\n");}
+ 
+ void new_sympow_pari(char *A)
+ {int i; procit(A); pari_params();
+@@ -142,10 +144,10 @@ void new_sympow_s2(char *A)
+  trimit(Mtxt1); trimit(Stxt1); if (HILO) {trimit(Mtxt2); trimit(Stxt2);}
+  printf("echo 'Turning the meshes into binaries'\n");
+  printf("NUM=`%s -c AT %s`\n",GREP,Mtxt1);
+- printf("../sympow -txt2bin $NUM %s < %s\n",Mbin1,Mtxt1);
++ printf("sympow -txt2bin $NUM %s < %s\n",Mbin1,Mtxt1);
+  if (HILO)
+  {printf("NUM=`%s -c AT %s`\n",GREP,Mtxt2);
+-  printf("../sympow -txt2bin $NUM %s < %s\n",Mbin2,Mtxt2);}
++  printf("sympow -txt2bin $NUM %s < %s\n",Mbin2,Mtxt2);}
+  printf("cd ..\n");}
+ 
+ void rewarp_params()
+diff -p -up SYMPOW-1.019/new_data.orig SYMPOW-1.019/new_data
+--- SYMPOW-1.019/new_data.orig	2009-09-03 18:20:25.000000000 -0300
++++ SYMPOW-1.019/new_data	2009-09-03 18:21:31.000000000 -0300
+@@ -1,7 +1,7 @@
+ #! /bin/sh
+ #
+ # This script should not need to be run directly,
+-# but will be automatically executed via "./sympow -new_data []"
++# but will be automatically executed via "sympow -new_data []"
+ #
+ # example direct usages
+ # sh new_data /bin/sh /usr/bin/gp '-sp 3 -dv 2'
+@@ -18,11 +18,11 @@ echo "Running the new_data script for $3
+ 
+ SH=$1 && GP=$2
+ echo "Making the datafiles for $3" && echo "" &&
+-./sympow -rewarp && ./sympow -shell1 "$3" &&
+-./sympow -shell1 "$3" | $SH &&
++sympow -rewarp && sympow -shell1 "$3" &&
++sympow -shell1 "$3" | $SH &&
+ echo 'Running the gp script' && echo "" &&
+-./sympow -pari "$3" &&
+-./sympow -pari "$3" | $GP -q > /dev/null && echo "" &&
+-./sympow -shell2 "$3" &&
+-./sympow -shell2 "$3" | $SH &&
+-./sympow -rewarp && echo "Finished with $3"
++sympow -pari "$3" &&
++sympow -pari "$3" | $GP -q > /dev/null && echo "" &&
++sympow -shell2 "$3" &&
++sympow -shell2 "$3" | $SH &&
++sympow -rewarp && echo "Finished with $3"

Copied: sympow/repos/community-x86_64/sympow-initialize-tacks.patch (from rev 273919, sympow/trunk/sympow-initialize-tacks.patch)
===================================================================
--- sympow-initialize-tacks.patch	                        (rev 0)
+++ sympow-initialize-tacks.patch	2017-12-11 23:17:25 UTC (rev 273920)
@@ -0,0 +1,38 @@
+diff -u sympow-1.018.1/analrank.c sympow/analrank.c
+--- src/analrank.c	2007-08-21 06:57:01.000000000 +0200
++++ analrank.c	2017-04-24 10:13:45.757479996 +0200
+@@ -18,7 +18,8 @@
+   S[20]+=2; S[31]+=4; S[42]+=6; S[53]+=8;
+   NT=process_string(S,UB); go(NT,NT); return;}
+  else {AP_SAVE=1; apsave=malloc(primes_upper_bound(NT)*sizeof(int));}
+- if (NT<MIN_TERMS) NT=MIN_TERMS; f=go(NT,NT); free_data();
++ if (NT<MIN_TERMS) NT=MIN_TERMS;
++ f=go(NT,NT); free_data();
+  if (Abs(f)/REAL_PERIOD[0]>0.0001)
+  {if (w1==1) printf("Analytic Rank is 0 : L-value %.5e\n",f);
+   else printf("Analytic Rank is 1 : L'-value %.5e\n",f); return;}
+diff -u sympow-1.018.1/prepare.c sympow/prepare.c
+--- src/prepare.c	2007-08-21 06:57:01.000000000 +0200
++++ prepare.c	2017-04-24 10:50:10.941042660 +0200
+@@ -147,7 +147,7 @@
+  WIGGLE=malloc(K*sizeof(QD)); WIGSQI=malloc(K*sizeof(QD));
+  EXPAND0_LIM=malloc(K*sizeof(QD)); STEP_SIZE=malloc(K*sizeof(QD));
+  TOO_BIG=malloc(K*sizeof(QD)); NUM_LOGS=malloc(K*sizeof(QD));
+- TACKON=malloc(K*sizeof(int)); TACKS=malloc(K*sizeof(QD*));
++ TACKON=malloc(K*sizeof(int)); TACKS=calloc(K,sizeof(QD*));
+  w=malloc(K*sizeof(int)); wprec=malloc(K*sizeof(int));
+  DECAY=malloc(K*sizeof(QD)); NUM_WIGS=malloc(K*sizeof(QD));
+  for (i=0;i<K;i++) QD_copy(wmax,QD_zero,COND[i]); WHICH=0; NUM_SUMS=0;
+diff -u sympow-1.018.1/util.c sympow/util.c
+--- src/util.c	2007-08-21 06:57:01.000000000 +0200
++++ util.c	2017-04-24 10:50:52.013938229 +0200
+@@ -23,7 +23,8 @@
+  if (DEBUG>=2) printf("Done with get_primes_ll\n"); free(auxp);}
+ 
+ void free_data()
+-{QD **P; int i; if (DEBUG) printf("free_data\n"); free(TACKS[0]);
++{QD **P; int i; if (DEBUG) printf("free_data\n");
++ if(TACKS[0]!=NULL) free(TACKS[0]);
+  P=TABLE[0]; for (i=0;i<MESH_COUNT[0];i++) free(P[i]); free(P);
+  P=POWSER[0]; for (i=0;i<=NUM_LOGS[0];i++) free(P[i]); free(P);}
+ 

Deleted: sympow.sh
===================================================================
--- sympow.sh	2017-12-11 23:17:06 UTC (rev 273919)
+++ sympow.sh	2017-12-11 23:17:25 UTC (rev 273920)
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-SYMPOW_LOCAL="$HOME"/.local/share/sympow
-
-if [ ! -d "${SYMPOW_LOCAL}" ]; then
-    mkdir -p "${SYMPOW_LOCAL}"
-    cp -r /usr/share/sympow/* "${SYMPOW_LOCAL}"
-fi
-cd "$SYMPOW_LOCAL"
-exec sympow_bin "$@"

Copied: sympow/repos/community-x86_64/sympow.sh (from rev 273919, sympow/trunk/sympow.sh)
===================================================================
--- sympow.sh	                        (rev 0)
+++ sympow.sh	2017-12-11 23:17:25 UTC (rev 273920)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+SYMPOW_LOCAL="$HOME"/.local/share/sympow
+
+if [ ! -d "${SYMPOW_LOCAL}" ]; then
+    mkdir -p "${SYMPOW_LOCAL}"
+    cp -r /usr/share/sympow/* "${SYMPOW_LOCAL}"
+fi
+cd "$SYMPOW_LOCAL"
+exec sympow_bin "$@"



More information about the arch-commits mailing list