Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D080C76188 for ; Wed, 5 Apr 2023 10:46:28 +0000 (UTC) Subject: How to remove Rust (and other packages) from yocto build #bitbake To: yocto@lists.yoctoproject.org From: Jesus.JimenezSanchez@verifone.com X-Originating-Location: Athlone, Leinster, IE (83.70.152.76) X-Originating-Platform: Linux Firefox 112 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 05 Apr 2023 03:46:23 -0700 Message-ID: Content-Type: multipart/alternative; boundary="neMgvkL8uJDPVP8e41nz" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 05 Apr 2023 10:46:28 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/59614 --neMgvkL8uJDPVP8e41nz Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 +=3D "\ 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 l= og. 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 w= ork either. I have also tried both options in my `bbappend` file with no su= ccess 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 lo= g, like `dpkg-native` or `cmake`. Thank you. --neMgvkL8uJDPVP8e41nz Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
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 +=3D "\
ava= hi \
apt= \
apt= -native \
cma= ke \
cma= ke-native \
cra= cklib \
crd= a \
cry= ptodev-linux \
dpk= g \
dpk= g-native \
elf= utils \
elf= utils-native \
fft= w \
gaw= k \
gcc= -runtime \
gnu= pg \
hdp= arm \
icu= \
kbd= \
lib= assuan \
lib= atomic-ops \
lib= avahi-client \
lib= avahi-common \
lib= avahi-core \
lib= cap-ng \
lib= daemon \
lib= gcc \
lib= gcc-initial \
lib= gcrypt \
lib= gpg-error \
lib= ical \
lib= idn2 \
lib= ksba \
lib= mnl \
lib= ogg \
lib= tirpc \
lib= tool \
lib= tool-cross \
lib= ubootenv \
lib= unistring \
lib= xcrypt \
lin= ux-libc-headers \
lz4= \
lzo= \
npt= h \
pin= entry \
pul= seaudio \
qem= uwrapper-cross \
res= ize-helper \
rus= t \
rus= t-llvm \
rus= t-llvm-native \
rus= t-native \
sys= temd \
sys= temd-compat-units \
sys= temd-conf \
sys= temd-mount-partitions \
tar= \
val= a \
xxh= ash \
zst= d \
"
```
 
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 a= t 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 l= og, like `dpkg-native` or `cmake`.
 
Thank you.
--neMgvkL8uJDPVP8e41nz--