-
-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #15580: Integrate prereq in the new build system
After downloading Sage 6.0 either from git or from the `.tar.gz` sdist tarball, the prereq tarball `prereq-1.2.tar.gz` is missing. This is a huge problem, because many checks are skipped because of this. Integrating this was probably overlooked in the sage-git build system. I think the best solution is not have prereq as a tarball at all and simply integrate the ''contents'' of the former prereq tarball in the git repo. URL: http://trac.sagemath.org/15580 Reported by: jdemeyer Ticket author(s): R. Andrew Ohana, Jeroen Demeyer Reviewer(s): R. Andrew Ohana, Volker Braun
- Loading branch information
Showing
21 changed files
with
1,184 additions
and
122 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
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,79 @@ | ||
#!/usr/bin/env bash | ||
|
||
######################################################################## | ||
# Regenerate auto-generated files (e.g. configure) | ||
# | ||
# If the -s option is given, save the autogenerated scripts in | ||
# $SAGE_ROOT/upstream/configure-$CONFVERSION.tar.gz where CONFVERSION | ||
# is the version number stored in | ||
# build/pkgs/configure/package-version.txt | ||
# | ||
# If optional argument -i is given, then automatically increment the | ||
# version number | ||
######################################################################## | ||
|
||
set -e | ||
|
||
# Either run this script from SAGE_ROOT or make sure that SAGE_ROOT | ||
# is set | ||
test -z "$SAGE_ROOT" || cd "$SAGE_ROOT" | ||
|
||
PKG=build/pkgs/configure | ||
MAKE="${MAKE:-make}" | ||
CONFVERSION=`cat $PKG/package-version.txt` | ||
|
||
bootstrap () { | ||
# Start cleanly | ||
$MAKE bootstrap-clean | ||
|
||
# Generate auto-generated files | ||
$MAKE configure | ||
} | ||
|
||
|
||
save () { | ||
# Create configure tarball | ||
CONFBALL="upstream/configure-$CONFVERSION.tar.gz" | ||
echo "Creating $CONFBALL..." | ||
mkdir -p upstream | ||
tar zcf "$CONFBALL" configure config/* build/Makefile-auto.in | ||
|
||
# Update version number | ||
echo "$CONFVERSION" >$PKG/package-version.txt | ||
|
||
# Compute checksum | ||
src/bin/sage-fix-pkg-checksums "$CONFBALL" | ||
} | ||
|
||
|
||
usage () { | ||
echo >&2 "Usage: bootstrap [-i] [-s] [-h]" | ||
} | ||
|
||
|
||
# Parse options | ||
SAVE= | ||
while getopts "sih" OPTION | ||
do | ||
case "$OPTION" in | ||
s) | ||
SAVE=yes | ||
;; | ||
i) | ||
CONFVERSION=$(( CONFVERSION + 1 )) | ||
;; | ||
h) | ||
usage | ||
exit | ||
;; | ||
?) | ||
usage | ||
exit 2 | ||
;; | ||
esac | ||
done | ||
|
||
bootstrap | ||
if [ -n "$SAVE" ]; then | ||
save | ||
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,2 @@ | ||
# Currently, this file is unused. However, it needs to exist to coerce | ||
# automake into thinking that this is an Automake project. |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
= Configure = | ||
|
||
== Description == | ||
|
||
This package contains a tar archive of auto-generated files. They are | ||
shipped with Sage in case you do not have a sufficiently recent | ||
autotools version installed. | ||
|
||
== License == | ||
|
||
GPLv3+ | ||
|
||
== SPKG Maintainers == | ||
|
||
* Jeroen Demeyer | ||
* Volker Braun | ||
|
||
== Upstream Contact == | ||
|
||
|
||
Automatically generated by Sage, use trac and/or sage-devel for questions. | ||
|
||
== Dependencies == | ||
|
||
None | ||
|
||
== Special Update/Build Instructions == | ||
|
||
This tarball is automatically generated by Sage whenever you run the | ||
$SAGE_ROOT/bootstrap or the $SAGE_ROOT/src/bin/sage-update-version | ||
script. |
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,4 @@ | ||
tarball=configure-VERSION.tar.gz | ||
sha1=f964016253fbe518d590635ed6a9e37a1b642272 | ||
md5=364040d5bb74cb9452e80a84056d8785 | ||
cksum=253235983 |
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 @@ | ||
1 |
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.