Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#8514 closed defect (fixed)

Optional database_gap-4.4.12 fails to install on Solaris 10 SPARC

Reported by: drkirkby Owned by: tbd
Priority: major Milestone: sage-4.4
Component: packages: optional Keywords:
Cc: wdj Merged in:
Authors: Dmitrii Pasechnik Reviewers: David Joyner, David Kirkby
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by drkirkby)

Hardware & associated software

  • Sun Blade 1000
  • 2 x 900 MHz UltraSPARC III+ CPUs
  • 2 GB RAM
  • Solaris 10 03/2005 (first release of Solaris 10)
  • gcc 4.4.3 (uses Sun linker and assembler)

Sage version

  • 4.3.4.alpha1
  • Patch #8509 removing the -o option to grep to allow optional packages to install.

This builds fully on Solaris 10, and passes all doc tests. This is the first version of Sage to do this.

The problem with the optional database_gap-4.4.12

database_gap-4.4.12/.hg/requires
database_gap-4.4.12/.hg/00changelog.i
Finished extraction
****************************************************
Host system
uname -a:
SunOS redstart 5.10 Generic sun4u sparc SUNW,Sun-Blade-1000
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.4.3/configure --prefix=/usr/local/gcc-4.4.3 --with-mpfr=/usr/local/gcc-4.4.3 --with-build-time-tools=/usr/ccs/bin --with-gmp=/usr/local/gcc-4.4.3 --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.4.3 (GCC)
****************************************************
./spkg-install: bad substitution

real    0m0.015s
user    0m0.004s
sys     0m0.011s
sage: An error occurred while installing database_gap-4.4.12

The solution

spkg-install looks a bit of a mess to me. I will need to try to work out what the author intended. SPKG.txt gives no idea of the author or anything very useful. It's contents are just:

GAP's databases of finite groups and table of marks.

I need to be a bit of a detective to work this out!!

Change History (13)

comment:1 follow-up: Changed 11 years ago by drkirkby

  • Milestone set to sage-4.3.4

comment:2 Changed 11 years ago by drkirkby

  • Description modified (diff)

comment:3 Changed 11 years ago by dimpase

same spkg-install problem as in #8520

comment:4 in reply to: ↑ 1 Changed 11 years ago by dimpase

  • Status changed from new to needs_review

comment:5 Changed 11 years ago by drkirkby

  • Status changed from needs_review to needs_work

No, this does not work:

drkirkby@redstart:~/sage-4.3.4.alpha1$ ./sage -i http://sage.math.washington.edu/home/dima/packages/database_gap-4.4.12.p1.spkg

<snip all downloading and most extracting> 

database_gap-4.4.12/.hg/undo.dirstate
database_gap-4.4.12/.hg/undo.branch
database_gap-4.4.12/spkg-install
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 2894 bytes from /export/home/drkirkby/sage-4.3.4.alpha1/spkg/optional/database_gap-4.4.12.p1.spkg
tar: Error exit delayed from previous errors
Finished extraction
sage: After decompressing the directory database_gap-4.4.12.p1 does not exist
This means that the corresponding .spkg needs to be downloaded
again.
http://www.sagemath.org//packages/optional/database_gap-4.4.12.p1.spkg --> database_gap-4.4.12.p1.spkg
[ ]
http://www.sagemath.org//packages/standard/database_gap-4.4.12.p1.spkg --> database_gap-4.4.12.p1.spkg
[ ]
http://www.sagemath.org//packages/experimental/database_gap-4.4.12.p1.spkg --> database_gap-4.4.12.p1.spkg
[ ]
http://www.sagemath.org//packages/archive/database_gap-4.4.12.p1.spkg --> database_gap-4.4.12.p1.spkg
[ ]
**********************************************************************
* Unable to download database_gap-4.4.12.p1
* Please see http://www.sagemath.org//packages for a list of valid
* packages or check the package name.
**********************************************************************
/export/home/drkirkby/sage-4.3.4.alpha1/spkg/build
bunzip2: Can't open input file database_gap-4.4.12.p1.spkg: No such file or directory.
tar: database_gap-4.4.12.p1.spkg: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Second download resulted in a corrupted package.

Despite the fact the database is called database_gap-4.4.12.p0, the files are in a directory database_gap-4.4.12, which is not the normal way to do it. But in any case, it is now working.

comment:6 follow-up: Changed 11 years ago by drkirkby

Since the original was called database_gap-4.4.12, the new one should be database_gap-4.4.12.p0 and extract to a directory database_gap-4.4.12.p0. (This is called p1. Convention is we start patch levels at 0).

Dave

comment:7 in reply to: ↑ 6 Changed 11 years ago by dimpase

  • Status changed from needs_work to needs_review

Replying to drkirkby:

Since the original was called database_gap-4.4.12, the new one should be database_gap-4.4.12.p0 and extract to a directory database_gap-4.4.12.p0. (This is called p1. Convention is we start patch levels at 0).

OK, sorry for this mess.

Here is the numbering done right. I tested this on t2 and elsewhere

http://sage.math.washington.edu/home/dima/packages/database_gap-4.4.12.p0.spkg

comment:8 follow-up: Changed 11 years ago by dimpase

  • Cc wdj added

Hi David, would you mind having a look at this? Thanks, Dima

comment:9 in reply to: ↑ 8 Changed 11 years ago by wdj

Replying to dimpase:

Hi David, would you mind having a look at this? Thanks, Dima

I am happy to test this but I don't have access to a sparc. It seems David Kirkby is saying that it works on a sparc machine but the download+install was a problem?

Anyway, I donloaded it first the installed using sage -i with no problems. Tested that the database of small groups was loaded into the GAP workspace Sage uses and that IdGroup? works as expected.

Positive review from me.

comment:10 Changed 11 years ago by drkirkby

I'll take a look in a few hours - just about to start a chess game!

dave

comment:11 Changed 11 years ago by drkirkby

  • Status changed from needs_review to positive_review

Sorry for the delay in replying - I got distracted after the chess game, which I rather annoying only drew against a much weaker opponent.

Although I can't test the packages, due to a lack of knowledge of gap, it looks fine to me.

Positive review.

comment:12 Changed 11 years ago by jhpalmieri

  • Resolution set to fixed
  • Status changed from positive_review to closed

Merged 2010/04/20.

comment:13 Changed 11 years ago by jhpalmieri

  • Authors set to Dmitrii Pasechnik
  • Reviewers set to David Joyner, David Kirkby
Note: See TracTickets for help on using tickets.