[Rpm-maint] [rpm-software-management/rpm] 4.18.99: broken off-source-tree install target (Issue #2650)

Tomasz Kłoczko notifications at github.com
Fri Sep 8 09:58:51 UTC 2023


In python/CMakeLists.txt is:
```cmake
install(TARGETS _rpm
        DESTINATION ${Python3_SITEARCH}/rpm)
install(FILES rpm/transaction.py rpm/__init__.py
        DESTINATION ${Python3_SITEARCH}/rpm)

set(egginfo ${PROJECT_NAME}-${PROJECT_VERSION}-py${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}.egg-info)
configure_file(rpm.egg-info.in ${egginfo} @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${egginfo}
        DESTINATION ${Python3_SITEARCH})
```
Looksl like this cmake variable is defined  in rpm tree🤔 
```console
[tkloczko at pers-jacek rpm-4.18.99]$ grep -r Python3_SITEARCH
python/CMakeLists.txt:  DESTINATION ${Python3_SITEARCH}/rpm)
python/CMakeLists.txt:  DESTINATION ${Python3_SITEARCH}/rpm)
python/CMakeLists.txt:  DESTINATION ${Python3_SITEARCH})
```
```console
[tkloczko at pers-jacek rpm-4.18.99]$ grep -r Python3_SITEARCH /usr
grep: /usr/libexec/utempter: Permission denied
grep: /usr/share/polkit-1/rules.d: Permission denied
/usr/share/cmake/Modules/FindPython3.cmake:``Python3_SITEARCH``
grep: /usr/sbin/unix_update: Permission denied
```
In that files is:
```cmake 
``Python3_SITEARCH``
  Third-party platform dependent installation directory.

  Information returned by ``sysconfig.get_path('platlib')``.
```
However ..
```console
[tkloczko at pers-jacek rpm-4.18.99]$ python3 -m sysconfig | grep platlib
        platlib = "/usr/lib64/python3.8/site-packages"
```
comments? 🤔 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2650#issuecomment-1711404469
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2650/1711404469 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230908/1309a71b/attachment.html>


More information about the Rpm-maint mailing list