Randomly removing things just does not work (TM).

Bitbake builds only what you tell it to anyways, so whatever you see in
your build is directly (because it goes into the resulting image) or
indirectly (because it is needed to build the resulting image) defined by
your target. So the things you can do is:
- looking at your image recipe, and remove things
- looking at your machine and distro, if they add things, and remove there.
Rust native is almost impossible to remove nowadays, because it is a build
dependency of python3-cryptography.

Greetz,
Josef

On Wed, Apr 5, 2023 at 12:46 PM Jesus.JimenezSanchez via
lists.yoctoproject.org <Jesus.JimenezSanchez=
[email protected]> wrote:

> I'm trying to remove a series of packages from my yocto build but what
> I've tried hasn't worked so far. This is what I have:
>
> ```
> PACKAGE_EXCLUDE += "\
> avahi \
> apt \
> apt-native \
> cmake \
> cmake-native \
> cracklib \
> crda \
> cryptodev-linux \
> dpkg \
> dpkg-native \
> elfutils \
> elfutils-native \
> fftw \
> gawk \
> gcc-runtime \
> gnupg \
> hdparm \
> icu \
> kbd \
> libassuan \
> libatomic-ops \
> libavahi-client \
> libavahi-common \
> libavahi-core \
> libcap-ng \
> libdaemon \
> libgcc \
> libgcc-initial \
> libgcrypt \
> libgpg-error \
> libical \
> libidn2 \
> libksba \
> libmnl \
> libogg \
> libtirpc \
> libtool \
> libtool-cross \
> libubootenv \
> libunistring \
> libxcrypt \
> linux-libc-headers \
> lz4 \
> lzo \
> npth \
> pinentry \
> pulseaudio \
> qemuwrapper-cross \
> resize-helper \
> rust \
> rust-llvm \
> rust-llvm-native \
> rust-native \
> systemd \
> systemd-compat-units \
> systemd-conf \
> systemd-mount-partitions \
> tar \
> vala \
> xxhash \
> zstd \
> "
> ```
>
> The main one I want to remove is Rust, but I still see it building in the
> log.
>
> I have also tried using `IMAGE_INSTALL:remove` (in fact, I have both at
> the same time at the moment in my `local.conf` file), but it doesn't seem
> to work either. I have also tried both options in my `bbappend` file with
> no success either.
>
> What am I doing wrong here? Is removing Rust even possible?
>
> Some other packages I'm trying to remove are also appearing in the build
> log, like `dpkg-native` or `cmake`.
>
> Thank you.
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59615): https://lists.yoctoproject.org/g/yocto/message/59615
Mute This Topic: https://lists.yoctoproject.org/mt/98079587/21656
Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to