Re: [gentoo-dev] eclass proposal - savedconfig.eclass - draft commited

2007-02-04 Thread Mike Frysinger
On Sunday 04 February 2007, Daniel Black wrote: > Added draft of eclass as savedconfig.eclass. Hope it includes all suggested > technical options. save_config should only be called from pkg_preinst or src_install, not both if this were a src_install function, then you wouldnt need to worry about

Re: [gentoo-dev] eclass proposal - savedconfig.eclass - draft commited

2007-02-04 Thread Daniel Black
Added draft of eclass as savedconfig.eclass. Hope it includes all suggested technical options. There is a masked version of dropbear-0.48.1-r1 that uses it. Hope it suits your needs. Feel free to abuse my coding style (or lack there of). Or poor use of bash schematics. On my todo list is: - t

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Mike Frysinger
On Thursday 01 February 2007, Ciaran McCreesh wrote: > On Thu, 1 Feb 2007 16:18:22 -0500 Mike Frysinger <[EMAIL PROTECTED]> > | On Thursday 01 February 2007, Alec Warner wrote: > | > Because then you get fun things like package.provided where people > | > inject a randomly configured package that f

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Ciaran McCreesh
On Thu, 1 Feb 2007 16:18:22 -0500 Mike Frysinger <[EMAIL PROTECTED]> wrote: | On Thursday 01 February 2007, Alec Warner wrote: | > Because then you get fun things like package.provided where people | > inject a randomly configured package that fails PM tests (aka | > built_with_use). You'd have to

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Daniel Black
On Friday 02 February 2007 06:27, Ciaran McCreesh wrote: > On Thu, 1 Feb 2007 04:50:20 -0500 Mike Frysinger <[EMAIL PROTECTED]> > > wrote: > | easier to just say "USE=savedconfig overrides everything else" > > Which means no dep resolution... USE flags are still used for dependencies. On Thursday

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Mike Frysinger
On Thursday 01 February 2007, Alec Warner wrote: > Because then you get fun things like package.provided where people > inject a randomly configured package that fails PM tests (aka > built_with_use). You'd have to have some sort of tautology that says > provided packages (and crazyconfig packages

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Alec Warner
Mike Frysinger wrote: > On Thursday 01 February 2007, Alec Warner wrote: >> But at that point the manager has little or no control over the package, >> hell you can move the savedconfigs out of /etc/portage/ cause they have >> nothing to do with it at all. >> >> You can't do use-deps with this, bec

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Mike Frysinger
On Thursday 01 February 2007, Alec Warner wrote: > But at that point the manager has little or no control over the package, > hell you can move the savedconfigs out of /etc/portage/ cause they have > nothing to do with it at all. > > You can't do use-deps with this, because you can't effectively en

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Thomas Rösner
Daniel Black schrieb: Fellow devs, [...] Ebuilds that already have their implementation of savedconfig: sys-apps/busybox sys-libs/uclibc x11-wm/dwm x11-misc/dmenu Other potential candidates: net-misc/dropbear [2] app-emulation/mol app-shells/tcsh dev-libs/klibc dev-lang/ccc mail-mta/sendmail n

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Ciaran McCreesh
On Thu, 1 Feb 2007 04:50:20 -0500 Mike Frysinger <[EMAIL PROTECTED]> wrote: | easier to just say "USE=savedconfig overrides everything else" Which means no dep resolution... -- Ciaran McCreesh Mail: ciaranm at ciaranm.org Web : http

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Alec Warner
Mike Frysinger wrote: > On Thursday 01 February 2007, Daniel Black wrote: >> So some foo that says: >> die "you have enabled X USE flag but your saved config reflects the X USE >> flag been unset. Please correct your saved config by setting GUI=yes >> in /etc/portage/savedconfig/${CATEGORY}/${PXXX}

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Mike Frysinger
On Thursday 01 February 2007, Daniel Black wrote: > So some foo that says: > die "you have enabled X USE flag but your saved config reflects the X USE > flag been unset. Please correct your saved config by setting GUI=yes > in /etc/portage/savedconfig/${CATEGORY}/${PXXX}/config.h or unset the USE >

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Mike Frysinger
On Thursday 01 February 2007, Daniel Black wrote: > On Thursday 01 February 2007 18:48, Mike Frysinger wrote: > > On Thursday 01 February 2007, Daniel Black wrote: > > > Also creates the following symlinks to it > > > > i dont see much value in these symlinks ... what do they gain us ? > > An easy

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Daniel Black
On Thursday 01 February 2007 18:55, Brian Harring wrote: > On Thu, Feb 01, 2007 at 06:21:01PM +1100, Daniel Black wrote: > > Fellow devs, > > WARN_CONFIG > > > > warn_config (useflags) > > > > warns the user that the useflags have been overridden by savedconfig > > > > Anything else? > > overriding

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-02-01 Thread Daniel Black
On Thursday 01 February 2007 18:48, Mike Frysinger wrote: > On Thursday 01 February 2007, Daniel Black wrote: > > Also creates the following symlinks to it > > i dont see much value in these symlinks ... what do they gain us ? > An easy way to find the closest config when merging a revision/versio

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-01-31 Thread Brian Harring
On Thu, Feb 01, 2007 at 06:21:01PM +1100, Daniel Black wrote: > Fellow devs, > WARN_CONFIG > > warn_config (useflags) > > warns the user that the useflags have been overridden by savedconfig > > Anything else? overriding use flags by a secondary configuration is a mess waiting to happen... nee

Re: [gentoo-dev] eclass proposal - savedconfig.eclass

2007-01-31 Thread Mike Frysinger
On Thursday 01 February 2007, Daniel Black wrote: > IMPLEMENTION thanks for putting this together > store_config should only be called from pkg_preinst or src_install this is easy to check in the eclass via $EBUILD_PHASE > Also creates the following symlinks to it i dont see much value in thes

[gentoo-dev] eclass proposal - savedconfig.eclass

2007-01-31 Thread Daniel Black
Fellow devs, Many packages have far more options than are presented to gentoo users though an ebuild interface. By embracing the principles of choice[1] the gentoo developers have an obligation to provide a far range of choice on their installation. This is particularly important in: - embedded