Skip to contentSkip to conversation

Remove dev packages from core-image-minimal

DISCUSSION [email protected] 2 participants 2 messages Mar 3, 2025

lore
Share & tools
lore
#0 lore raw

Hi Members ,

1)  I see lot of unwanted "-dev" packages being added in our image which is derived from core-image-minimal linux-libc-headers-dev
libical-dev
libglib-2.0-dev
openssl-dev
python3-dev
xorgproto-dev
libfreetype-dev
...
...
is there any standard way to remove such dev packages directly without manually removing each package here .

2)  I tried generating the graph image to understand from where is this added in RFS using "-g" option #  ~/TEST/project (master) : bitbake -g -u taskexp <PACKAGE-NAME>
FATAL: Gtk ui could not load the required gi python module

Can member please provide any pointers on these

Thanks ,
Ashish

#1 lore raw
Quoted 11 lines · emailaddress.ashish via lists.yoctoproject.org

Hi Members ,
1) I see lot of unwanted "-dev" packages being added in our image which is derived from core-image-minimal
linux-libc-headers-dev
libical-dev
libglib-2.0-dev
openssl-dev
python3-dev
xorgproto-dev
libfreetype-dev
...

You’re installing those so have a look at your image or local.conf. Can you share your image? Does your IMAGE_FEATURES contain dev-pkgs?

Quoted 2 lines

...
is there any standard way to remove such dev packages directly without manually removing each package here .

Understand where they're coming from, and stop doing that.

Quoted 4 lines

2) I tried generating the graph image to understand from where is this added in RFS using "-g" option # ~/TEST/project (master) : bitbake -g -u taskexp <PACKAGE-NAME>
FATAL: Gtk ui could not load the required gi python module
Can member please provide any pointers on these

You’ll need to install the python gobject-introspection module. On debian, that’s python3-gi.

Ross