FS#50252 - [nim] Location of nimbase.h /usr/lib/nim/ -> /usr/include/

Attached to Project: Community Packages
Opened by Mike Lenzen (lenzenmi) - Thursday, 04 August 2016, 04:18 GMT
Last edited by Alexander F. Rødseth (xyproto) - Sunday, 07 August 2016, 12:57 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

nimbase.h is currently installed to /usr/lib/nim/nimbase.h

This causes running any nim generated compile scripts to fail with an error something like this:

stdlib_system.c:6:21: fatal error: nimbase.h: No such file or directory

The quick workaround is to run the compile script with an environment variable, like so.

C_INCLUDE_PATH=/usr/lib sh compile_some-nim-script.sh

If you either installed nimbase.h to /usr/include/nimbase.h or created a symlink from /usr/include/nimbase.h -> /usr/lib/nim/nimbase.h this workaround won't be required, and I believe it falls inline with standard packaging practices in arch.


Additional info:
Name : nim
Version : 0.14.2-1


Steps to reproduce:
generate a build script for any nim software and try to run it.

nim c --genscript --compileonly somefile.nim

mv compile_somefile.sh nimcache
cd nimcache
sh compile_somefile.sh
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Sunday, 07 August 2016, 12:57 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Sunday, 07 August 2016, 12:57 GMT
Thanks for reporting. The updated package will appear in [community] shortly.

Loading...