On Tue, 16 Dec 2025 at 15:39, Trevor Gamblin via
lists.openembedded.org <[email protected]>
wrote:
>
> With the Python 3.14.0 upgrade, rpm is finding the wrong paths with
> CMake, leading to a QA issue for files that we have listed in FILES
> already:
>
> |ERROR: QA Issue: rpm: Files/directories were installed but not shipped in 
> any package:
> |  
> /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm-4.20.1-py3.14.egg-info
> |  
> /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm/_rpm.so
> |  
> /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm/transaction.py
> |  
> /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm/__init__.py
> |Please set FILES such that these items are packaged. Alternatively if they 
> are unneeded, avoid installing them or delete them within do_install.
> |rpm: 4 installed and not shipped files. [installed-vs-shipped]
>
> Add a patch to make it possible to override Python3_SITEARCH in rpm's
> python/CMakeLists.txt by setting PYTHON_INSTALL_DIR in EXTRA_OECMAKE.

I'm still worried that Python3_SITEARCH was correct with the previous
version of python, and is no longer correct. We can't cover it up with
a patch that forcibly passes in the correct value to cmake, without
investigating what is happening.

Specifically, in
recipe-sysroot-native/usr/share/cmake-4.2/Modules/FindPython3.cmake I
see this:

``Python3_SITEARCH``
  Third-party platform dependent installation directory.

  Information returned by ``sysconfig.get_path('platlib')``.

And the code that actually runs python can be found in
recipe-sysroot-native/usr/share/cmake-4.2/Modules/FindPython/Support.cmake

So if "sysconfig.get_path('platlib')" (in presence of
python3targetconfig inherot, which rpm recipe does have) has indeed
regressed, it can't be left unfixed.

Alex

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

Reply via email to