* Re: [gentoo-dev] rfc: epause instead of sleep in ebuilds
@ 2004-09-01 21:09 99% ` Chris Gianelloni
0 siblings, 0 replies; 1+ results
From: Chris Gianelloni @ 2004-09-01 21:09 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]
On Wed, 2004-09-01 at 16:21, Ciaran McCreesh wrote:
> Currently, we have something like 200 ebuilds which call 'sleep'. How
> would people feel about replacing this with an eutils function called
> 'epause' (or 'esleep', or 'ezzz', or esitaroundforabit)? This would give
> us two advantages:
>
> * For non-interactive builds (eg catalyst, chroot testing), an
> environment variable could be set which makes epause not actually pause.
> For certain packages on certain systems, the sleep takes longer than the
> rest of the build...
>
> * The behaviour of sleep isn't entirely standardised across different
> UNIX implementations. It would be better to have one place to make any
> changes needed by these new non-Linuxy platforms.
>
> I'd suggest an implementation along the following lines:
>
> # Wait for the supplied number of seconds. If no argument is supplied,
> # defaults to five seconds. If the EPAUSE_IGNORE env var is set, don't
> # wait.
> epause() {
> if [ -z "$EPAUSE_IGNORE" ] ; then
> sleep ${1:-5}
> fi
> }
>
> Thoughts? I'd be happy to do all the work :)
You'll do all the work?
In that case, I say go for it. Anything that'll speed up building a
LiveCD is fine by me.
--
Chris Gianelloni
Release Engineering - Operations/QA Manager
Games - Developer
Gentoo Linux
Is your power animal a penguin?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2004-09-01 20:21 [gentoo-dev] rfc: epause instead of sleep in ebuilds Ciaran McCreesh
2004-09-01 21:09 99% ` Chris Gianelloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox