On Mar 12, 10:01 am, "Dr. David Kirkby" <david.kir...@onetel.net>
wrote:
> I've tried to install all the optional packages on Solaris 10 (SPARC) using
> sage-4.3.4.alpha1.
>
> I keep getting this error message.
>
> sage: for X in optional_packages()[1]:  install_package(X)
> ....:
> Force installing ace-5.0.p0
> Calling sage-spkg on ace-5.0.p0
> Warning: Attempted to overwrite SAGE_ROOT environment variable
> ace-5.0.p0
> Machine:
> SunOS redstart 5.10 Generic sun4u sparc SUNW,Sun-Blade-1000
> Deleting directories from past builds of previous/current versions of 
> ace-5.0.p0
> /export/home/drkirkby/sage-4.3.4.alpha1/local/bin/sage-spkg: file ace-5.0.p0
> does not exist
> Attempting to download it.
> grep: illegal option -- o
> Usage: grep -hblcnsviw pattern file . . .
> Searching for latest version of ace-5.0.p0
> Could not find a version for ace-5.0.p0.
>
> This is for the package ace-5.0.p0, but the same problem occurs for all 
> optional
> packages, with the exception of 'valgrind' which does actually download on
> Solaris, though it will not build.
>
> This is trac:
>
> http://trac.sagemath.org/sage_trac/ticket/8509
>
> I'm a bit tied up today, but does anyone know where I might start looking for
> this? If not, I'll hunt around tonight. The only options to grep permitted by
> POSIX, and so therefore can be considered portable, are listed at
>
> http://www.opengroup.org/onlinepubs/9699919799/utilities/grep.html
>
> Dave

It looks like this is in sage-spkg, which uses grep to see if the
given package name has a hyphen in it: if there's a hyphen, then the
name is presumably of the form NAME-VERSION.  As far as I can tell,
the version is not actually used, just whether there is a hyphen.  So
replacing "grep -o -" with "grep -" might fix it.

Note that this is consistent with valgrind, which has the misformed
name "valgrind_3.3.1", using an underscore instead of a hyphen.  That
should be fixed.  Other spkg names like "jsmath-image-fonts-1.4.p3"
should probably be changed to "jsmath_image_fonts-1.4.p3", replacing
all hyphens not preceding the version number to underscores.

This is the first time I've looked at sage-spkg, though, so I could be
wrong about this.

--
John

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to