This package's CMakeLists.txt incorrectly installs the systemd service file in /etc/systemd/system. It should be installed to /lib/systemd/system . There's a PR about this but it too uses an incorrect path for us. https://github.com/DanielOgorchock/joycond/pull/97 Reproducible: Always Steps to Reproduce: 1. emerge joycond 2. ls -la /etc/systemd/system/joycond.service Actual Results: -rw-r--r-- 1 root root 218 2021-07-30 00:00:28 /etc/systemd/system/joycond.service Expected Results: This file should not exist in /etc. Let's patch the CMakeLists.txt file. Also consider adding paranoia options in my PR: https://github.com/DanielOgorchock/joycond/pull/90 The above PR gets joycond.service to be an acceptable exposure level. Right now it's: → Overall exposure level for joycond.service: 9.6 UNSAFE 😨
Ah sorry, should have noticed that. I don't use systemd on Gentoo, but I am familiar with it. I'll get it fixed up shortly.
https://github.com/DanielOgorchock/joycond/pull/97 is ready if you want to add this patch to the ebuild. I don't know if upstream ever intends to merge new things in.
The PR change works except the 'rm ...modules-load.d' line needs to be removed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8468c7ce1130e455974c4d3ce0185d157753a6a commit e8468c7ce1130e455974c4d3ce0185d157753a6a Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2022-03-20 22:51:53 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2022-03-20 22:51:53 +0000 games-util/joycond: Patch to install systemd files in the right locations Closes: https://bugs.gentoo.org/833792 Signed-off-by: James Le Cuirot <chewi@gentoo.org> games-util/joycond/files/joycond-systemd.patch | 32 ++++++++++++++++++++++ ...30.ebuild => joycond-0.1.0_p20210730-r1.ebuild} | 5 +++- 2 files changed, 36 insertions(+), 1 deletion(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=854bcc4eb92704b189020c527dd9f24f1c8f02f2 commit 854bcc4eb92704b189020c527dd9f24f1c8f02f2 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2022-03-20 22:54:58 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2022-03-20 22:54:58 +0000 games-util/joycond: Patch to lock down the systemd service Thanks to Andrew Udvare. Closes: https://bugs.gentoo.org/833792 Signed-off-by: James Le Cuirot <chewi@gentoo.org> .../joycond/files/joycond-systemd-paranoia.patch | 45 ++++++++++++++++++++++ ...d-systemd.patch => joycond-systemd-paths.patch} | 0 .../joycond/joycond-0.1.0_p20210730-r1.ebuild | 3 +- 3 files changed, 47 insertions(+), 1 deletion(-)