Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Gregory M. Turner" <gmt@×××××.us>
Subject: Re: [gentoo-portage-dev] blech... (multijob/multiprocessing work-around for cygwin)
Date: Mon, 24 Sep 2012 18:06:59
Message-Id: 201209241305.35900.vapier@gentoo.org
In Reply to: [gentoo-portage-dev] blech... (multijob/multiprocessing work-around for cygwin) by "Gregory M. Turner"
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-portage-dev] blech... (multijob/multiprocessing work-around for cygwin) Brian Harring <ferringb@×××××.com>