[Bug 226401] devel/jsoncpp scons build system claimed obsolete. moreover, won't build if system default python is 3.*
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Mar 6 19:58:54 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226401
Bug ID: 226401
Summary: devel/jsoncpp scons build system claimed obsolete.
moreover, won't build if system default python is 3.*
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: yuri at freebsd.org
Reporter: dan at obluda.cz
Assignee: yuri at freebsd.org
Flags: maintainer-feedback?(yuri at freebsd.org)
Created attachment 191258
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=191258&action=edit
scons->cmake patch for head/devel/jsoncpp/Makefile 462353 2018-02-19 22:25:14Z
yuri
== Issue ==
1. From README.md: "The SCons-based build system is deprecated. Please use
CMake"
2. From SConstruct: "shared library support is buggy: it assumes that a static
and dynamic library can be build from the same object files. This is not true
on many platforms"
3. With python 3.* claimed system default it doesn't build because of several
syntax errors in SConstruct and undefined functions called
== Solution (all three issues) ==
Follow README.md and use CMake instead of scons. It require simple change in
Makefile only, see attachment. Moreover, devel/jsoncpp/files/patch-SConstruct
and devel/jsoncpp/files/patch-src_lib__json_sconscript become obsolete and can
be removed.
Brief summary of Makefile changes:
1: scons replaced by cmake:noninja in USES
2: scons related args PLATFORM and MAKE_ARGS replaced by CMAKE_ARGS
3: paths in "do_install" modified to follow CMAKE flavor of build tree
4: "do-test" modified to follow CMAKE flavor of test
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list