<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16543</bug_id>
          
          <creation_ts>2026-12-02 06:09:01 +0000</creation_ts>
          <short_desc>ipk: Missing whitespace before --force-checksum causes do_rootfs failure with custom OPKG_ARGS</short_desc>
          <delta_ts>2026-12-02 06:45:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>5.0.21</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Badarinath Reddy">badarinath057</reporter>
          <assigned_to name="Badarinath Reddy">badarinath057</assigned_to>
          <cc>badarinath057</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107732</commentid>
    <comment_count>0</comment_count>
    <who name="Badarinath Reddy">badarinath057</who>
    <bug_when>2026-12-02 06:09:01 +0000</bug_when>
    <thetext>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 += &apos;--force-checksum&apos;


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

Our build configuration contains:

bitbake
OPKG_ARGS:append = &quot; --force-overwrite&quot;


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 &apos;--force-overwrite--force-checksum&apos;
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 = &quot; --force-overwrite&quot;

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

Change:

python
self.opkg_args += &apos;--force-checksum&apos;


To:

python
self.opkg_args += &apos; --force-checksum&apos;

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107733</commentid>
    <comment_count>1</comment_count>
    <who name="Badarinath Reddy">badarinath057</who>
    <bug_when>2026-12-02 06:45:19 +0000</bug_when>
    <thetext>opensource has self.opkg_args.append(&apos;--force-checksum&apos;) so closing this as invalid bug</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>