Skip to contentSkip to conversation

scarthgap: How to revert zstd from ipk ?

DISCUSSION Joakim Tjernlund 2 participants 5 messages Oct 7, 2024

lore
Share & tools
lore
#0 lore raw

We don't have zstd on out target and since it is rather large we want to avoid it. Tried to back zstd out by doing:

Added opkg_%bbappend:
DEPENDS:remove = "zstd"
EXTRA_OECONF:remove = "--enable-zstd"
and set:
PACKAGECONFIG:pn-libarchive = "zlib bz2 xz"
in our own disto.conf

But bitbake still builds *ipk's with zstd compression, what am I missing?

Joakim

#1 lore raw

I don't understand. Do you have zstd on the target image or not? Where do you want to avoid it?

Which ipks are you seeing specifically? Do they get installed on the target image?

Basically it's hard to understand what is going on if the problem description isn't clear and there's no way to reproduce or observe it.

Alex

Alex

Quoted 23 lines · Joakim Tjernlund via lists.openembedded.org

We don't have zstd on out target and since it is rather large we want to avoid it. Tried to back zstd out by doing:

Added opkg_%bbappend:
DEPENDS:remove = "zstd"
EXTRA_OECONF:remove = "--enable-zstd"
and set:
PACKAGECONFIG:pn-libarchive = "zlib bz2 xz"
in our own disto.conf

But bitbake still builds *ipk's with zstd compression, what am I missing?

Joakim

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

#2 lore raw
Quoted 2 lines · Alexander Kanavin

I don't understand. Do you have zstd on the target image or not? Where do you want to avoid it?

Sorry for being unclear, I do NOT have zstd on target but is installed in native/sdk.

Quoted 3 lines

Which ipks are you seeing specifically? Do they get installed on the target image?

All ipks I have checked has compression zstd for data, assuming all of then are ATM.

opkg itself is built without zstd and build fail in the end when trying
generate and image, here is one such error msg:
ERROR: lib32-xr-image-1.0-r0 do_populate_sdk: Unable to install packages. Command '/home/jocke/yocto-xr/build/infn-xr/waa400/tmp/work/waa400-xrmllib32-linux-musleabi/lib32-xr-
image/1.0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/jocke/yocto-xr/build/infn-xr/waa400/tmp/work/waa400-xrmllib32-linux-musleabi/lib32-xr-image/1.0/opkg-sdk- target.conf -t /home/jocke/yocto-xr/build/infn-xr/waa400/tmp/work/waa400-xrmllib32-linux-musleabi/lib32-xr-image/1.0/temp/ipktemp/ -o /home/jocke/yocto-xr/build/infn-
xr/waa400/tmp/work/waa400-xrmllib32-linux-musleabi/lib32-xr-image/1.0/sdk/image/opt/infn-xr/1.0/sysroots/cortexa53-xr-linux-musl --force_postinstall --prefer-arch-to-version -
-force-maintainer --force-overwrite install boost boost-dev libstdc++-staticdev packagegroup-core-standalone-sdk-target target-sdk-provides-dummy xr-newlib-staticdev' returned 255:
* pkg_extract_data_file_names_to_stream: Failed to extract data.tar.* from package '/home/jocke/yocto-xr/build/infn-xr/waa400/tmp/work/waa400-xrmllib32-linux-musleabi/lib32-xr-
image/1.0/sdk/image/opt/infn-xr/1.0/sysroots/cortexa53-xr-linux-musl//var/cache/opkg/volatile.3157377/da390b29564d83775febf0b70efef24b_libstdc++-staticdev_13.3.0- r0_cortexa53.ipk'.
* pkg_get_installed_files: Error extracting file list from /home/jocke/yocto-xr/build/infn-xr/waa400/tmp/work/waa400-xrmllib32-linux-musleabi/lib32-xr-
image/1.0/sdk/image/opt/infn-xr/1.0/sysroots/cortexa53-xr-linux-musl//var/cache/opkg/volatile.3157377/da390b29564d83775febf0b70efef24b_libstdc++-staticdev_13.3.0- r0_cortexa53.ipk.
Installing libstdc++-staticdev (13.3.0) on root
Downloading file:/home/jocke/yocto-xr/build/infn-xr/waa400/tmp/work/waa400-xrmllib32-linux-musleabi/lib32-xr-image/1.0/oe-sdk-repo/cortexa53/libstdc++-staticdev_13.3.0- r0_cortexa53.ipk.

Quoted 34 lines

Basically it's hard to understand what is going on if the problem description isn't clear and there's no way to reproduce or observe it.

Alex

Alex

Quoted 23 lines · Joakim Tjernlund via lists.openembedded.org

We don't have zstd on out target and since it is rather large we want to avoid it. Tried to back zstd out by doing:

Added opkg_%bbappend:
DEPENDS:remove = "zstd"
EXTRA_OECONF:remove = "--enable-zstd"
and set:
PACKAGECONFIG:pn-libarchive = "zlib bz2 xz"
in our own disto.conf

But bitbake still builds *ipk's with zstd compression, what am I missing?

Joakim

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

#3 lore raw
Quoted 4 lines · Joakim Tjernlund

All ipks I have checked has compression zstd for data, assuming all of then are ATM.

opkg itself is built without zstd and build fail in the end when trying generate and image, here is one such error msg:

meta/classes-global/package_ipk.bbclass presribes zstd compression for opkg packages. I wouldn't recommend trying to change that because that's the only tested option.

Alex

#4 lore raw
Quoted 10 lines · Alexander Kanavin
Quoted 4 lines · Joakim Tjernlund

All ipks I have checked has compression zstd for data, assuming all of then are ATM.

opkg itself is built without zstd and build fail in the end when trying generate and image, here is one such error msg:

meta/classes-global/package_ipk.bbclass presribes zstd compression for opkg packages. I wouldn't recommend trying to change that because that's the only tested option.

I see now, there is
# Program to be used to build opkg packages
OPKGBUILDCMD ??= 'opkg-build -Z zstd -a "${ZSTD_DEFAULTS}"'
but before scarthgap it was:
OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}"'
I will try this as we don't want an extra MB or so on target.

Thanks
Jocke

Quoted 2 lines

Alex