Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure all optional packages work in the git repository #14962

Closed
ohanar opened this issue Jul 24, 2013 · 45 comments
Closed

make sure all optional packages work in the git repository #14962

ohanar opened this issue Jul 24, 2013 · 45 comments

Comments

@ohanar
Copy link
Member

ohanar commented Jul 24, 2013

we support them, so we need to make sure they will continue to work

Script to systematically try out all optional spkgs: http://boxen.math.washington.edu/home/vbraun/Sage/Testing/test_optional_packages.sh

The optional databases will be dealt with here, other packages should make separate tickets. Use the following new "upstream" tarballs:

Leave for later, don't work and no SPKG.txt:

  • cunningham_tables
  • database_jones_numfield
  • database_kohel
  • database_odlyzko_zeta
  • database_sloane_oeis
  • database_stein_watkins_mini.p0

Move to experimental (broken with or without git, probably for a long time):

  • fricas (doesn't build with our ecl)
  • fricas-aldor (dito)
  • libcocoa (doesn't build with our gmp/mpir)

Delete for other reasons:

  • jsmath_image_fonts (we switched to mathjax)

Depends on #15172
Depends on #15261
Depends on #15263
Depends on #15370
Depends on #15302
Depends on #15814

CC: @haraldschilly

Component: packages: optional

Author: Volker Braun

Branch/Commit: u/vbraun/optional_databases @ 5b72359

Reviewer: Volker Braun

Issue created by migration from https://trac.sagemath.org/ticket/14962

@ohanar ohanar added this to the sage-6.0 milestone Jul 24, 2013
@ohanar
Copy link
Member Author

ohanar commented Aug 5, 2013

Branch: u/ohanar/optional

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2013

Branch pushed to git repo; I updated commit sha1. This was a forced push. Recent commits:

[changeset:acbbe0d] Merge branch 'build_system' into optional
[changeset:2535903] [FIXUP] optional: add git specific files
[changeset:c463e93] [CLEANUP] remove hgignores
[changeset:8bb933a] Merge in optional packages
[changeset:4ea72f0] Trac #14909: Add new dependencies of the HAP package

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2013

Commit: acbbe0d

@ohanar
Copy link
Member Author

ohanar commented Sep 1, 2013

Changed branch from u/ohanar/optional to u/ohanar/test

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2013

Changed commit from acbbe0d to cfd9dd1

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2013

Changed commit from cfd9dd1 to cf45f45

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2013

Changed commit from cf45f45 to 728e542

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2013

Branch pushed to git repo; I updated commit sha1. New commits:

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2013

Changed commit from 728e542 to cf45f45

@vbraun
Copy link
Member

vbraun commented Oct 6, 2013

Changed commit from cf45f45 to none

@vbraun
Copy link
Member

vbraun commented Oct 6, 2013

Dependencies: #15172

@vbraun
Copy link
Member

vbraun commented Oct 6, 2013

comment:8

4ti2 is currently broken (not related to the git transition) but works with the update at #15172.

@vbraun

This comment has been minimized.

@vbraun
Copy link
Member

vbraun commented Oct 6, 2013

Changed branch from u/ohanar/test to none

@vbraun
Copy link
Member

vbraun commented Oct 6, 2013

Changed dependencies from #15172 to #15172, #15258

@vbraun
Copy link
Member

vbraun commented Oct 6, 2013

comment:10

#15258 fails, because it implements a dependency check in the spkg-install using newest-version. How should optional spkgs handle dependencies when they transition to the new layout, by adding to deps? Or put the dependency rule in a <packagename>/deps file that is included from deps? Or no dependency management?

@ohanar
Copy link
Member Author

ohanar commented Oct 6, 2013

comment:11

For right now I would say no dependency management -- any other solution at this point in time would require messing with the build system, which I don't want to do at the moment (so that we can get through this git transition).

On top of our current faux package manager I would say the best solution would be to replace (at least most of) deps with <packagename>/deps, but I'm not particularly interested in continuing the development of the current build system.

@vbraun
Copy link
Member

vbraun commented Oct 7, 2013

comment:12

The following spkgs failed to install:

brian
cunningham_tables
database_cremona_ellcurve
database_jones_numfield
database_kohel
database_odlyzko_zeta
database_sloane_oeis
database_stein_watkins_mini.p0
database_symbolic_data
fricas
fricasaldor
jsmath_image_fonts
libcocoa
libtheora
mpi4py
openssl
p_group_cohomology
PyQt_x11
TOPCOM
valgrind

Logfiles are here: http://boxen.math.washington.edu/home/vbraun/Sage/Testing/optional/

@vbraun
Copy link
Member

vbraun commented Oct 7, 2013

Branch: u/vbraun/optional_databases

@vbraun
Copy link
Member

vbraun commented Oct 7, 2013

Commit: 5b72359

@vbraun
Copy link
Member

vbraun commented Oct 7, 2013

New commits:

[changeset:5b72359]switched the large Cremona ellcurve database to the new git directory layout

@vbraun
Copy link
Member

vbraun commented Oct 7, 2013

Author: Volker Braun

@vbraun
Copy link
Member

vbraun commented Oct 7, 2013

comment:14

SAGE_DATA is now SAGE_LOCAL/share, for the record.

@vbraun

This comment has been minimized.

@vbraun
Copy link
Member

vbraun commented Oct 7, 2013

comment:16

Also, extra_docs barfs the extra docs into SAGE_ROOT.

@kcrisman
Copy link
Member

kcrisman commented Oct 7, 2013

comment:17

I am not online with the git layout yet (need to attend a tutorial, at the least, though Volker's video was a helpful start) so I can't help with this writing or reviewing yet BUT I have diagnosed the brian problem.

./spkg-install: line 10: cd: /mnt/storage2TB/vbraun-data/Sage/spkg/standard/: No such file or directory
./spkg-install: line 10: ./newest_version: No such file or directory
Failed to find numpy.  Please install the numpy spkg.

There are four tests of the following kind:

NUMPY=`cd $SAGE_ROOT/spkg/standard/; ./newest_version numpy`

So where would we check the "newest version" now? That's all one would need to do, or even check "presence" if the spkg placeholder txt files are no longer there. (That said, I'm not sure if those checks are even really necessary, which would also fix it, I'm sure. But if the fix is easy, then we should try that first.)

@vbraun
Copy link
Member

vbraun commented Oct 7, 2013

comment:18

The brian spkg just needs to strip out all the dependency checking, then it should work. You can still make spkgs as in the old workflow. Git installation instructions are, by now, easy:

git clone git://github.com/sagemath/sage.git
cd sage
make

@kcrisman
Copy link
Member

kcrisman commented Oct 7, 2013

comment:19

The brian spkg just needs to strip out all the dependency checking, then it should work.

As I said:

That said, I'm not sure if those checks are even really necessary, which would also fix it, I'm sure.

I just don't remember why that was introduced. #9675 doesn't make it clear, so when I open this ticket, I'll cc: the original author. Otherwise I agree we should get rid of this. I'll update the patch situation as well and perhaps upgrade Brian if I find time for all this- should be able to in the next couple days.

You can still make spkgs as in the old workflow. Git installation instructions are, by now, easy:

Good to know! And that includes all the spkg stuff.

@kcrisman
Copy link
Member

kcrisman commented Oct 7, 2013

comment:20

I just don't remember why that was introduced. #9675 doesn't make it clear, so when I open this ticket, I'll cc: the original author. Otherwise I agree we should get rid of this. I'll update the patch situation as well and perhaps upgrade Brian if I find time for all this- should be able to in the next couple days.

This is now #15261.

@vbraun
Copy link
Member

vbraun commented Oct 7, 2013

Changed dependencies from #15172, #15258 to #15172, #15261

@vbraun
Copy link
Member

vbraun commented Oct 17, 2013

comment:22
  • mpi4py actually works, just needs openmpi libraries/compiler wrapper installed

@vbraun

This comment has been minimized.

@vbraun
Copy link
Member

vbraun commented Oct 17, 2013

Changed dependencies from #15172, #15261 to #15172, #15261, #15263, #15302

@ohanar
Copy link
Member Author

ohanar commented Nov 7, 2013

Changed dependencies from #15172, #15261, #15263, #15302 to #15172, #15261, #15263, #15370 #15302

@vbraun

This comment has been minimized.

@vbraun

This comment has been minimized.

@vbraun
Copy link
Member

vbraun commented Dec 16, 2013

comment:26

I'm setting this to positive review since clearly nobody else has the guts to review this ticket.

The database_cremona_ellcurve-20121022.tar.bz2 tarball is already in the upstream dir, apparently.

Harald, can you delete/move to trash: fricas, fricas-aldor, libcocoa, and jsmath_image_fonts? They are (and have been for a while) useless with or without git.

@vbraun
Copy link
Member

vbraun commented Dec 16, 2013

Reviewer: Volker Braun

@haraldschilly
Copy link
Member

comment:29

Replying to @vbraun:

Harald, can you delete/move to trash: fricas, fricas-aldor, libcocoa, and jsmath_image_fonts?

ok.

@JohnCremona
Copy link
Member

comment:30

My copy of database_stein_watkins_mini.p0.spkg does contain SPKG.txt:

jec@atkin:~/spkg/database_stein_watkins_mini.p0$ ls -l
total 12
-rwx------ 1 jec jec   49 Mar 12  2010 spkg-install
-rw------- 1 jec jec  389 Mar 13  2010 SPKG.txt
drwx------ 2 jec jec 4096 Nov  7  2005 stein-watkins-ecdb

so I think this one should be easy -- no compilaton, it just copies recurseively the directory to SAGE_DATA:

jec@atkin:~/spkg/database_stein_watkins_mini.p0$ cat spkg-install 
#!/bin/sh

cp -rf stein-watkins-ecdb $SAGE_DATA/

@JohnCremona
Copy link
Member

comment:31

If I was going to work on converting stein_watkins_mini, should I open a new ticket to hold the branch?

@vbraun
Copy link
Member

vbraun commented Dec 20, 2013

comment:32

Please open a new ticket, this one is closed.

stein_watkins_mini contains a skeleton SPKG.txt, but no description (what is it anyways?) and no license (=potentially not legal to distribute). William indicated in the ensuing thread on sage-devel that it is public domain afair.

@JohnCremona
Copy link
Member

comment:33

Replying to @vbraun:

Please open a new ticket, this one is closed.

See #15556.

stein_watkins_mini contains a skeleton SPKG.txt, but no description (what is it anyways?) and no license (=potentially not legal to distribute). William indicated in the ensuing thread on sage-devel that it is public domain afair.

It's a large collection of elliptic curves compiled by William Stein and Mark Watkins about 10 years ago, stored in simple compressed text files. I'll put a reference to their paper in the SPKG.txt (it is already cited properly in the docstrings).

@rwst
Copy link
Contributor

rwst commented Feb 13, 2014

comment:34

See also #15814

@rwst
Copy link
Contributor

rwst commented Feb 13, 2014

Changed dependencies from #15172, #15261, #15263, #15370 #15302 to #15172, #15261, #15263, #15370 #15302, #15814

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants