1 |
On Monday 24 September 2012 06:25:35 Gregory M. Turner wrote: |
2 |
> On cygwin, there is a problem with bi-directional pipe support in bash. |
3 |
> |
4 |
> I used to solve this with an ugly reversion in portage and an |
5 |
> ultra-simple stubbification patch for multiprocessing.eclass (both |
6 |
> serialized everything). |
7 |
> |
8 |
> However, this really sucked for numerous reasons, including the obvious |
9 |
> one: it makes stuff slow as hell. |
10 |
|
11 |
if cygwin sucks, it doesn't get parallel jobs. add stubs to the end of the |
12 |
file to disable parallel support. |
13 |
|
14 |
if is_cygwin ; then |
15 |
numjobs() { return 1; } |
16 |
multijob_init() { return 0; } |
17 |
...etc... |
18 |
fi |
19 |
|
20 |
interleaving the cygwin logic otherwise makes it unmaintainable |
21 |
-mike |