nanorc.sample is generated wrong + FTBFS
Description:
build() function generates nanorc.sample with find *.nanorc -type f | sed "s@${srcdir}\/nanorc@include \/usr\/share\/$pkgname@" > nanorc.sample
command. find
in this case returns relative path, which is ${lang}.nanorc
, so seding is wrong here. the command should be find *.nanorc -type f | sed "s@^@include /usr/share/${pkgname}/@" > nanorc.sample
instead, so the lines are include /usr/share/nano-syntax-highlighting/${lang}.nanorc
as it should be
Additional info:
- package version(s):
2025.07.01.r0.g256995b-1
- config and/or log files:
- link to upstream bug report, if any:
Steps to reproduce:
- check contents of /usr/share/nano-syntax-highlighting/nanorc.sample
- ...or try to use it for nano and get errors while running it
Edited by Toolybird