FS#60490 - [nim] cannot compile with 0.19.0 due to config file search path changes

Attached to Project: Community Packages
Opened by nvill (nvill) - Friday, 19 October 2018, 09:42 GMT
Last edited by freswa (frederik) - Sunday, 27 September 2020, 11:56 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Nim config file search paths changed in 0.19.0 (https://nim-lang.org/docs/nimc.html#compiler-usage-configuration-files). The *.cfg files in /etc needs a /etc/nim/ subdir or the compiler won't find lib files.

Additional info:
* nim 0.19.0-1


Steps to reproduce:
Install and compile any Nim source containing imports.
This task depends upon

Closed by  freswa (frederik)
Sunday, 27 September 2020, 11:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  nim 1.0.2-1
Comment by nvill (nvill) - Friday, 19 October 2018, 09:44 GMT
Btw, python is no longer a requirement for building nim.
Comment by nvill (nvill) - Monday, 03 December 2018, 08:36 GMT
FWIW, here's a diff for a working version

--- PKGBUILD 2018-12-03 09:34:30.527421009 +0100
+++ PKGBUILD_new 2018-12-03 09:25:43.942529877 +0100
@@ -12,7 +12,7 @@
url='https://nim-lang.org/'
arch=('x86_64')
license=('MIT')
-depends=('python' 'bash')
+depends=('bash')
options=('!emptydirs')
backup=(
etc/nim.cfg
@@ -76,7 +76,7 @@
# Fix  FS#48118 , related to the doc2 command
ln -s /usr/share/nim/doc "${pkgdir}/usr/lib/nim/doc"

- install -Dm 644 config/* -t "${pkgdir}/etc"
+ install -Dm 644 config/* -t "${pkgdir}/etc/nim"
install -Dm 755 bin/* tools/nimgrep nimsuggest/nimsuggest -t "${pkgdir}/usr/bin"

# Fix  FS#50252 , unusual placement of header files
Comment by anonymous (Austaras) - Friday, 28 June 2019, 08:11 GMT
Hey it's now 2019.06 why this hasn't been fixed yet? What's holding it back?
Comment by loqs (loqs) - Saturday, 12 September 2020, 17:57 GMT

Loading...