From: Fabian Groffen <grobian@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Cc: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
Subject: Re: [gentoo-portage-dev] In what phase are file "merged"?
Date: Wed, 23 Jun 2021 09:08:47 +0200 [thread overview]
Message-ID: <YNLd/53oWUS8LqJ5@gentoo.org> (raw)
In-Reply-To: <ueectf55t@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]
On 23-06-2021 08:47:58 +0200, Ulrich Mueller wrote:
> >>>>> On Wed, 23 Jun 2021, Joakim Tjernlund wrote:
>
> > In PMS 9.2 is says:
> > The call order for upgrading, downgrading or reinstalling a package is:
>
> > pkg_pretend (only for EAPIs listed in table 9.2), which is called outside of the normal call order process.
> > pkg_setup
> > src_unpack
> > src_prepare (only for EAPIs listed in table 9.3)
> > src_configure (only for EAPIs listed in table 9.4)
> > src_compile
> > src_test (except if RESTRICT=test)
> > src_install
> > pkg_preinst
> > pkg_prerm for the package being replaced
> > pkg_postrm for the package being replaced
> > pkg_postinst
>
> > It does not say where in this list new files merged and old files
> > unmerged, can anyone enlighten me?
>
> It's somewhat hidden, but it's there:
> https://projects.gentoo.org/pms/8/pms.html#x1-950009.1.10
>
> 9.1.10 pkg_preinst
> ... immediately before merging the package to the live filesystem. ...
>
> 9.1.11 pkg_postinst
> ... immediately after merging the package to the live filesystem. ...
Aha, so does this mean pkg_prerm and pkg_postrm are run with replacing
package in place, e.g. if they refer to scripts installed by the
replaced package they may no longer exist or be the same?
Thanks,
Fabian
--
Fabian Groffen
Gentoo on a different level
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2021-06-23 7:08 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 [this message]
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
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=YNLd/53oWUS8LqJ5@gentoo.org \
--to=grobian@gentoo.org \
--cc=Joakim.Tjernlund@infinera.com \
--cc=gentoo-portage-dev@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