Am Freitag, 1. September 2006 17:05 schrieb Alec Warner:
> Stefan Schweizer wrote:
> > Hi,
> >
> > Repoman needs to check for deprecated eclasses, see
> > http://bugs.gentoo.org/141677
> >
> > As a result of the discussion in the bug, we would like to add
> > $PORTDIR/qa-data/eclass.deprecated
> > to allow to deprecate eclasses properly and make repoman fail.
> >
> > This will allow us to avoid problems with new ebuilds for
> > deprecated eclasses which result in bugs like
> > Bug 141629 dev-util/systemtap-20060325.ebuild uses deprecated
> > kernel-mod.eclass
> > I believe the developer has not known anything about that
> > kernel-mod is deprecated when making that ebuild. Now he ignores
> > the bug and we have that old eclass used again :(
> >
> > Best regards,
> > - Stefan
>
> I would prefer to see a patch for this first, and then modify
> gentoo-x86 second; but I agree in principle.  What of the
> conversation about 2 files, one for "this eclass is currently being
> deprecated" -> repoman warning; and "this eclass is no longer usable"
> -> repoman failure.
>
> Also the deprecated -> new-eclass mapping.  Afaik that didn't go so
> well for me; but I still like it ;)
>
> old                   new
> -----                 ------
> foo.eclass            new-foo.eclass
We don't need a new file for that IMHO. I'd propose to add something
like

ECLASS_DEPRECATED="${ECLASS_DEPRECATED} foo"
ECLASS_REPLACEMENTS="${ECLASS_REPLACEMENT} new-foo"

to foo.eclass. In my eyes this is much less work as repoman merely has
to check for 2 envvars.

Danny
-- 
Danny van Dyk <[EMAIL PROTECTED]>
Gentoo/AMD64 Project, Gentoo Scientific Project
-- 
gentoo-dev@gentoo.org mailing list

Reply via email to