Bug 16543

Summary: ipk: Missing whitespace before --force-checksum causes do_rootfs failure with custom OPKG_ARGS
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Badarinath Reddy <badarinath057>
Component: coreAssignee: Badarinath Reddy <badarinath057>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: Undecided CC: badarinath057, meta.mr.watcher, meta.watcher
Version: 5.0.21   
Target Milestone: 0.0.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

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