abrt complains about failing to find any expected '*-release' file Jun 01 10:32:21 n7 abrt-dump-journal-oops[975]: abrt-dump-journal-oops: Can't open file '/etc/system-release' for reading: No such file or directory Jun 01 10:32:21 n7 abrt-dump-journal-oops[975]: abrt-dump-journal-oops: Can't open file '/etc/redhat-release' for reading: No such file or directory Jun 01 10:32:21 n7 abrt-dump-journal-oops[975]: abrt-dump-journal-oops: Can't open file '/etc/SuSE-release' for reading: No such file or directory Reproducible: Always
I fixed this by symlinking, /etc/gentoo-release to /etc/system-release
If this was the correct fix, then I can send a PR.
It seems /etc/system-release is not really standard and is more for Fedora systems http://0pointer.de/blog/projects/os-release I would at first try to report to upstream to try to see if they agree on adding the parsing of /etc/gentoo-release as they are doing for Fedora and OpenSuSE. If the disagree... we can simply sed the offending files to look for gentoo-release instead of system-release I think
Hey Pacho. Hope you are well. Thanks for getting to this. That sounds fair.
These might be of reference, Pacho. https://github.com/abrt/abrt/issues/589 https://github.com/abrt/libreport/issues/147
Thanks We also have /etc/os-release... maybe it was fixed in libreport... but it seems abrt needs to get ported as clearly it is not using it :/
Or maybe we could treeclean them as they are hard to adapt to non Fedora systems :/
Hey Pacho, I don't disagree, but if it's not a problem, I'd like to try to give it a swing. I should have some more time in the coming weeks to look at this.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8aedf444c3a5e2b943dcc82699121afe6334ed58 commit 8aedf444c3a5e2b943dcc82699121afe6334ed58 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2022-11-01 04:35:11 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2022-11-01 04:35:11 +0000 app-admin/abrt: treeclean Closes: https://bugs.gentoo.org/849095 Closes: https://bugs.gentoo.org/849305 Closes: https://bugs.gentoo.org/849092 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> app-admin/abrt/Manifest | 2 - app-admin/abrt/abrt-2.15.0.ebuild | 127 ------------------------------- app-admin/abrt/abrt-2.15.1.ebuild | 127 ------------------------------- app-admin/abrt/files/abrt-2.0.12-r1-conf | 27 ------- app-admin/abrt/files/abrt-2.0.12-r1-init | 76 ------------------ app-admin/abrt/metadata.xml | 11 --- profiles/features/prefix/package.mask | 1 - profiles/package.mask | 5 -- 8 files changed, 376 deletions(-)