Re: In what phase are file "merged"?

Fabian Groffen <[email protected]> Wed, 23 Jun 2021 09:08:47 +0200
Newsgroups gmane.linux.gentoo.portage.devel
Organization Gentoo Foundation, Inc.
Message-ID <YNLd/[email protected]>
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
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEELUvHd/Gtp7LaU1vuzpXahU5EQpMFAmDS3f8ACgkQzpXahU5E
QpN9+Af/VGYd33ENcgUFjbHoSmKoDvdoauJFOpZ025hLXADKAkco5Ql2QXbVHRKp
pujC0fReGt+gflCinsSpY2iSjGAAJstCn/NPGxOO3hWAGmr4pcrkK0KkR+sGzmVx
5LpMjD7pMxdGqSjLxyeUyFqY2N7OVhzr28owWH6bzcpfAMk0Ky/E4Bhr23Kqx8zV
eQ5SJzNaQbEi+k6AxvZEUAimgJkO1vfQfGDn/GK38+02JUyZ8y39h/H10tCeTY8O
cBe5hmuNTPSlWeVGnhk4x0IkSBQey/EXlg0UhlpUG5bZgaMB7SYBCr20H23bEAks
NEyMJWyLMdqdHzfjqhOldKFH/EkdUA==
=cmMS
-----END PGP SIGNATURE-----