Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910261 - catalyst-3.0.22-r2, no catalyst.conf
Summary: catalyst-3.0.22-r2, no catalyst.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal blocker (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-12 13:43 UTC by Damien Moody (audiodef)
Modified: 2023-07-12 16:17 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 Damien Moody (audiodef) 2023-07-12 13:43:49 UTC
catalyst-3.0.22-r2 fails to create a /etc/catalyst/*, resulting in catalyst failing to run. Additionally, if upgrading from a previous version, /etc/catalyst/* no longer exists. /etc/catalyst/* should be preserved to prevent users from losing config files. 

Reproducible: Always

Steps to Reproduce:
1. Have working catalyst-3.0.22-r1 or earlier
2. Upgrade to catalyst-3.0.22-r2
3. Run catalyst stage1.*
Actual Results:  
12 Jul 2023 06:35:29 EDT: NOTICE  : Loading configuration file: /etc/catalyst/catalyst.conf
12 Jul 2023 06:35:29 EDT: ERROR   : CatalystError: Could not open file /etc/catalyst/catalyst.conf
Traceback (most recent call last):                                                            
  File "/usr/lib/python3.11/site-packages/catalyst/config.py", line 31, in parse_file
    with open(filename, "r") as myf:                                                          
         ^^^^^^^^^^^^^^^^^^^                                                                  
FileNotFoundError: [Errno 2] No such file or directory: '/etc/catalyst/catalyst.conf' 

Expected Results:  
Catalyst finds catalyst.conf.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-12 13:56:39 UTC
I don't see how you'd lose your existing one with CONFIG_PROTECT.

Anyway, probably the PEP517 conversion.
Comment 2 Ben Kohler gentoo-dev 2023-07-12 16:12:22 UTC
Sorry about that, will fix shortly.  We lost man pages too.

But I believe you'd only lose your existing copies in /etc if they were unmodified... so no crucial custom config was lost, but it does make catalyst unable to run.
Comment 3 Larry the Git Cow gentoo-dev 2023-07-12 16:17:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cb5483f0ef5ea115748f8db5545a77aca4fcdcf

commit 8cb5483f0ef5ea115748f8db5545a77aca4fcdcf
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2023-07-12 16:12:50 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2023-07-12 16:16:54 +0000

    dev-util/catalyst: restore missing configs & man from PEP517 conversion
    
    Closes: https://bugs.gentoo.org/910261
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../{catalyst-3.0.22-r2.ebuild => catalyst-3.0.22-r3.ebuild}      | 8 ++++++++
 dev-util/catalyst/catalyst-9999.ebuild                            | 4 ++++
 2 files changed, 12 insertions(+)