Skip to contentSkip to conversation

Using bitbake as a native standalone package-manager

DISCUSSION [email protected] 3 participants 4 messages Jan 26, 2023

lore
Share & tools
lore
#0 lore raw

Hi there,

is it possible to use bitbake as a standalone package-manager? Like a replacement for tools like conan or vcpkg? Imagine having a software, which depends on a few other c/c++ libraries and you want to compile it natively on a host system for the host system (so no cross-compilation). And for some of the dependencies (like openssl) you want it to use the host libraries. It that possible?

Thanks for this piece of software!

#1 lore raw

You can certainly do it, but it's not a use case that is supported through the core layer. You need to make a minimal replacement for oe-core.

Alex

Quoted 16 lines · aw via lists.openembedded.org

Hi there,

is it possible to use bitbake as a standalone package-manager? Like a replacement for tools like conan or vcpkg? Imagine having a software, which depends on a few other c/c++ libraries and you want to compile it natively on a host system for the host system (so no cross-compilation). And for some of the dependencies (like openssl) you want it to use the host libraries. It that possible?

Thanks for this piece of software!

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

author
#2 lore raw

Thank you for your reply,

can you point me onto any guide about how to create such a minimal oe-core?

best, Anton

Am Do., 26. Jan. 2023 um 09:41 Uhr schrieb Alexander Kanavin < [email protected]>:

Quoted 4 lines

You can certainly do it, but it's not a use case that is supported through the core layer. You need to make a minimal replacement for oe-core.

#3 lore raw
Quoted 4 lines · Anton via lists.openembedded.org

Thank you for your reply,

can you point me onto any guide about how to create such a minimal oe-core?

That’s up to you: start by writing a base.bbclass which defines the tasks, like fetch, configure, compile, etc.

https://a4z.gitlab.io/docs/BitBake/guide.html covers using just bitbake to build recipes from the ground up.

Ross