Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849095 - app-admin/abrt: Can't find /etc/system-release
Summary: app-admin/abrt: Can't find /etc/system-release
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pacho Ramos
URL: https://github.com/abrt/abrt/issues/589
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-01 22:25 UTC by Randall
Modified: 2022-11-01 04:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randall 2022-06-01 22:25:28 UTC
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
Comment 1 Randall 2022-06-01 22:26:18 UTC
I fixed this by symlinking, /etc/gentoo-release to /etc/system-release
Comment 2 Randall 2022-06-01 22:27:31 UTC
If this was the correct fix, then I can send a PR.
Comment 3 Pacho Ramos gentoo-dev 2022-06-07 15:00:19 UTC
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
Comment 4 Randall 2022-06-07 15:05:05 UTC
Hey Pacho. Hope you are well. Thanks for getting to this. That sounds fair.
Comment 5 Randall 2022-06-07 15:22:46 UTC
These might be of reference, Pacho.

https://github.com/abrt/abrt/issues/589
https://github.com/abrt/libreport/issues/147
Comment 6 Pacho Ramos gentoo-dev 2022-06-07 15:44:17 UTC
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 :/
Comment 7 Pacho Ramos gentoo-dev 2022-07-18 10:28:49 UTC
Or maybe we could treeclean them as they are hard to adapt to non Fedora systems :/
Comment 8 Randall 2022-08-01 16:18:22 UTC
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.
Comment 9 Larry the Git Cow gentoo-dev 2022-11-01 04:48:25 UTC
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(-)