Changes between Version 1 and Version 3 of Ticket #21539


Ignore:
Timestamp:
09/24/16 21:52:35 (4 years ago)
Author:
mkoeppe
Comment:

New commits:

75223dbSilence some make rules
0361466Use /dev/tty for interaction
2322391If V=0, redirect (not tee) to logfile

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21539

    • Property Status changed from new to needs_review
    • Property Authors changed from to Matthias Koeppe
    • Property Cc jdemeyer vbraun vdelecroix dimpase leif added
    • Property Branch changed from to u/mkoeppe/make_v_0_should_silence_the_build
    • Property Commit changed from to 23223919aee6b54835de648ce65f471a177385c5
  • Ticket #21539 – Description

    v1 v3  
    11Building sage outputs a lot. Especially in highly parallelized builds, the output is not very useful.
    22
    3 We should have an option to silence the build.
    4 Then it should simply say:
     3This ticket implements an option to silence the build, using `make` argument (or environment variable) `V=0`. (This mimics the interface of [https://www.gnu.org/software/automake/manual/html_node/Automake-Silent-Rules.html#Automake-Silent-Rules Automake silent rules]; so this is one step towards #21566):
    54{{{
    6 [cvxopt-1.1.8.p1] Logging to '/Users/mkoeppe/cvs/sage/logs/pkgs/cvxopt-1.1.8.p1.log'
    7 [cvxopt-1.1.8.p1] Using cached file /Users/mkoeppe/cvs/sage/upstream/cvxopt-1.1.8.tar.gz
    8 [cvxopt-1.1.8.p1] Setting up build directory for cvxopt-1.1.8.p1
    9 [cvxopt-1.1.8.p1] Building and installing
    10 [cvxopt-1.1.8.p1] Installation completed
     5$ make -j8 V=0 autotools
     6make -j8 build/make/Makefile
     7make[1]: warning: -jN forced in submake: disabling jobserver mode.
     8make[1]: `build/make/Makefile' is up to date.
     9*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***
     10... long list of environment variables elided -- this ticket does nothing about that ...
     11***********************************************
     12make[1]: warning: -jN forced in submake: disabling jobserver mode.
     13Running 'sage-spkg xz-5.2.2', output appears in /Users/mkoeppe/cvs/sage/logs/pkgs/xz-5.2.2.log...
     14Running 'sage-spkg xz-5.2.2', output appears in /Users/mkoeppe/cvs/sage/logs/pkgs/xz-5.2.2.log... done
     15Running 'sage-spkg autotools-20141105', output appears in /Users/mkoeppe/cvs/sage/logs/pkgs/autotools-20141105.log...
     16=========================== WARNING ===========================
     17You are about to download and install the experimental package
     18autotools-20141105.  This probably won't work at all for you! There
     19is no guarantee that it will build correctly, or behave as
     20expected. Use at your own risk!
     21===============================================================
     22Are you sure you want to continue [Y/n]?
     23OK, installing autotools-20141105 now.
     24Running 'sage-spkg autotools-20141105', output appears in /Users/mkoeppe/cvs/sage/logs/pkgs/autotools-20141105.log... exit status 1
     25make[1]: *** [/Users/mkoeppe/cvs/sage/local/var/lib/sage/installed/autotools-20141105] Error 1
    1126}}}
    1227
    13 A possible interface is to mimic [https://www.gnu.org/software/automake/manual/html_node/Automake-Silent-Rules.html#Automake-Silent-Rules Automake silent rules]:
    14 `make V=0`
    15 would request the silent mode. `./configure --enable-silent-rules` would make this the default.
     28Note that, though all output is redirected, the interactive questions (#20884, #21082) still go through to the terminal. This is achieved by using `/dev/tty`.
    1629
    17 Of course, in silent mode it's imperative that there's no interactivity. So we need the "proper solution for warnings about experimental packages" (#21082)
     30The patch also unconditionally silences a few make recipe lines involving `sage-logger`.
     31
     32Follow-up ticket: #21589