Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 Doug Newgard (Scimmia) - Sunday, 21 October 2018, 14:43 GMT
Task Type Bug Report
Category Packages: Testing
Status Assigned
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
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

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

Loading...