From: Alec Warner <antarus@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Cc: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>,
"mgorny@gentoo.org" <mgorny@gentoo.org>,
"grobian@gentoo.org" <grobian@gentoo.org>
Subject: Re: [gentoo-portage-dev] In what phase are file "merged"?
Date: Fri, 6 Aug 2021 13:53:36 -0700 [thread overview]
Message-ID: <CAAr7Pr9zwB6Rs6=6vVHHpVkY9x6+dbRWeD1WfYUqAy291HxF=g@mail.gmail.com> (raw)
In-Reply-To: <u7dgzw6aq@gentoo.org>
On Thu, Aug 5, 2021 at 9:23 PM Ulrich Mueller <ulm@gentoo.org> wrote:
>
> >>>>> On Fri, 06 Aug 2021, Joakim Tjernlund wrote:
>
> > On Wed, 2021-06-23 at 13:33 +0200, Michał Górny wrote:
> >> On Wed, 2021-06-23 at 12:40 +0200, Ulrich Mueller wrote:
> >> > I don't think that the ebuild can rely on any particular status of
> >> > the new package in pkg_*rm (of the old package), or the status of
> >> > the old package in pkg_*inst (of the new package).
> >>
> >> I would even say that it can't rely on the particular status of the
> >> old package in any case, if it's meant to be removed. In particular,
> >> its dependencies can be unmerged before the package itself.
>
> > Stubled ove this mail again and noticed "its dependencies can be
> > unmerged before the package itself" stmt. That does not make sense to
> > me. Deps should be unmerged after any pkg that depends on them?
>
> A popular workflow is "emerge -c -p" followed by "emerge -C" on entries
> of the list shown. IIUC emerge -C doesn't do any dependency resolution,
> therefore ebuilds cannot rely on any removal order.
Not quite sure I follow. Let's assume I have A -> B -> C.
Is it legal for A to call a binary packaged in A in A's pkg_prerm?
If yes, then B and C have to be on the livefs at least until A's
pkg_prerm has run; right?; otherwise if we unmerged B or C before then
we might break A's binaries?
-A
>
> Ulrich
prev parent reply other threads:[~2021-08-06 20:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-22 23:11 [gentoo-portage-dev] In what phase are file "merged"? Joakim Tjernlund
2021-06-23 6:47 ` Ulrich Mueller
2021-06-23 7:08 ` Fabian Groffen
2021-06-23 10:40 ` Ulrich Mueller
2021-06-23 11:33 ` Michał Górny
2021-08-05 22:14 ` Joakim Tjernlund
2021-08-06 4:22 ` Ulrich Mueller
2021-08-06 20:53 ` Alec Warner [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='CAAr7Pr9zwB6Rs6=6vVHHpVkY9x6+dbRWeD1WfYUqAy291HxF=g@mail.gmail.com' \
--to=antarus@gentoo.org \
--cc=Joakim.Tjernlund@infinera.com \
--cc=gentoo-portage-dev@lists.gentoo.org \
--cc=grobian@gentoo.org \
--cc=mgorny@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