Bug 2353508

Summary: nano syntax highlighting no longer works by default
Product: [Fedora] Fedora Reporter: Vladislav Grigoryev <vg.aetera>
Component: nanoAssignee: Lukáš Zaoral <lzaoral>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: dwmw2, kdudka, lzaoral, svashisht, vg.aetera
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nano-8.3-3.fc43 nano-8.3-3.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-20 16:17:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vladislav Grigoryev 2025-03-20 06:10:31 UTC
nano syntax highlighting no longer works by default in F42.

Reproducible: Always

Steps to Reproduce:
A simple test:
```
nano /etc/nanorc
```
Actual Results:  
Syntax highlighting is disabled by default.

Expected Results:  
Syntax highlighting should be enabled by default.

The include path in the sample nanorc no longer has quotes:
https://git.savannah.gnu.org/cgit/nano.git/tree/doc/sample.nanorc.in#n252

The sed patch fails and should be fixed here:
https://src.fedoraproject.org/rpms/nano/blob/rawhide/f/nano.spec#_84

Comment 1 Kamil Dudka 2025-03-20 07:07:55 UTC
This is caused by the following upstream change: https://git.savannah.gnu.org/cgit/nano.git/commit/?id=ebddb49041c718e569c80fba282343650307c202

The quotes need to be removed in the corresponding regular expression: https://src.fedoraproject.org/rpms/nano/blob/31a86c372c17750c4a05cbef8bde31c8ceae0033/f/nano.spec#_84

Comment 2 Fedora Update System 2025-03-20 09:12:29 UTC
FEDORA-2025-bc78ab60d5 (nano-8.3-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bc78ab60d5

Comment 3 Fedora Update System 2025-03-20 09:15:10 UTC
FEDORA-2025-74000de84f (nano-8.3-3.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-74000de84f

Comment 4 Fedora Update System 2025-03-20 16:17:55 UTC
FEDORA-2025-74000de84f (nano-8.3-3.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2025-03-21 03:15:08 UTC
FEDORA-2025-bc78ab60d5 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-bc78ab60d5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-bc78ab60d5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-03-22 02:39:56 UTC
FEDORA-2025-bc78ab60d5 (nano-8.3-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.