Skip to content

nativesdk native seems to be missing on some recipes in either ros-common or ros-2 #1614

@agwegsol

Description

@agwegsol

Describe the bug
I add ament-flake8 to TOOLCHAIN_TARGET_TASK in the yocto image file.
The branch is scarthgap. The build fail' with this error

User-Agent: falling back to 'libdnf': could not detect OS or basearch
repo: using cache for: oe-repo
oe-repo: using metadata from Sat 22 Nov 2025 09:28:00 PM UTC.
Excludes in dnf.conf: alsa-lib, pulseaudio
--> Starting dependency resolution
--> Finished dependency resolution
Error: 
 Problem: conflicting requests
  - nothing provides python3-flake8-blind-except needed by ament-flake8-0.19.2+2-r0.cortexa76 from oe-repo
  - nothing provides python3-flake8-class-newline needed by ament-flake8-0.19.2+2-r0.cortexa76 from oe-repo
  - nothing provides python3-flake8-deprecated needed by ament-flake8-0.19.2+2-r0.cortexa76 from oe-repo
  - nothing provides python3-flake8-docstrings needed by ament-flake8-0.19.2+2-r0.cortexa76 from oe-repo
(try to add '--skip-broken' to skip uninstallable packages)

I did some inspection and found that bb for blind-except was present in
./meta-ros2/recipes-devtools/python/python3-flake8-blind-except_0.2.1.bb
./meta-ros-common/recipes-devtools/python/python3-flake8-blind-except_0.2.1.bb

And these are almost identical except for a "S = ..." and the definitions nativesdk/native (and a different license ???) I did try to ad the nativesdk/native in some recipes and it did solve the nativesdk, but not native.

To Reproduce
I can reproduce it by adding ament-flake8 to TOOLCHAIN_TARGET_TASK in the yocto image file
The revison is scartgath, SHA 7698577

These are my included layers

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  ${TOPDIR}/../sources/poky/meta \
  ${TOPDIR}/../sources/poky/meta-poky \
  ${TOPDIR}/../sources/poky/meta-yocto-bsp \
  ${TOPDIR}/../sources/meta-raspberrypi \
  ${TOPDIR}/../sources/meta-openembedded/meta-oe \
  ${TOPDIR}/../sources/meta-openembedded/meta-multimedia \
  ${TOPDIR}/../sources/meta-openembedded/meta-networking \
  ${TOPDIR}/../sources/meta-openembedded/meta-python \
  ${TOPDIR}/../sources/meta-ros/meta-ros2-kilted \
  ${TOPDIR}/../sources/meta-ros/meta-ros2 \
  ${TOPDIR}/../sources/meta-ros/meta-ros-common  \
  ${TOPDIR}/../sources/meta-wegsol \
  "

The "Build Configuration:"

Build Configuration:
BB_VERSION           = "2.8.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "raspberrypi5"
DISTRO               = "poky"
DISTRO_VERSION       = "5.0.14"
TUNE_FEATURES        = "aarch64 crypto cortexa76"
TARGET_FPU           = ""
DISTRO_NAME          = "Poky (Yocto Project Reference Distro)"
ROS_DISTRO           = "kilted"
ROS_VERSION          = "2"
ROS_PYTHON_VERSION   = "3"
meta                 
meta-poky            
meta-yocto-bsp       = "HEAD:7e8674996b0164b07e56bc066d0fba790e627061"
meta-raspberrypi     = "HEAD:8767e2ff80ec3b09cd70dd22cdb18e783ab20d7b"
meta-oe              
meta-multimedia      
meta-networking      
meta-python          = "HEAD:b79cf94b4d53d75ddc4b4f468c1b1ad42a3fffe2"
meta-ros2-kilted     
meta-ros2            
meta-ros-common      = "HEAD:b92c3e0d7a7920b02eb4248489f136e886c6caf4"
meta-wegsol          = "rpi-test:9b18f356b38d691565ff7f23ce93f65a0ec2e8b5"

The wegsol layer is my own layer but contains very little, just the image description and some templates for the conf directory. Ohh and theb92.. is due to a local patch listed in my previous issue.

Author: Anders Gnistrup <ag@wegsol.io>
Date:   Sat Nov 22 07:37:22 2025 +0100

    Fix missing S=${WORKDIR} in babeltrace recipe
    
    I got this error:
    babeltrace-1.5.11-r0 do_populate_lic: QA Issue: babeltrace:
    LIC_FILES_CHKSUM points to an invalid file:
    
    I compared the same babeltrace recipe in poky layer and found that a
    S=${WORKDIR} was the only difference between the two. Added the line and
    the the error was gone.
    
    BTW: IMO it seems to be a bad idea to overwrite a recepi in poke.
    and better and more safe method is to use a bbappend.

commit 76985779bb896e6b993da1a30251d07d07e9f7fe (origin/scarthgap-next, origin/scarthgap)
Author: Rob Woolley <rob.woolley@windriver.com>
Date:   Fri Nov 7 16:49:53 2025 -0800

    {humble} qt-gui-cpp: Use CMake for tinyxml2
    
    Signed-off-by: Rob Woolley <rob.woolley@windriver.com>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions