public inbox for gentoo-pms@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tiziano Müller" <dev-zero@gentoo.org>
To: gentoo-pms@lists.gentoo.org
Subject: Re: [gentoo-pms] EAPI 5 (Was: Re: [gentoo-dev] Re: Making user patches globally available)
Date: Sun, 29 Apr 2012 16:20:24 +0200	[thread overview]
Message-ID: <1335709224.4823.63.camel@storm> (raw)
In-Reply-To: <20120429032454.GB3134@localhost>

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

Am Samstag, den 28.04.2012, 20:24 -0700 schrieb Brian Harring:
> On Sat, Apr 28, 2012 at 06:14:30PM +0100, Ciaran McCreesh wrote:
> > On Sat, 28 Apr 2012 19:11:03 +0200
> > Tiziano M??ller <dev-zero@gentoo.org> wrote:
> > > Could we also get an interface to disk- and memory-space requirements?
> > > 
> > > Something like:
> > >   
> > >   EREQUIRE_DISK="2G"
> > >   EREQUIRE_MEMORY="1G"
> > > 
> > > which gets checked in pre_pkg_setup?
> > 
> > Is there anything the package mangler can do better than check-reqs
> > here?
> 
> It can do it w/out going to bash, which is going to slow down the 
> resolution validation- the time spent on pkg_pretend, particularly bad 
> ones, is surprisingly high.

pkg_pretend is not the (only) place to do the check since the available
space may change during the install (for example when telling the PM to
skip failed packages which may leave intermediate files of those
packages for investigation).

Furthermore, especially $T may not be available at pkg_pretend time.

> 
> One potential thought there; for things like kernel checks, it would 
> be nice if there was some way to cache those results.
> 
> Specifically, have the check set a var/id in some fashion, which the 
> PM then exposes in later pkg_pretend invocations, which the 
> eclass/bash implementation could check for and bypass the check.
> 
> Mind you, this is a bit crazy, but something like the following 
> primitives:
> 
> pms_register_pretend_succeeded <identifier>
> pms_register_pretend_ran_already <identifier>
> 
> Then for convenience, having a handler like thus:
> pms_pretend_run_once [<identifier> function <args> | function]
> 
> So, using ati-drivers as an example, the pkg_pretend goes from
> pkg_pretend() {
>         # workaround until bug 365543 is solved
>         if use modules; then
>                 linux-info_pkg_setup
>                 require_configured_kernel
>                 _check_kernel_config
>         fi
> }
> 
> to
> pkg_pretend() {
>   if use modules; then 
>     linux-info_pkg_setup
>     pms_pretend_run_once require_configured_kernel
>     pms_pretend_run_once _check_kernel-config
>   fi
> }
> 
> You get the idea; in doing so, we'd chop .3s-1s off every one of 
> those.
> 
> Either way, just a thought- feel free to shred it.
> ~harring
> 


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3551 bytes --]

  reply	other threads:[~2012-04-29 14:20 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20120415021641.1858ffde@gentoo.org>
     [not found] ` <4F8A885C.3050508@gentoo.org>
     [not found]   ` <20120418185913.3d2fa68f@epia.jer-c2.orkz.net>
     [not found]     ` <201204181340.00474.vapier@gentoo.org>
     [not found]       ` <20120418184138.50153e57@googlemail.com>
     [not found]         ` <4F8F05E9.5070103@gentoo.org>
     [not found]           ` <4F8F0929.2010109@googlemail.com>
     [not found]             ` <4F8F18EC.3000707@gentoo.org>
     [not found]               ` <4F8F3513.2060202@googlemail.com>
     [not found]                 ` <20120425224433.2fa0f2de@gentoo.org>
     [not found]                   ` <pan.2012.04.26.06.18.31@cox.net>
     [not found]                     ` <4F98EA90.4000403@gentoo.org>
     [not found]                       ` <pan.2012.04.26.09.55.04@cox.net>
     [not found]                         ` <4F9967DE.8000601@gentoo.org>
     [not found]                           ` <pan.2012.04.26.22.08.25@cox.net>
     [not found]                             ` <4F99F941.90705@gentoo.org>
     [not found]                               ` <pan.2012.04.27.14.15.34@cox.net>
     [not found]                                 ` <20120427162051.13554e1a@pomiocik.lan>
     [not found]                                   ` <4F9AD51F.6060303@gentoo.org>
     [not found]                                     ` <20378.57067.381372.698034@a1i15.kph.uni-mainz.de>
     [not found]                                       ` <20120427202614.0edd9c24@googlemail.com>
     [not found]                                         ` <20378.63178.619568.972455@a1i15.kph.uni-mainz.de>
     [not found]                                           ` <20120427215824.3382e682@pomiocik.lan>
2012-04-27 20:12                                             ` [gentoo-pms] EAPI 5 (Was: Re: [gentoo-dev] Re: Making user patches globally available) Ciaran McCreesh
2012-04-27 22:01                                               ` [gentoo-pms] EAPI 5 Ulrich Mueller
2012-04-28  9:36                                                 ` Ciaran McCreesh
2012-04-28 10:11                                                   ` Ulrich Mueller
2012-04-28 10:14                                                     ` Ciaran McCreesh
2012-04-28 10:26                                                       ` Ulrich Mueller
2012-04-29  3:13                                                         ` Brian Harring
2012-04-29  6:47                                                           ` Michał Górny
2012-04-29  7:12                                                             ` Brian Harring
2012-04-29 16:20                                                 ` Ralph Sennhauser
2012-04-29 16:50                                                   ` Ciaran McCreesh
2012-04-29 17:38                                                     ` Ralph Sennhauser
2012-04-29 17:48                                                       ` Ciaran McCreesh
2012-04-29 17:41                                                     ` Ralph Sennhauser
2012-04-29 17:39                                                   ` Ulrich Mueller
2012-04-27 23:45                                               ` [gentoo-pms] EAPI 5 (Was: Re: [gentoo-dev] Re: Making user patches globally available) Zac Medico
2012-04-28  8:52                                               ` [gentoo-pms] " Michał Górny
2012-04-28  9:34                                                 ` Ciaran McCreesh
2012-04-28 10:24                                                   ` [gentoo-pms] Re: EAPI 5 Ulrich Mueller
2012-04-28 14:13                                                     ` Michał Górny
2012-04-28 15:19                                                       ` Ciaran McCreesh
     [not found]                                               ` <1335602418.25644.2.camel@belkin4>
2012-04-28 10:03                                                 ` Ulrich Mueller
2012-04-28 17:11                                               ` [gentoo-pms] EAPI 5 (Was: Re: [gentoo-dev] Re: Making user patches globally available) Tiziano Müller
2012-04-28 17:14                                                 ` Ciaran McCreesh
2012-04-29  3:24                                                   ` Brian Harring
2012-04-29 14:20                                                     ` Tiziano Müller [this message]
2012-04-30  9:03                                                   ` Tiziano Müller
2012-04-30 22:14                                               ` [gentoo-pms] Re: EAPI 5 Andreas K. Huettel
2012-04-30 22:15                                                 ` Ciaran McCreesh
2012-04-30 22:40                                                   ` Andreas K. Huettel
2012-04-30 22:44                                                     ` Ciaran McCreesh
2012-04-30 23:02                                                       ` Andreas K. Huettel
2012-05-01  8:38                                                         ` Ciaran McCreesh
2012-05-01  9:01                                                           ` Andreas K. Huettel
2012-05-01  9:16                                                             ` Ciaran McCreesh
2012-05-01 12:10                                                               ` Andreas K. Huettel
2012-05-13 20:57                                                 ` Zac Medico
2012-05-02 17:40                                               ` [gentoo-pms] " Ulrich Mueller
2012-05-06  3:18                                               ` Arfrever Frehtes Taifersar Arahesis
2012-05-06  9:10                                                 ` Ulrich Mueller
2012-05-06  9:18                                                 ` Michał Górny
2012-05-06 14:20                                                 ` Ciaran McCreesh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1335709224.4823.63.camel@storm \
    --to=dev-zero@gentoo.org \
    --cc=gentoo-pms@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox