public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alexis Ballier <aballier@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: qa@gentoo.org
Subject: [gentoo-dev] On the good usage of subslots
Date: Sat, 9 Feb 2013 09:15:03 -0300	[thread overview]
Message-ID: <20130209091503.1f75352d@gentoo.org> (raw)

Dear fellow developers,

I hope this will be trivial to most of you but after seeing bug #455900
and the vast majority of developers not even thinking twice before
sedding their dep strings, I believe this needs some attention.

What do subslots do: You set a subslot to a package and every time said
package subslot changes (e.g. with an update), others packages
depending on it with a := dep will be rebuilt. Nothing more, nothing
less.

Now, this solves a real problem: haskell, perl and ocaml packages need
to be rebuilt after updating their respective compiler/interpreter and,
in some cases, even after updating the libraries they use. Subslots
would make haskell-updater, perl-cleaner and ocaml-rebuild not needed
in the future.

You can also use subslots to notify an ABI change in a shared library,
in order to avoid having to use preserve-libs or run revdep-rebuild.
However, this week I had to rebuild webkit-gtk three or four times and
libreoffice twice...
If you want to notify ABI changes, then you should set subslot to
something representing the ABI, $PV as subslot is most certainly wrong
in that case. Subslot is *not* a substitute to checking your library
ABI, checking if its reverse dependencies work fine after the update,
and notifying upstream if something went wrong so they can make a quick
release fixing their mistake. Subslot is also *not* a substitute to
soname and ensuring ABI compatibility (at least forward) between
libraries with the same major. Using subslot only to be on the safe
side and forcing a rebuild of all the dependent packages because it is
too much work to check the ABI and work with upstream is, IMHO, a
serious QA issue.

Thank you for your attention,

Alexis.


             reply	other threads:[~2013-02-09 12:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-09 12:15 Alexis Ballier [this message]
2013-02-09 12:38 ` [gentoo-dev] Re: On the good usage of subslots Michael Palimaka
2013-02-09 12:46   ` Alexis Ballier
2013-02-09 12:52   ` Alexis Ballier
2013-02-09 14:09     ` Michael Palimaka
2013-02-11  0:45       ` Alexis Ballier
2013-02-11 15:40     ` Ian Stakenvicius
2013-02-09 13:47 ` [gentoo-dev] " Samuli Suominen
2013-02-09 14:05   ` [gentoo-dev] " Michael Palimaka
2013-02-09 16:06     ` Zac Medico
2013-02-09 16:36       ` Michael Palimaka
2013-02-09 16:39         ` Samuli Suominen
2013-02-09 16:53           ` Pacho Ramos
2013-02-09 19:21 ` [gentoo-dev] " Michał Górny
2013-02-11  0:44   ` Alexis Ballier
2013-02-11 20:53     ` James Cloos
2013-02-11 21:13       ` Ian Stakenvicius
2013-02-11 21:21       ` Zac Medico

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=20130209091503.1f75352d@gentoo.org \
    --to=aballier@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=qa@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