#7407: Fix building of binary distribution so it works on Solaris.
----------------------------+-----------------------------------------------
Reporter: drkirkby | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.3
Component: distribution | Keywords: solairs GNUism cp
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
----------------------------+-----------------------------------------------
Old description:
> In version 4.2 of Sage, an attempt to build a binary distribution failed
> on Solaris, due to the use of a non-portable '-a' option to the 'cp'
> command, which is not defined by the POSIX specification of Unix.
>
> The only options that should be used are given here.
>
> http://www.opengroup.org/onlinepubs/009695399/utilities/cp.html
>
> Also, the file name created seems a bit silly. After typing:
>
> ~/sage-4.2$ ./sage -bdist 4.2-Solaris-10-SPARC
>
> a useless output file of about 4 KB in size named 'sage-4.2-Solaris-10
> -SPARC-sun4u-SunOS.tar.gz' was created. I do not think it is sensible to
> have 'sun4u' in the name, since it would run on sun4v machines too. Also,
> since Sun's operating system is known as 'Solaris' far more than 'SunOS',
> the use of 'SunOS' in the name is not necessary. I assume the 'sun4u' and
> 'SunOS' are probably taken from the output of the 'uname' command.
>
> Here is the result of trying to build a binary distribution on a Sun
> Netra T1, running the first release of Solaris 10. Had this not failed,
> the resulting binary should have worked on any Solaris 10 sun4u or sun4v
> (i.e the CoolThreads machines like the Sun T5240 't2'). Building a Sage
> binary for Solaris 10 on 't2' would not be sensible, as the resulting
> binary might not run on earlier release of Solaris 10. The T5240 is not
> supported on the first release of Solaris 10, so it would be impossible
> to downgrade the operating system if one wanted to. For building this, I
> specifically used an old version of Solaris.
>
> {{{
> drkir...@kestrel:~/sage-4.2$ ./sage -bdist 4.2-Solaris-10-SPARC
> Sage works!
> Copying files over to tmp directory
> cp: illegal option -- a
> Usage: cp [-f] [-i] [-p] [...@] f1 f2
> cp [-f] [-i] [-p] [...@] f1 ... fn d1
> cp -r|-R [-H|-L|-P] [-f] [-i] [-p] [...@] d1 ... dn-1 dn
> Copying Sage library over
> cp: illegal option -- a
> Usage: cp [-f] [-i] [-p] [...@] f1 f2
> cp [-f] [-i] [-p] [...@] f1 ... fn d1
> cp -r|-R [-H|-L|-P] [-f] [-i] [-p] [...@] d1 ... dn-1 dn
> /export/home/drkirkby/sage-4.2/local/bin/sage-bdist: line 60: cd: sage:
> No such file or directory
> /export/home/drkirkby/sage-4.2/local/bin/sage-bdist: line 63: cd:
> /export/home/drkirkby/sage-4.2/tmp/sage-4.2-Solaris-10-SPARC-sun4u-
> SunOS/local/lib/python/site-packages: No such file or directory
> Making empty spkg's
> cp: illegal option -- a
> }}}
New description:
In version 4.2 of Sage, an attempt to build a binary distribution failed
on Solaris, due to the use of a non-portable '-a' option to the 'cp'
command, which is not defined by the POSIX specification of Unix.
The only options that should be used are given here.
http://www.opengroup.org/onlinepubs/009695399/utilities/cp.html
Here is the result of trying to build a binary distribution on a Sun Netra
T1, running the first release of Solaris 10. Had this not failed, the
resulting binary should have worked on any Solaris 10 sun4u or sun4v (i.e
the CoolThreads machines like the Sun T5240 't2'). Building a Sage binary
for Solaris 10 on 't2' would not be sensible, as the resulting binary
might not run on earlier release of Solaris 10. The T5240 is not supported
on the first release of Solaris 10, so it would be impossible to downgrade
the operating system if one wanted to. For building this, I specifically
used an old version of Solaris.
{{{
drkir...@kestrel:~/sage-4.2$ ./sage -bdist 4.2-Solaris-10-SPARC
Sage works!
Copying files over to tmp directory
cp: illegal option -- a
Usage: cp [-f] [-i] [-p] [...@] f1 f2
cp [-f] [-i] [-p] [...@] f1 ... fn d1
cp -r|-R [-H|-L|-P] [-f] [-i] [-p] [...@] d1 ... dn-1 dn
Copying Sage library over
cp: illegal option -- a
Usage: cp [-f] [-i] [-p] [...@] f1 f2
cp [-f] [-i] [-p] [...@] f1 ... fn d1
cp -r|-R [-H|-L|-P] [-f] [-i] [-p] [...@] d1 ... dn-1 dn
/export/home/drkirkby/sage-4.2/local/bin/sage-bdist: line 60: cd: sage: No
such file or directory
/export/home/drkirkby/sage-4.2/local/bin/sage-bdist: line 63: cd:
/export/home/drkirkby/sage-4.2/tmp/sage-4.2-Solaris-10-SPARC-sun4u-
SunOS/local/lib/python/site-packages: No such file or directory
Making empty spkg's
cp: illegal option -- a
}}}
--
Comment(by drkirkby):
I modified the title and description slightly, since with second thoughts,
perhaps its best to leave the name of the file unchaged.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7407#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.