#20884: line buffering in sage-logger causes "hang" due to invisible prompt when
installing experimental packages
-------------------------------------+-------------------------------------
       Reporter:  mkoeppe            |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  blocker            |    Milestone:  sage-7.3
      Component:  build              |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Erik Bray          |    Reviewers:  Dima Pasechnik,
                                     |  Matthias Koeppe
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/embray/ticket-20884-squashed     |  035e1d8e972d15f50229869da42fe669e9abc35e
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by leif):

 You don't have to install packages in a loop; you can download them one-
 by-one, and afterwards run `make` on all of them.

 In any case, the following is wrong:
 {{{
 #!sh
         sage-logger "sage-spkg $INSTALL_OPTIONS -d '$PKG'"
 logs/install.log

         # Then make / install the package with no prompts
         $MAKE SAGE_SPKG="sage-spkg $INSTALL_OPTIONS -y" "$OPT"
 }}}
 (`"$OPT"` should be `"$PKG"`.)

 ----

 Unrelated to this ticket:

 {{{
 #!sh
 # First of all, make sure that the toolchain is up-to-date
 # (which is a dependency of every package)
 ./sage --location
 $MAKE all-toolchain
 }}}

 is pretty stupid before we know the package(s) at all exist(s), can be
 downloaded if needed, whatever.  (And IIRC one gets `*** ALL ENVIRONMENT
 VARIABLES BEFORE BUILD: ***` etc. twice for no reason, the first time
 ''before'' any relevant processing happens.)

--
Ticket URL: <https://trac.sagemath.org/ticket/20884#comment:93>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to