Re: Bug#677502: unblock: lv2file/0.83-1
>> [ 2/26] swig: bindings/lilv.i -> build/bindings/lilv.swigwrap_6.cxx build/bindings/lilv.py
>> :6: Error: Unable to find 'lilv'
Hi again,
I realised the :6: refers to the command-line parameter "-llilv" to
swig2.0. Should that really be there? There is no file with that name,
which is why swig2.0 would accidentally fopen() the directory instead.
Please see my attached patch for lilv.
I removed the "-llilv", also enabled "-ldl" for GNU/*BSD systems, and
now it builds okay on kFreeBSD (and I expect this will help towards
building on Hurd too).
This makes the swig2.0 fix unnecessary / wishlist.
Thanks!
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
From: Steven Chamberlain <steven@pyro.eu.org>
Subject: Fix build on GNU/kFreeBSD
* Still need to link with -ldl, unlike regular BSD
* Remove extraneous -llilv, which swig2.0 on BSD-like systems would
fopen() even though it is a directory
--- lilv-0.14.2~dfsg0.orig/wscript 2012-04-19 21:17:30.000000000 +0100
+++ lilv-0.14.2~dfsg0/wscript 2012-06-14 18:21:27.678514222 +0100
@@ -198,7 +198,7 @@
if bld.env['MSVC_COMPILER']:
libflags = []
defines = ['snprintf=_snprintf']
- elif sys.platform.find('bsd') > 0:
+ elif sys.platform.find('bsd') > 0 and sys.platform.find('gnu') < 0:
lib = []
# Shared Library
@@ -324,13 +324,12 @@
source = 'bindings/lilv.i',
target = 'bindings/_lilv',
includes = ['..'],
- swig_flags = '-c++ -python -Wall -I.. -llilv -features autodoc=1',
+ swig_flags = '-c++ -python -Wall -I.. -features autodoc=1',
use = 'liblilv')
autowaf.use_lib(bld, obj, 'LILV')
bld.install_files('${PYTHONDIR}', 'bindings/lilv.py')
- bld.add_post_fun(autowaf.run_ldconfig)
if bld.env['DOCS']:
bld.add_post_fun(fix_docs)
Reply to: