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

Commit

Permalink
Merge branch 'u/jdemeyer/ticket/15765' of git://trac.sagemath.org/sag…
Browse files Browse the repository at this point in the history
…e into ticket/15774

Conflicts:
	build/pkgs/pari/package-version.txt
  • Loading branch information
jdemeyer committed Feb 8, 2014
2 parents 17f864c + 1678b89 commit bfdad13
Show file tree
Hide file tree
Showing 152 changed files with 3,259 additions and 4,975 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ logs:
mkdir -p $@

build: logs configure
cd build && \
+cd build && \
"../$(PIPE)" \
"env SAGE_PARALLEL_SPKG_BUILD='$(SAGE_PARALLEL_SPKG_BUILD)' ./install all 2>&1" \
"tee -a ../logs/install.log"
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sage version 6.1, released 2014-01-30
Sage version 6.2.beta0, released 2014-02-02
15 changes: 11 additions & 4 deletions build/deps
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,16 @@ $(INST)/$(NTL): $(INST)/$(MPIR) $(INST)/$(GF2X)
$(INST)/$(FPLLL): $(INST)/$(MPIR) $(INST)/$(MPFR)
+$(PIPE) "$(SAGE_SPKG) $(FPLLL) 2>&1" "tee -a $(SAGE_LOGS)/$(FPLLL).log"

$(INST)/$(PARI): $(INST)/$(READLINE) $(INST)/$(MPIR)
$(INST)/$(PARI): $(INST)/$(READLINE) $(INST)/$(MPIR) \
$(INST)/$(PARI_GALDATA) $(INST)/$(PARI_SEADATA_SMALL)
+$(PIPE) "$(SAGE_SPKG) $(PARI) 2>&1" "tee -a $(SAGE_LOGS)/$(PARI).log"

$(INST)/$(PARI_GALDATA):
+$(PIPE) "$(SAGE_SPKG) $(PARI_GALDATA) 2>&1" "tee -a $(SAGE_LOGS)/$(PARI_GALDATA).log"

$(INST)/$(PARI_SEADATA_SMALL):
+$(PIPE) "$(SAGE_SPKG) $(PARI_SEADATA_SMALL) 2>&1" "tee -a $(SAGE_LOGS)/$(PARI_SEADATA_SMALL).log"

$(INST)/$(POLYBORI): $(INST)/$(PYTHON) $(INST)/$(IPYTHON) \
$(INST)/$(SCONS) $(INST)/$(BOOST_CROPPED) \
$(INST)/$(M4RI) $(INST)/$(GD)
Expand Down Expand Up @@ -265,9 +272,6 @@ $(INST)/$(LINBOX): $(INST)/$(MPIR) $(INST)/$(NTL) $(INST)/$(GIVARO) \
$(INST)/$(IML): $(INST)/$(MPIR) $(INST)/$(GSL) $(INST)/$(ATLAS)
+$(PIPE) "$(SAGE_SPKG) $(IML) 2>&1" "tee -a $(SAGE_LOGS)/$(IML).log"

$(INST)/$(ECLIB): $(INST)/$(MPIR) $(INST)/$(PARI) $(INST)/$(NTL)
+$(PIPE) "$(SAGE_SPKG) $(ECLIB) 2>&1" "tee -a $(SAGE_LOGS)/$(ECLIB).log"

$(INST)/$(GENUS2REDUCTION): $(INST)/$(PARI)
+$(PIPE) "$(SAGE_SPKG) $(GENUS2REDUCTION) 2>&1" "tee -a $(SAGE_LOGS)/$(GENUS2REDUCTION).log"

Expand Down Expand Up @@ -395,6 +399,9 @@ $(INST)/$(FLINTQS): $(INST)/$(MPIR)
$(INST)/$(FLINT): $(INST)/$(MPIR) $(INST)/$(MPFR) $(INST)/$(NTL)
+$(PIPE) "$(SAGE_SPKG) $(FLINT) 2>&1" "tee -a $(SAGE_LOGS)/$(FLINT).log"

$(INST)/$(ECLIB): $(INST)/$(PARI) $(INST)/$(NTL) $(INST)/$(FLINT)
+$(PIPE) "$(SAGE_SPKG) $(ECLIB) 2>&1" "tee -a $(SAGE_LOGS)/$(ECLIB).log"

$(INST)/$(M4RI): $(INST)/$(LIBPNG)
+$(PIPE) "$(SAGE_SPKG) $(M4RI) 2>&1" "tee -a $(SAGE_LOGS)/$(M4RI).log"

Expand Down
57 changes: 30 additions & 27 deletions build/install
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,10 @@ fi
# Create $SAGE_ROOT/build/Makefile starting from build/deps
###############################################################################

exec 3>Makefile
# Trac #15624: use file descriptor 5 since make uses 3 and 4
exec 5>Makefile

cat >&3 <<EOF
cat >&5 <<EOF
#==============================================================================
# This file has been automatically generated by
# $SAGE_ROOT/build/install
Expand All @@ -323,16 +324,16 @@ EOF

# Use bash as shell for the Makefile (bash obviously exists, since
# this build/install script runs under bash).
echo >&3 "SHELL = `command -v bash`"
echo >&3
echo >&5 "SHELL = `command -v bash`"
echo >&5

# If the user (or the Makefile) has set SAGE_PARALLEL_SPKG_BUILD=no,
# then turn off parallel building: disable just building multiple
# packages at the same time. Individual packages can still be built
# in parallel by specifying '-j' in $MAKE.
if [ "${SAGE_PARALLEL_SPKG_BUILD:-yes}" = no ]; then
echo ".NOTPARALLEL:" >&3
echo "" >&3
echo ".NOTPARALLEL:" >&5
echo "" >&5
fi

# Usage: newest_version $pkg
Expand All @@ -349,7 +350,7 @@ newest_version() {
fi
}

cat >&3 <<EOF
cat >&5 <<EOF
# Standard packages
ATLAS=`newest_version atlas`
BOEHM_GC=`newest_version boehm_gc`
Expand Down Expand Up @@ -407,6 +408,8 @@ NTL=`newest_version ntl`
NUMPY=`newest_version numpy`
PALP=`newest_version palp`
PARI=`newest_version pari`
PARI_GALDATA=`newest_version pari_galdata`
PARI_SEADATA_SMALL=`newest_version pari_seadata_small`
PATCH=`newest_version patch`
PEXPECT=`newest_version pexpect`
PILLOW=`newest_version pillow`
Expand Down Expand Up @@ -445,40 +448,40 @@ INST=`echo "$SAGE_SPKG_INST" | sed 's/ /\\\\ /g'`
EOF

# $(TOOLCHAIN) variable containing prerequisites for the build
echo >&3 -n 'TOOLCHAIN ='
echo >&5 -n 'TOOLCHAIN ='
if [ "$SAGE_INSTALL_CCACHE" = yes ]; then
echo >&3 -n ' $(INST)/ccache'
echo >&5 -n ' $(INST)/ccache'
fi
if [ "$need_to_install_gcc" = yes ]; then
echo >&3 -n ' $(INST)/$(GCC)'
echo >&5 -n ' $(INST)/$(GCC)'
# Use this option for the prereq configure script, such that it
# will skip all compiler checks.
export PREREQ_OPTIONS="--disable-compiler-checks $PREREQ_OPTIONS"
fi
echo >&3
echo >&5

echo >&3 'SCRIPT_SOURCES = \'
echo >&5 'SCRIPT_SOURCES = \'
for file in "$SAGE_SRC/bin/"*; do
echo >&3 " \$(SAGE_SRC)${file#$SAGE_SRC} \\"
echo >&5 " \$(SAGE_SRC)${file#$SAGE_SRC} \\"
done
echo >&3
echo >&3 'SCRIPTS = \'
echo >&5
echo >&5 'SCRIPTS = \'
for file in "$SAGE_SRC/bin/"*; do
echo >&3 " \$(SAGE_LOCAL)${file#$SAGE_SRC} \\"
echo >&5 " \$(SAGE_LOCAL)${file#$SAGE_SRC} \\"
done
echo >&3
echo >&3 'EXTCODE_SOURCES = \'
echo >&5
echo >&5 'EXTCODE_SOURCES = \'
for file in `find "$SAGE_SRC"/ext -type f`; do
echo >&3 " \$(SAGE_SRC)${file#$SAGE_SRC} \\"
echo >&5 " \$(SAGE_SRC)${file#$SAGE_SRC} \\"
done
echo >&3
echo >&3 'EXTCODE = \'
echo >&5
echo >&5 'EXTCODE = \'
for file in `find "$SAGE_SRC"/ext -type f`; do
echo >&3 " \$(SAGE_EXTCODE)${file#$SAGE_SRC/ext} \\"
echo >&5 " \$(SAGE_EXTCODE)${file#$SAGE_SRC/ext} \\"
done
echo >&3
echo >&5

cat >&3 <<EOF
cat >&5 <<EOF
# don't just use \`install\` since we don't want to change permissions
\$(SAGE_LOCAL)/bin/%: \$(SAGE_SRC)/bin/%
cp \$< \$@
Expand All @@ -492,7 +495,7 @@ cat >&3 <<EOF
EOF

# Copy build/deps
cat >&3 <<EOF
cat >&5 <<EOF
#==============================================================================
# What follows now is a copy of
Expand All @@ -501,10 +504,10 @@ cat >&3 <<EOF
EOF

cat "$SAGE_ROOT/build/deps" >&3
cat "$SAGE_ROOT/build/deps" >&5

# Close the Makefile
exec 3>&-
exec 5>&-

###############################################################################
# Skip the rest if nothing to do (i.e., to [re]build).
Expand Down
Loading

0 comments on commit bfdad13

Please sign in to comment.