You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My recently updated prereq-0.4 #7021 has a minor portability issue, which existed in version 0.3 too. If run on HP-UX, which the 'uname' command does not support the -p option needed to get the processor, so generates the following message:
The reason is quite simple. The code which checks for an operating system which is not Solaris SPARC uses this:
elif [ `uname` = "SunOS" -a "`uname -p`" != "sparc" ]; then
echo "Building or using Sage on non-Sparc Solaris is tricky and not supported"
echo "at the moment. It is possible, but you should be well aware that"
echo "some things do not work. Support for Solaris"
echo "on non-SPARC hardware is actively being worked on."
echo "To get past this message, export the variable SAGE_PORT to"
echo "something non-empty."
exit 1
elif [ `uname` = "HP-UX" ]; then
It would better be changed to
elif [ `uname` = "SunOS" ]; then
# The -p option to 'uname' is not portable (HP-UX does not support it for example)
# So it is safer to test for Solaris first, then test for the processor with the
# -p option if necessary.
if [ "`uname -p`" != "sparc" ]; then
echo "Building or using Sage on non-Sparc Solaris is tricky and not supported"
echo "at the moment. It is possible, but you should be well aware that"
echo "some things do not work. Support for Solaris"
echo "on non-SPARC hardware is actively being worked on."
echo "To get past this message, export the variable SAGE_PORT to"
echo "something non-empty."
exit 1
fi
elif [ `uname` = "HP-UX" ]; then
which would then only use the -p option on Solaris.
I'll update this at one point in the future. I expect I'll get some feedback from the prereq-0.4, so I'll created a 0.5 at some time in the future.
This does not actually terminate the build process on HP-UX, so even for a port, it is not a big issue.
My recently updated prereq-0.4 #7021 has a minor portability issue, which existed in version 0.3 too. If run on HP-UX, which the 'uname' command does not support the -p option needed to get the processor, so generates the following message:
The reason is quite simple. The code which checks for an operating system which is not Solaris SPARC uses this:
It would better be changed to
which would then only use the -p option on Solaris.
I'll update this at one point in the future. I expect I'll get some feedback from the prereq-0.4, so I'll created a 0.5 at some time in the future.
This does not actually terminate the build process on HP-UX, so even for a port, it is not a big issue.
Component: porting
Issue created by migration from https://trac.sagemath.org/ticket/7156
The text was updated successfully, but these errors were encountered: