On Tue, 7 Apr 2020, Alexander Kanavin wrote:
> These run
> - at image creation time in the context of package manager
> (dnf/apt/opkg) installing packages into the image rootfs
> directory. The code that executes the package manager specifically
> exports $D into the environment before launching it.
> - at runtime when packages are installed or updated through the same
> package manager. Then, $D is absent.
ah, that's very much what i'd guessed. i also just noted sec 4.7.7
in ref manual, one of the QA checks:
"An additional QA check has been added to detect usage of ${D} in
FILES values where D values should not be used at all. The same check
ensures that $D is used in
pkg_preinst/pkg_postinst/pkg_prerm/pkg_postrm functions instead of
${D}."
> The scripts are written into the package files when the packages
> gets created; they become 'post-install scriptlets' that every
> package manager supports and executes if they are present.
so far, so good, i'm still going to expand on that section since
it definitely could use some fleshing out.
rday
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#137103):
https://lists.openembedded.org/g/openembedded-core/message/137103
Mute This Topic: https://lists.openembedded.org/mt/72858070/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-