After updating to dev-python/rtslib-fb-2.2.2, restoring the targetcli configuration via /usr/lib/system/target.service doesnt work anymore because the /usr/bin/targetctl script is missing. The targetctl file is actually in the rtslib_fb-2.2.2.tar.gz distfile, but for some reason it doesnt get installed into /usr/bin/targetctl (which is actually a symlink to the /usr/lib/python-exec/python-exec2 wrapper). Reproducible: Always Steps to Reproduce: 1. emerge =dev-python/rtslib-fb-2.2.2 2. systemctl daemon-reload 3. systemctl start target.service Actual Results: × target.service - Restore LIO kernel target configuration Loaded: loaded (/usr/lib/systemd/system/target.service; enabled; preset: disabled) Active: failed (Result: exit-code) since Sun 2025-03-09 00:55:20 CET; 2s ago Duration: 1min 2.829s Invocation: 71630852cee04724976f3b826b404174 Process: 2203962 ExecStart=/usr/bin/targetctl restore (code=exited, status=203/EXEC) Main PID: 2203962 (code=exited, status=203/EXEC) Mem peak: 1.4M CPU: 6ms Mär 09 00:55:20 shodan systemd[1]: Starting Restore LIO kernel target configuration... Mär 09 00:55:20 shodan (argetctl)[2203962]: target.service: Unable to locate executable '/usr/bin/targetctl': No such file or directory Mär 09 00:55:20 shodan (argetctl)[2203962]: target.service: Failed at step EXEC spawning /usr/bin/targetctl: No such file or directory Mär 09 00:55:20 shodan systemd[1]: target.service: Main process exited, code=exited, status=203/EXEC Mär 09 00:55:20 shodan systemd[1]: target.service: Failed with result 'exit-code'. Mär 09 00:55:20 shodan systemd[1]: Failed to start Restore LIO kernel target configuration.
Looks like this was an upstream regression 2.2.0 onwards. The last version that installed targetctl was 2.1.76 when checking with a virtualenv (targetctl) ~ $ pip install rtslib-fb\>2.2 Collecting rtslib-fb>2.2 Using cached rtslib_fb-2.2.2-py3-none-any.whl.metadata (2.4 kB) Requirement already satisfied: pyudev~=0.18 in ./.virtualenvs/targetctl/lib/python3.13/site-packages (from rtslib-fb>2.2) (0.24.3) Using cached rtslib_fb-2.2.2-py3-none-any.whl (48 kB) Installing collected packages: rtslib-fb Attempting uninstall: rtslib-fb Found existing installation: rtslib-fb 2.1.76 Uninstalling rtslib-fb-2.1.76: Successfully uninstalled rtslib-fb-2.1.76 Successfully installed rtslib-fb-2.2.2 (targetctl) ~ $ command -v targetctl (targetctl) ~ $ pip install rtslib-fb\<2.2 Collecting rtslib-fb<2.2 Using cached rtslib_fb-2.1.76-py3-none-any.whl Requirement already satisfied: pyudev>=0.16.1 in ./.virtualenvs/targetctl/lib/python3.13/site-packages (from rtslib-fb<2.2) (0.24.3) Requirement already satisfied: six in ./.virtualenvs/targetctl/lib/python3.13/site-packages (from rtslib-fb<2.2) (1.17.0) Installing collected packages: rtslib-fb Attempting uninstall: rtslib-fb Found existing installation: rtslib-fb 2.2.2 Uninstalling rtslib-fb-2.2.2: Successfully uninstalled rtslib-fb-2.2.2 Successfully installed rtslib-fb-2.1.76 (targetctl) ~ $ command -v targetctl /home/ask/.virtualenvs/targetctl/bin/targetctl
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fd9d781b9222a444da7ecba34574ebebfa2dead commit 4fd9d781b9222a444da7ecba34574ebebfa2dead Author: Alfred Wingate <parona@protonmail.com> AuthorDate: 2025-03-10 07:02:00 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-03-10 07:19:01 +0000 dev-python/rtslib-fb: restore 2.1.76 Bug: https://bugs.gentoo.org/950321 Bug: https://bugs.gentoo.org/950964 Reverts: e29d210541b6232a1ce68914d2de913b00718ab4 Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org> dev-python/rtslib-fb/Manifest | 1 + dev-python/rtslib-fb/rtslib-fb-2.1.76.ebuild | 37 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+)