#8306: Parallel inter/intra-spkg builds
----------------------------+-----------------------------------------------
Reporter: mpatel | Owner: GeorgSWeber
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.3.4
Component: build | Keywords:
Author: Mitesh Patel | Upstream: N/A
Reviewer: David Kirkby | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
Comment(by mpatel):
Replying to [comment:32 mpatel]:
> * I don't know why the build didn't stop when eclib failed to build.
This seems strange. The file `installed/eclib*` is missing and according
to `deps`, it's required for the `sage` target. Similarly,
`installed/sage*` is a prerequisite for gap. Does anyone know why this
happens? Can we modify `deps` to avoid it?
The problem is that the exit status `$?` of
{{{
#!sh
$(SAGE_SPKG) $(FOO) 2>&1 | tee -a $(SAGE_LOGS)/$(FOO).log
}}}
is the exit status of `tee`, but we need the exit status of `sage-spkg`.
(I found some other workarounds [http://www.unix.com/shell-programming-
scripting/92163-command-does-not-return-exit-status-due-tee.html here].)
We can get this with `$PIPESTATUS` in `bash`. We could add a helper
script somewhere that runs the pipeline and exits with the status of
`sage-spkg`.
Or we could use
{{{
#!sh
$(SAGE_SPKG) $(FOO) 2>&1 | tee -a $(SAGE_LOGS)/$(FOO).log | grep "sage: An
error occurred while"
}}}
if we test the status of `grep`. The `sage-spkg` script prints this error
string when `spkg-install` or `spkg-check` fails. We could also print
the string in a few other places in `sage-spkg` (search for `exit 1`).
Thoughts?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8306#comment:37>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.