i'm perusing the rust_1.70.0.bb recipe file, and i'm puzzled by the
fact that it defines its own do_install() to simply call
rust_do_install(), which then implements variations of that function:

https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/rust/rust_1.70.0.bb#n244

  do_install () {
    rust_do_install
  }

  rust_do_install() {
    rust_runx install
  }

  rust_do_install:class-nativesdk() {
    export PSEUDO_UNLOAD=1
    rust_runx install
    rust_runx install clippy
    ... snip ...

i'm familiar with bbclass files defining things like that; eg.,
autotools.bbclass defining:

  autotools_do_install() {
        oe_runmake 'DESTDIR=${D}' install it if it exists.
        if [ -e "${D}${infodir}/dir" ]; then
                rm -f ${D}${infodir}/dir
        fi
  }

but examples like that are generally then listed in EXPORT_FUNCTIONS
so subsequent recipes can invoke them as part of *their* do_install(),
like this snippet from the tar recipe:

  do_install () {
    autotools_do_install
    ln -s tar ${D}${bindir}/gtar
  }

but i'm not sure why the rust recipe file is doing what it's doing.
could it not have just defined variations of do_install() and gotten
the same effect? or is there something more subtle happening here?

rday
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#189029): 
https://lists.openembedded.org/g/openembedded-core/message/189029
Mute This Topic: https://lists.openembedded.org/mt/101936139/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to