astro/gpsd fails to build on CURRENT

Gleb Smirnoff glebius at FreeBSD.org
Sat May 11 21:38:33 UTC 2013


On Sat, May 11, 2013 at 10:05:22PM +0200, Rainer Hurling wrote:
R> On 11.05.2013 20:53 (UTC+2), Gleb Smirnoff wrote:
R> >   Rainer,
R> > 
R> > On Tue, May 07, 2013 at 06:19:16PM +0200, Rainer Hurling wrote:
R> > R> When I try to build astro/gpsd on 10.0-CURRENT it fails with the
R> > R> following messages (devel/scons should be up to date):
R> > R> 
R> > R> /usr/ports/astro/gpsd#make
R> > R> ===>  Found saved configuration for gpsd-3.9
R> > 
R> > ...
R> > 
R> > R> Checking for C header file sys/endian.h... yes
R> > R> Checking that xsltproc can make man pages... yes
R> > R> Altered configuration variables:
R> > R> mtk3301 = False (default True): MTK-3301 support
R> > R> nmea2000 = False (default True): NMEA2000/CAN support
R> > R> bluez = False (default True): BlueZ support for Bluetooth devices
R> > R> libQgpsmm = False (default True): build QT bindings
R> > R> chrpath = False (default True): use chrpath to edit library load paths
R> > R> mandir = man (default share/man): manual pages directory
R> > R> pkgconfig = libdata/pkgconfig (default lib/pkgconfig): pkgconfig file
R> > R> directory
R> > R> TypeError: Tried to lookup Dir '/usr/local/lib' as a File.:
R> > R>   File "/usr/ports/astro/gpsd/work/gpsd-3.9/SConstruct", line 955:
R> > R>     parse_flags=gpsdlibs + ncurseslibs + ['-lm'])
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Environment.py", line 258:
R> > R>     return MethodWrapper.__call__(self, target, source, *args, **kw)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Environment.py", line 222:
R> > R>     return self.method(*nargs, **kwargs)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Builder.py", line 631:
R> > R>     env = env.Override(env_kw)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Environment.py", line 635:
R> > R>     if merges: env.MergeFlags(merges)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Environment.py", line 810:
R> > R>     args = self.ParseFlags(args)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Environment.py", line 796:
R> > R>     do_parse(arg)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Environment.py", line 670:
R> > R>     for t in arg: do_parse(t)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Environment.py", line 726:
R> > R>     dict['LIBS'].append(self.fs.File(arg))
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Node/FS.py", line 1339:
R> > R>     return self._lookup(name, directory, File, create)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Node/FS.py", line 1318:
R> > R>     return root._lookup_abs(p, fsclass, create)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Node/FS.py", line 2223:
R> > R>     result.must_be_same(klass)
R> > R>   File "/usr/local/lib/scons-2.1.0/SCons/Node/FS.py", line 626:
R> > R>     (self.__class__.__name__, self.path, klass.__name__))
R> > R> *** [do-build] Error code 2
R> > R> Stop in /usr/ports/astro/gpsd.
R> > R> *** [build] Error code 1
R> > R> Stop in /usr/ports/astro/gpsd.
R> 
R> Gleb,
R> 
R> thanks for answering.
R> 
R> > 
R> > Sorry, I can't reproduce that on a clean 10.0-CURRENT amd64.
R> > 
R> For me this happens on three boxes, all 10.0-CURRENT amd64 with more
R> than 1.500 ports installed (most because of their use for scientific
R> workplaces, some multimedia ones).
R> 
R> I think Christoph is right here in suspecting scons interaction with
R> ncurses (wrong parsing). If I patch /usr/local/bin/ncurses5-config in
R> the way, Christoph suggested, all went fine. The attached zip contains
R> two log files, one with the messages of the unpatched build, one with
R> the patched one.
R> 
R> My systems are far away from 'clean' systems, because they growed over
R> the years. On the other hand, even if I try to build astro/gpsd without
R> /etc/make.conf, it fails. I have no clue, where to look next.

May be maintainer of scons has idea. I've added him to Cc.

-- 
Totus tuus, Glebius.


More information about the freebsd-ports mailing list