Skip to contentSkip to conversation

mozjs-128: avoid using build host's rust toolchain

PATCH Gyorgy Sarvari 2 participants 5 messages Jul 3, 2025 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Alternatively, instead of inheriting rust class, cargo class could be inherited. This would set up the correct environment also, but would also need to override the do_compile task, with something like

do_compile(){
    oe_runmake
}

Though IMO it is technically slightly more correct, I find the two variables in the patch easier to grasp. But if someone would prefer this (or an other solution), I can submit a v2.

#2 lore raw

cargo class is intended for components that use cargo as the top level build tool.

If they use something else, and cargo usage is 'hidden', then the correct class to inherit is cargo_common - if it misses the needed bits or does too much, then that class should be fixed.

E.g. see how librsvg recipe works.

Alex

Quoted 21 lines · Gyorgy Sarvari via lists.openembedded.org

Alternatively, instead of inheriting rust class, cargo class could be inherited. This would set up the correct environment also, but would also need to override the do_compile task, with something like

do_compile(){
oe_runmake
}

Though IMO it is technically slightly more correct, I find the two variables in the patch easier to grasp. But if someone would prefer this (or an other solution), I can submit a v2.

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

#3 lore raw

Forgot to add, the patch is fine as it is though. Two lines are ok, a mass copy-paste-tweak of the class would not be ok.

Alex

Quoted 35 lines · Alexander Kanavin

cargo class is intended for components that use cargo as the top level build tool.

If they use something else, and cargo usage is 'hidden', then the correct class to inherit is cargo_common - if it misses the needed bits or does too much, then that class should be fixed.

E.g. see how librsvg recipe works.

Alex

Quoted 21 lines · Gyorgy Sarvari via lists.openembedded.org

Alternatively, instead of inheriting rust class, cargo class could be inherited. This would set up the correct environment also, but would also need to override the do_compile task, with something like

do_compile(){
oe_runmake
}

Though IMO it is technically slightly more correct, I find the two variables in the patch easier to grasp. But if someone would prefer this (or an other solution), I can submit a v2.

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

#4 lore raw
Quoted 2 lines · Alexander Kanavin

Forgot to add, the patch is fine as it is though. Two lines are ok, a mass copy-paste-tweak of the class would not be ok.

I do like the cargo_common idea, and even fewer lines than 2 and would be safer too (it wouldn't be just 2 random variables). My test build has just failed, but if I can pull it together than actually I would prefer your suggestion, and will submit it as v2.

Quoted 38 lines

Alex

Quoted 33 lines · Alexander Kanavin

cargo class is intended for components that use cargo as the top level build tool.

If they use something else, and cargo usage is 'hidden', then the correct class to inherit is cargo_common - if it misses the needed bits or does too much, then that class should be fixed.

E.g. see how librsvg recipe works.

Alex

Quoted 20 lines · Gyorgy Sarvari via lists.openembedded.org

Alternatively, instead of inheriting rust class, cargo class could be inherited. This would set up the correct environment also, but would also need to override the do_compile task, with something like

do_compile(){
oe_runmake
}

Though IMO it is technically slightly more correct, I find the two variables in the patch easier to grasp. But if someone would prefer this (or an other solution), I can submit a v2.

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 7 lines · Gyorgy Sarvari via lists.openembedded.org
Quoted 2 lines · Alexander Kanavin

Forgot to add, the patch is fine as it is though. Two lines are ok, a mass copy-paste-tweak of the class would not be ok.

I do like the cargo_common idea, and even fewer lines than 2 and would be safer too (it wouldn't be just 2 random variables). My test build has just failed, but if I can pull it together than actually I would prefer your suggestion, and will submit it as v2.

Huhh, actually it looks like I'm on a bit outdated master branch, and this was already submitted not so long ago:
https://git.openembedded.org/meta-openembedded/commit/?id=6cf005f38654ca014377e08c770c11e2505d65a3

Then this patch is redundant - please ignore.

Quoted 40 lines
Quoted 31 lines

Alex

Quoted 27 lines · Alexander Kanavin

cargo class is intended for components that use cargo as the top level build tool.

If they use something else, and cargo usage is 'hidden', then the correct class to inherit is cargo_common - if it misses the needed bits or does too much, then that class should be fixed.

E.g. see how librsvg recipe works.

Alex

Quoted 14 lines · Gyorgy Sarvari via lists.openembedded.org

Alternatively, instead of inheriting rust class, cargo class could be inherited. This would set up the correct environment also, but would also need to override the do_compile task, with something like

do_compile(){
oe_runmake
}

Though IMO it is technically slightly more correct, I find the two variables in the patch easier to grasp. But if someone would prefer this (or an other solution), I can submit a v2.

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