-
-
Notifications
You must be signed in to change notification settings - Fork 674
Description
Building sage outputs a lot. Especially in highly parallelized builds, the output is not very useful.
This ticket implements an option to silence the build, using make
argument (or environment variable) V=0
. (This mimics the interface of Automake silent rules; so this is one step towards #21566):
$ make -j8 V=0 autotools
make -j8 build/make/Makefile
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make[1]: `build/make/Makefile' is up to date.
*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***
... long list of environment variables elided -- this ticket does nothing about that ...
***********************************************
make[1]: warning: -jN forced in submake: disabling jobserver mode.
Running 'sage-spkg xz-5.2.2', output appears in /Users/mkoeppe/cvs/sage/logs/pkgs/xz-5.2.2.log...
Running 'sage-spkg xz-5.2.2', output appears in /Users/mkoeppe/cvs/sage/logs/pkgs/xz-5.2.2.log... done
Running 'sage-spkg autotools-20141105', output appears in /Users/mkoeppe/cvs/sage/logs/pkgs/autotools-20141105.log...
=========================== WARNING ===========================
You are about to download and install the experimental package
autotools-20141105. This probably won't work at all for you! There
is no guarantee that it will build correctly, or behave as
expected. Use at your own risk!
===============================================================
Are you sure you want to continue [Y/n]?
OK, installing autotools-20141105 now.
Running 'sage-spkg autotools-20141105', output appears in /Users/mkoeppe/cvs/sage/logs/pkgs/autotools-20141105.log... exit status 1
make[1]: *** [/Users/mkoeppe/cvs/sage/local/var/lib/sage/installed/autotools-20141105] Error 1
Note that, though all output is redirected, the interactive questions (#20884, #21082) still go through to the terminal. This is achieved by using /dev/tty
.
The patch also unconditionally silences a few make recipe lines involving sage-logger
.
Follow-up ticket: #21589
CC: @embray @jdemeyer @vbraun @videlec @dimpase @nexttime @kcrisman @novoselt @kiwifb
Component: build
Author: Matthias Koeppe
Branch: 740ecfb
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/21539