public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] rfc: epause instead of sleep in ebuilds
@ 2004-09-01 20:21 Ciaran McCreesh
  2004-09-01 20:40 ` Karl Trygve Kalleberg
                   ` (6 more replies)
  0 siblings, 7 replies; 26+ messages in thread
From: Ciaran McCreesh @ 2004-09-01 20:21 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1148 bytes --]

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 :)

-- 
Ciaran McCreesh : Gentoo Developer (Sparc, MIPS, Vim, Fluxbox)
Mail            : ciaranm at gentoo.org
Web             : http://dev.gentoo.org/~ciaranm


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2004-09-04  6:52 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-01 20:21 [gentoo-dev] rfc: epause instead of sleep in ebuilds Ciaran McCreesh
2004-09-01 20:40 ` Karl Trygve Kalleberg
2004-09-01 20:43   ` Ciaran McCreesh
2004-09-02  7:02     ` Alexander Gretencord
2004-09-02  7:43       ` Dice R. Random
2004-09-02 13:30       ` Mike Frysinger
2004-09-02 18:03         ` Alexander Gretencord
2004-09-02 18:51           ` Mike Doty
2004-09-02 20:03             ` N. Owen Gunden
2004-09-03 12:21               ` Paul de Vrieze
2004-09-03 18:17       ` Simon Stelling
2004-09-04  6:49         ` Thomas de Grenier de Latour
2004-09-01 20:49 ` Seemant Kulleen
2004-09-01 21:29   ` Ciaran McCreesh
2004-09-01 22:10     ` Tavis Ormandy
2004-09-01 22:41     ` Michael Sterrett -Mr. Bones.-
2004-09-02 13:05     ` Guillaume Destuynder
2004-09-02 13:49       ` Mamoru KOMACHI
2004-09-02 13:56         ` Ciaran McCreesh
2004-09-01 21:09 ` Chris Gianelloni
2004-09-01 21:17 ` Tavis Ormandy
2004-09-01 22:27 ` Mike Frysinger
2004-09-02  0:22 ` Ciaran McCreesh
2004-09-02  3:09   ` Brian Harring
2004-09-02  3:16     ` Mike Frysinger
2004-09-03 18:39 ` Lisa Seelye

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox