nikhilm/node-taglib — Issue #9: incorrect link when building master
Author: masterkain
Created: 2011-10-16 22:16:56+00:00
State: open

if not os.path.exists('lib/taglib_binding.node'):
os.symlink( '../build/Release/taglib_binding.node', 'lib/taglib_binding.node')

When building the latest master I do not have build/Release but build/default, so the symbolic link will have a missing target and the app won't start.

Error: Cannot find module '/mypath/node_modules/taglib/lib/taglib_binding'

I edited the initial path name above.

[ruby-1.9.3-preview1] 00:08 ~/mypath/node_modules/taglib/lib (tests)$ ls -lha
total 16
drwxr-xr-x 4 kain staff 136B 17 Ott 00:07 .
drwxr-xr-x 14 kain staff 476B 17 Ott 00:07 ..
-rw-r--r-- 1 kain staff 317B 17 Ott 00:07 taglib.js
lrwxr-xr-x 1 kain staff 36B 17 Ott 00:07 taglib_binding.node -> ../build/Release/taglib_binding.node

[ruby-1.9.3-preview1] 00:16 ~/mypath/node_modules/taglib/build/default (tests)$ ls -lha
total 192
drwxr-xr-x 4 kain staff 136B 17 Ott 00:07 .
drwxr-xr-x 6 kain staff 204B 17 Ott 00:07 ..
drwxr-xr-x 5 kain staff 170B 17 Ott 00:07 src
-rwxr-xr-x 1 kain staff 92K 17 Ott 00:07 taglib_binding.node