[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-portage-dev
Subject:    Re: [gentoo-portage-dev] blech... (multijob/multiprocessing work-around for cygwin)
From:       Mike Frysinger <vapier () gentoo ! org>
Date:       2012-09-24 17:05:35
Message-ID: 201209241305.35900.vapier () gentoo ! org
[Download RAW message or body]


On Monday 24 September 2012 06:25:35 Gregory M. Turner wrote:
> On cygwin, there is a problem with bi-directional pipe support in bash.
> 
> I used to solve this with an ugly reversion in portage and an
> ultra-simple stubbification patch for multiprocessing.eclass (both
> serialized everything).
> 
> However, this really sucked for numerous reasons, including the obvious
> one: it makes stuff slow as hell.

if cygwin sucks, it doesn't get parallel jobs.  add stubs to the end of the 
file to disable parallel support.

if is_cygwin ; then
	numjobs() { return 1; }
	multijob_init() { return 0; }
	...etc...
fi

interleaving the cygwin logic otherwise makes it unmaintainable
-mike

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic