public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  Re: libtool problem
Date: Wed, 4 Feb 2009 23:07:09 +0200	[thread overview]
Message-ID: <200902042307.09846.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <200902042140.33320.dirk.heinrichs@online.de>

On Wednesday 04 February 2009 22:40:26 Dirk Heinrichs wrote:
> Am Mittwoch, 4. Februar 2009 21:21:38 schrieb Alan McKinnon:
> > On Wednesday 04 February 2009 20:17:33 Dirk Heinrichs wrote:
> > > Am Mittwoch, 4. Februar 2009 04:25:34 schrieb ABCD:
> > > > The reason there wasn't a bump (IIRC) was that the ebuild never
> > > > changed - only the eclass did.  If you emerged any version of GCC
> > > > during the window where the eclass was broken, that version of GCC
> > > > would have been broken.
> > >
> > > That also means that portage is broken. Whenever something changes
> > > where other things depend on, those other things should be rebuilt.
> > > This doesn't happen here.
> >
> > I disagree, that would cause many more spurious rebuilds than is needed
> > if it were automated.
>
> Why spurious? The package manager should be smart enough to tell the user:
> "Rebuild because of eclass change". Nothing spurious.

Portage only knows that the eclass changed. It does not know what the result 
of that change will be. Therefore it is not in a position to mandate that a 
rebuild of other apps is *required* in order to function correctly. Which 
leaves us with two options:

Tell the user to look and decide for themselves, or
Rebuild everything using the eclass anyway

The latter option will always fix problems but at a huge cost of most often 
rebuilding something that looks like it needs rebuilding but actually 
doesn't. Therefore spurious.

> > Portage cannot tell how important or how deep a change
> > is, that requires a human to look and see. So what is needed is a flag
> > that portage recognizes as an instruction to do a revdep-rebuild-style
> > search and find everything using a specific changed file, and rebuild
> > those. The flag is set under dev control.
>
> Not dev, user. Something equivalent to --newuse.

I was thinking more along the lines of what @preserved-rebuild does. Some 
mechanism in the ebuild that includes a package in a list of stuff to be 
rebuilt. Obviously this is something new and a fairly deep change to portage 
so I can't think of a decent parallel or analogy.

> > Blindly doing what you suggest leads to this:
> >
> > appA depends on libB.
>
> No. Sorry if this was misleading. I was only referring to dependencies
> between ebuilds and eclasses.

OK

> Library interdependencies are handled just fine by portage/revdep-rebuild.
>
> > Therefore, a simple elog entry is a valid handling and fully compliant
> > with the principle of The Simplest Thing That Could Possibly Work.
>
> Elog entries are overlooked too often.

True, but do we have anything better? As in a proven mechanism successfully 
used elsewhere to deal with comparable situations?



-- 
alan dot mckinnon at gmail dot com



      reply	other threads:[~2009-02-04 21:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-03 12:15 [gentoo-user] libtool problem Helmut Jarausch
2009-02-03 12:18 ` Dirk Heinrichs
2009-02-03 12:24   ` Helmut Jarausch
2009-02-03 12:27     ` Justin
2009-02-03 12:47     ` [gentoo-user] " Nikos Chantziaras
2009-02-03 12:25 ` [gentoo-user] " Volker Armin Hemmann
2009-02-03 13:12 ` Neil Bothwick
2009-02-03 15:03   ` Helmut Jarausch
2009-02-03 15:23     ` Mike Kazantsev
2009-02-03 15:36       ` Neil Bothwick
2009-02-04  3:25         ` [gentoo-user] " ABCD
2009-02-04  9:50           ` Neil Bothwick
2009-02-04 18:17           ` Dirk Heinrichs
2009-02-04 20:21             ` Alan McKinnon
2009-02-04 20:40               ` Dirk Heinrichs
2009-02-04 21:07                 ` Alan McKinnon [this message]

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=200902042307.09846.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@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