On Tue, August 24, 2021 23:33, Omar Polo wrote:
> Hello ports,
>
> motivated by the fact that godot 4.0 will require scons 3+, I tried to
> update devel/scons to a newer release. The attached patch updates to
> 4.2.0 and switches from python2 to python3. While it seems to work,
> there are some failure in ports:
>
>> find /usr/ports/ -type f -name Makefile -exec grep devel/scons {} +
[...]
>
> - graphics/mapnik
> breaks because of python2. Easy to fix, but then fails at
> linking:
>
> ----------------8<----------------
> ld: error: relocation R_X86_64_PC32 cannot be used against symbol typeinfo for
> boost::wrapexcept<boost::bad_function_call>; recompile with -fPIC
>>>> defined in src/expression_grammar.os
>>>> referenced by expression_grammar.cpp
>>>> src/expression_grammar.os:(void
>>>> boost::throw_exception<boost::bad_function_call>(boost::bad_function_call
>>>> const&))
>
> ld: error: relocation R_X86_64_PC32 cannot be used against symbol vtable for
> boost::exception_detail::clone_base; recompile with -fPIC
>>>> defined in src/expression_grammar.os
>>>> referenced by expression_grammar.cpp
>>>>
>>>> src/expression_grammar.os:(boost::wrapexcept<boost::bad_function_call>::wrapexcept(boost::bad_function_call
>>>> const&))
>
> ...
> ---------------->8----------------
>
> it shouldn't be hard to fix, I haven't really investigated it
> because I was working on the other ports
>
> Attaching wip diff
Hi,
Adding -fPIC fixes linking:
-WARNING_CXXFLAGS="-I${X11BASE}/include/freetype2" \
+WARNING_CXXFLAGS="-I${X11BASE}/include/freetype2 -fPIC" \
>
> - misc/gpsd
> breaks because of python2. Like graphics/mapnik, it's easy to
> fix but fails at linking for the same reason.
>
> Attaching wip diff
>
>
> Regarding the patch itself:
>
> - the installation path changed, hence the enormous PLIST diff
> - while here HOMEPAGE switched to HTTPS
> - the installed files doesn't seem like they need MODPY_ADJ_FILES, but
> I'm probably wrong
> - bcallah@ asked to be dropped as MAINTAINER on irc
>
> Another way would be to update to scons 3.something and keep python2.
> It would be easier indeed, and I've been doing so for a while, but I
> thought to bite the bullet and give a full update a chance.
>
> Comments/Thoughts?
>
> Cheers,
>
> Omar Polo
>
>