Bug 16543 - ipk: Missing whitespace before --force-checksum causes do_rootfs failure with custom OPKG_ARGS
Summary: ipk: Missing whitespace before --force-checksum causes do_rootfs failure with...
Status: RESOLVED INVALID
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 5.0.21
Hardware: x86 Multiple
: Undecided major
Target Milestone: 0.0.0
Assignee: Badarinath Reddy
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-12-02 06:09 UTC by Badarinath Reddy
Modified: 2026-12-02 06:45 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Badarinath Reddy 2026-12-02 06:09:01 UTC
A regression was introduced by commit:

3f50b047b17392a11a4a2587d44c1db8fb652506

Commit message: package_manager/ipk: skip checksums for unsigned local feeds

The commit introduced the following code in meta/lib/oe/package_manager/ipk/__init__.py:

python
if self._skip_checksums:
    self.opkg_args += '--force-checksum'


When custom OPKG arguments are configured, the checksum option is appended without a leading whitespace separator.

Our build configuration contains:

bitbake
OPKG_ARGS:append = " --force-overwrite"


When _skip_checksums evaluates to True, the generated command contains:

text
--force-overwrite--force-checksum


This causes opkg to reject the argument and the image rootfs generation fails.

Actual error
text
opkg: unrecognized option '--force-overwrite--force-checksum'
opkg must have one sub-command argument


The failure occurs during the do_rootfs task.

Expected behavior

The generated command should contain properly separated arguments:

text
--force-overwrite --force-checksum

Steps to reproduce
Use OE-Core containing commit 3f50b047b17392a11a4a2587d44c1db8fb652506.
Configure unsigned local IPK feeds so _skip_checksums evaluates to True.
Add the following configuration:
bitbake
OPKG_ARGS:append = " --force-overwrite"

Build an image using the IPK package manager.
Observe the malformed argument during do_rootfs.
Proposed fix

Change:

python
self.opkg_args += '--force-checksum'


To:

python
self.opkg_args += ' --force-checksum'

Impact

Builds using unsigned local IPK feeds and custom OPKG_ARGS without trailing whitespace can fail during rootfs generation.

Builds where _skip_checksums is false do not execute this affected code path.

Regression reference

Introduced by:

3f50b047b17392a11a4a2587d44c1db8fb652506
Comment 1 Badarinath Reddy 2026-12-02 06:45:19 UTC
opensource has self.opkg_args.append('--force-checksum') so closing this as invalid bug