This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 't/29233/bootstrap____make_distclean_broken' into t/2178…
…5/install_sage_src_ext__in_package_data_of_sage_package_by_setup_py__not_sage_local_share_sage_ext__by_build_make_makefile
- Loading branch information
Showing
130 changed files
with
1,765 additions
and
803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SageMath version 9.1.beta4, Release Date: 2020-02-13 | ||
SageMath version 9.1.beta5, Release Date: 2020-02-21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env bash | ||
# | ||
system=$1 | ||
command=$2 | ||
if [ -z "$system" -o -z "$command" ]; then | ||
echo >&2 "usage: $0 {debian|arch|conda|...} {install|remove|...} PACKAGES..." | ||
exit 1 | ||
fi | ||
shift 2 | ||
system_packages="$*" | ||
if [ -z "$system_packages" ]; then | ||
# No command needed to install nothing | ||
exit 0 | ||
fi | ||
shopt -s extglob | ||
case $system:$command in | ||
debian*|ubuntu*) | ||
echo "sudo apt-get $command $system_packages" | ||
;; | ||
@(fedora*|redhat*|centos*):install) | ||
echo "sudo yum install $system_packages" | ||
;; | ||
arch*:install) | ||
echo "sudo pacman -S $system_packages" | ||
;; | ||
*conda*:install) | ||
echo "conda install $system_packages" | ||
;; | ||
homebrew*:install) | ||
echo "brew install $system_packages" | ||
;; | ||
*) | ||
echo "# $command the following packages: $system_packages" | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tarball=configure-VERSION.tar.gz | ||
sha1=5331e588682dfea9308e8308e510d47429500e76 | ||
md5=fe1a9a72f856549d946340703d20d791 | ||
cksum=888161184 | ||
sha1=c5ac16fd484b7d261fdd5f9ddc0ad144d212c074 | ||
md5=6e01232385ed6a22fae6873990ca2b9a | ||
cksum=45471057 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
158b93057a44377a3dd8235795317aa0bd412ed9 | ||
f363300209b159a65d9ceaf6b79bb684a9c71db1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8ac9c71723c8ca57a836d6381aed125261e44e9e | ||
8ac9c71723c8ca57a836d6381aed125261e44e9e.p0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../gcc/set-library-path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
. ./set-library-path | ||
|
||
./build-gcc --disable-bootstrap --enable-languages=fortran |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
# Exit on error | ||
set -e | ||
|
||
# To work around #26996: Set a symlink so that writes into lib64/ end up in lib/ | ||
(mkdir -p "$SAGE_DESTDIR_LOCAL" && cd "$SAGE_DESTDIR_LOCAL" && ln -sf lib lib64) | ||
. ./set-library-path | ||
|
||
cd gcc-build | ||
sdh_make_install | ||
|
||
# The spkg still installs a minimal C compiler that needs to be removed | ||
# so it doesn't conflict with the configured C compiler. | ||
rm "$SAGE_DESTDIR_LOCAL"/bin/gcc "$SAGE_DESTDIR_LOCAL"/bin/cpp | ||
|
||
# To work around #26996: Remove the symlink set, or we get "cp: cannot overwrite directory" | ||
rm -f "$SAGE_DESTDIR_LOCAL/lib64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- mode: shell-script -*- | ||
|
||
# #27907: Symlink crt1.o and friends where gfortran can find it. | ||
if [ -n "$SAGE_CRTI_DIR" ]; then | ||
INSTALLED_SCRIPTS_DEST="$SAGE_SPKG_SCRIPTS/$PKG_BASE" | ||
LIBGCC=$(dirname -- $("$SAGE_LOCAL"/bin/gfortran -print-libgcc-file-name)) | ||
if [ -z "$LIBGCC" -o ! -d "$LIBGCC" ]; then | ||
echo >&2 "Warning: Unable to locate LIBGCC directory, so cannot install crt symlinks" | ||
exit | ||
fi | ||
echo "Installing symlinks to crt files." | ||
echo "# Remove symlinks created by spkg-postinst" >> "$INSTALLED_SCRIPTS_DEST"/spkg-postrm | ||
for f in "$SAGE_CRTI_DIR"/*crt?.o; do | ||
if [ -r $f -a ! -r "$LIBGCC"/$f ]; then | ||
ln -s $f "$LIBGCC"/ | ||
fb=`basename $f` | ||
echo "rm -f \"$LIBGCC\"/$fb" >> "$INSTALLED_SCRIPTS_DEST"/spkg-postrm | ||
fi | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- mode: shell-script -*- | ||
|
||
## spkg-postinst adds commands to the bottom of the generated version of this file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Sage version information for shell scripts | ||
# This file is auto-generated by the sage-update-version script, do not edit! | ||
SAGE_VERSION='9.1.beta4' | ||
SAGE_RELEASE_DATE='2020-02-13' | ||
SAGE_VERSION_BANNER='SageMath version 9.1.beta4, Release Date: 2020-02-13' | ||
SAGE_VERSION='9.1.beta5' | ||
SAGE_RELEASE_DATE='2020-02-21' | ||
SAGE_VERSION_BANNER='SageMath version 9.1.beta5, Release Date: 2020-02-21' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/en/reference/sage | ||
/en/reference/sagenb | ||
/output | ||
/en/installation/*.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
######################################################################## | ||
# Regenerate auto-generated files, using information in SAGE_ROOT/build/ | ||
# | ||
# This script is run by SAGE_ROOT/bootstrap as part of the bootstrapping phase | ||
# (before configure, before creating source distributions). | ||
######################################################################## | ||
|
||
set -e | ||
|
||
if [ -z "$SAGE_ROOT" ]; then | ||
echo Please run the top-level bootstrap script of the Sage distribution. | ||
exit 1 | ||
fi | ||
|
||
cd "$SAGE_ROOT" | ||
|
||
PROMPT=' $ ' | ||
STRIP_COMMENTS="sed s/#.*//;" | ||
OUTPUT_DIR="src/doc/en/installation" | ||
mkdir -p "$OUTPUT_DIR" | ||
|
||
shopt -s extglob | ||
|
||
for SYSTEM in debian fedora; do | ||
SYSTEM_PACKAGES=$(echo $(${STRIP_COMMENTS} build/pkgs/$SYSTEM.txt)) | ||
for PKG_SCRIPTS in build/pkgs/*; do | ||
if [ -d $PKG_SCRIPTS ]; then | ||
PKG_BASE=$(basename $PKG_SCRIPTS) | ||
SYSTEM_PACKAGES_FILE=$PKG_SCRIPTS/distros/$SYSTEM.txt | ||
PKG_TYPE=$(cat $PKG_SCRIPTS/type) | ||
if [ -f $SYSTEM_PACKAGES_FILE -a -f $PKG_SCRIPTS/spkg-configure.m4 ]; then | ||
PKG_SYSTEM_PACKAGES=$(echo $(${STRIP_COMMENTS} $SYSTEM_PACKAGES_FILE)) | ||
if [ -n "PKG_SYSTEM_PACKAGES" ]; then | ||
case "$PKG_TYPE" in | ||
standard) | ||
SYSTEM_PACKAGES+=" $PKG_SYSTEM_PACKAGES" | ||
;; | ||
*) | ||
OPTIONAL_SYSTEM_PACKAGES+=" $PKG_SYSTEM_PACKAGES" | ||
;; | ||
esac | ||
fi | ||
fi | ||
fi | ||
done | ||
echo >&2 $0:$LINENO: installing "$OUTPUT_DIR"/$SYSTEM.txt and "$OUTPUT_DIR"/$SYSTEM-optional.txt | ||
echo "$PROMPT$(sage-print-system-package-command $SYSTEM install $(echo $(echo $SYSTEM_PACKAGES | xargs -n 1 echo | sort)))" > "$OUTPUT_DIR"/$SYSTEM.txt | ||
echo "$PROMPT$(sage-print-system-package-command $SYSTEM install $(echo $(echo $OPTIONAL_SYSTEM_PACKAGES | xargs -n 1 echo | sort)))" > "$OUTPUT_DIR"/$SYSTEM-optional.txt | ||
done |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.