Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #29106: add most of the known system packages that are available…
Browse files Browse the repository at this point in the history
… for

cygwin (for those packages that have an spkg-configure.m4)
  • Loading branch information
embray committed Mar 6, 2020
1 parent cdb4c0b commit f1c711b
Show file tree
Hide file tree
Showing 31 changed files with 97 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/bin/sage-print-system-package-command
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ case $system:$command in
homebrew*:install)
echo "brew install $system_packages"
;;
cygwin*:install)
echo "# first install apt-cyg from https://github.com/transcode-open/apt-cyg"
echo "apt-cyg install $system_packages"
;;
*)
echo "# $command the following packages: $system_packages"
;;
Expand Down
1 change: 1 addition & 0 deletions build/pkgs/boost/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libboost-devel
1 change: 1 addition & 0 deletions build/pkgs/boost_cropped/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libboost-devel
1 change: 1 addition & 0 deletions build/pkgs/bzip2/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bzip2 libbz2-devel
1 change: 1 addition & 0 deletions build/pkgs/cmake/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cmake
1 change: 1 addition & 0 deletions build/pkgs/curl/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libcurl-devel curl
2 changes: 2 additions & 0 deletions build/pkgs/cygwin-bootstrap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Packages needed for ./bootstrap
gettext-devel autoconf automake libtool
24 changes: 24 additions & 0 deletions build/pkgs/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file, build/pkgs/cygwin.txt, contains name Cygwin packages
# needed for installation of Sage from source.
#
# In addition, the files build/pkgs/SPKG/cygwin.txt contain the names
# of packages that provide the equivalent of SPKG.
#
# See build/bin/sage-spkg, where this information is processed
# for use in "sage -info SPKG".
#
# Everything on a line after a # character is ignored.
#
binutils
make
m4
# a system python is needed for downloading the sage packages, https://trac.sagemath.org/ticket/29090
python3
perl
perl-ExtUtils-MakeMaker
tar
gcc
# Needed according to embray at https://trac.sagemath.org/ticket/26964:
# The need for which comes [...] from MPIR's configure script
findutils
which
1 change: 1 addition & 0 deletions build/pkgs/flint/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libflint-devel
1 change: 1 addition & 0 deletions build/pkgs/freetype/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libfreetype-devel
3 changes: 3 additions & 0 deletions build/pkgs/gcc/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gcc-core
gcc-g++
gcc-fortran
1 change: 1 addition & 0 deletions build/pkgs/gfortran/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gcc-fortran
1 change: 1 addition & 0 deletions build/pkgs/git/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git
1 change: 1 addition & 0 deletions build/pkgs/gmp/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libgmp-devel
1 change: 1 addition & 0 deletions build/pkgs/gsl/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libgsl-devel
1 change: 1 addition & 0 deletions build/pkgs/iconv/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libiconv-devel
1 change: 1 addition & 0 deletions build/pkgs/isl/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libisl-devel
1 change: 1 addition & 0 deletions build/pkgs/libffi/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libffi-devel
1 change: 1 addition & 0 deletions build/pkgs/mpc/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libmpc-devel
1 change: 1 addition & 0 deletions build/pkgs/mpfr/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libmpfr-devel
1 change: 1 addition & 0 deletions build/pkgs/ncurses/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ncurses-devel
1 change: 1 addition & 0 deletions build/pkgs/patch/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patch
1 change: 1 addition & 0 deletions build/pkgs/readline/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libreadline-devel
1 change: 1 addition & 0 deletions build/pkgs/sqlite/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libsqlite3-devel
1 change: 1 addition & 0 deletions build/pkgs/xz/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xz liblzma-devel
1 change: 1 addition & 0 deletions build/pkgs/yasm/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yasm
1 change: 1 addition & 0 deletions build/pkgs/zeromq/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libzmq-devel
1 change: 1 addition & 0 deletions build/pkgs/zlib/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zlib-devel
1 change: 1 addition & 0 deletions src/doc/en/installation/cygwin-optional.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$ apt-cyg install cmake libisl-devel
1 change: 1 addition & 0 deletions src/doc/en/installation/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$ apt-cyg install make m4 flex git gcc-core gcc-g++ gcc-fortran diffutils liblapack0 liblapack-devel zlib-devel libreadline-devel libiconv-devel libcrypt-devel openssl-devel python3 ccache bc libbz2-devel libcurl-devel libffi-devel libgmp-devel liblzma-devel libmpc-devel libmpfr-devel libzmq-devel patch yasm
38 changes: 38 additions & 0 deletions src/doc/en/installation/source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Sage is supported on a number of `Linux <https://en.wikipedia.org/wiki/Linux>`_,
`macOS <https://www.apple.com/macosx/>`_ ,
Sun/Oracle `Solaris <https://www.oracle.com/solaris>`_ releases,
but not necessarily all versions of these operating systems.

There is no native version of Sage which installs on
`Microsoft Windows <https://en.wikipedia.org/wiki/Microsoft_Windows>`_,
although Sage can be used on Windows with the aid of a
Expand Down Expand Up @@ -287,6 +288,43 @@ a registration.
- Alternately, https://developer.apple.com/opensource/ should have a link
to Command Line Tools.


.. _section_cygwinprereqs:

Cygwin prerequisite installation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Sage can be built only on the 64-bit version of Cygwin. See the
`Cygwin64Port <https://trac.sagemath.org/wiki/Cygwin64Port>`_ wiki page for
the most up-to-date instructions for building Sage on Cygwin.

Although it is possible to install Sage's dependencies using the Cygwin
graphical installer, it is recommended to install the `apt-cyg
<https://github.com/transcode-open/apt-cyg>`_ command-line package
installer, which is used for the remainder of these instructions. To
run `apt-cyg`, you must have already installed (using the graphical
installer) the following packages at a minimum::

bzip2 coreutils gawk gzip tar wget

With the exception of ``wget`` most of these are included in the default
package selection when you install Cygwin. Then, to install ``apt-cyg``
run::

$ curl -OL https://rawgit.com/transcode-open/apt-cyg/master/apt-cyg
$ install apt-cyg /usr/local/bin
$ rm -f apt-cyg

To install the current set of system packages known to work for building
Sage, run:

.. literalinclude:: cygwin.txt

Optional packages that are also known to be installable via system packages
include:

.. literalinclude:: cygwin-optional.txt

Other platforms
^^^^^^^^^^^^^^^

Expand Down

0 comments on commit f1c711b

Please sign in to comment.