FreeBSD Bugzilla – Attachment 207161 Details for
Bug 226401
devel/jsoncpp scons build system claimed obsolete. moreover, won't build if system default python is 3.*
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix jsoncpp build with python 3
jsoncpp.diff (text/plain), 2.22 KB, created by
Renato Botelho
on 2019-09-03 18:32:47 UTC
(
hide
)
Description:
Fix jsoncpp build with python 3
Filename:
MIME Type:
Creator:
Renato Botelho
Created:
2019-09-03 18:32:47 UTC
Size:
2.22 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 510784) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= jsoncpp > PORTVERSION= 1.8.1 >-PORTREVISION= 7 >+PORTREVISION= 8 > CATEGORIES= devel > > MAINTAINER= yuri@FreeBSD.org >@@ -36,6 +36,10 @@ > .endif > .endif > >+post-patch: >+ @${REINPLACE_CMD} -E '/print / s/(print )(.*)/\1\(\2\)/' \ >+ ${WRKSRC}/SConstruct >+ > do-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp > (cd ${WRKSRC}/include/ && ${COPYTREE_SHARE} json/ ${STAGEDIR}${PREFIX}/include/jsoncpp/) >Index: files/patch-SConstruct >=================================================================== >--- files/patch-SConstruct (revision 510784) >+++ files/patch-SConstruct (working copy) >@@ -1,4 +1,4 @@ >---- SConstruct.orig 2016-05-09 23:15:49 UTC >+--- SConstruct.orig 2017-06-26 05:01:22 UTC > +++ SConstruct > @@ -26,7 +26,7 @@ try: > if platform == 'linux-gcc': >@@ -26,7 +26,7 @@ > else: > print "UNSUPPORTED PLATFORM." > env.Exit(1) >-@@ -147,6 +148,11 @@ env['JSONCPP_VERSION'] = JSONCPP_VERSION >+@@ -147,12 +148,17 @@ env['JSONCPP_VERSION'] = JSONCPP_VERSION > env['BUILD_DIR'] = env.Dir(build_dir) > env['ROOTBUILD_DIR'] = env.Dir(rootbuild_dir) > env['DIST_DIR'] = DIST_DIR >@@ -38,6 +38,13 @@ > if 'TarGz' in env['BUILDERS']: > class SrcDistAdder: > def __init__( self, env ): >+ self.env = env >+ def __call__( self, *args, **kw ): >+- apply( self.env.SrcDist, (self.env['SRCDIST_TARGET'],) + args, kw ) >++ self.env.SrcDist(*(self.env['SRCDIST_TARGET'],) + args, **kw ) >+ env['SRCDIST_BUILDER'] = env.TarGz >+ else: # If tarfile module is missing >+ class SrcDistAdder: > @@ -164,11 +170,11 @@ env['SRCDIST_ADD'] = SrcDistAdder( env ) > env['SRCDIST_TARGET'] = os.path.join( DIST_DIR, 'jsoncpp-src-%s.tar.gz' % env['JSONCPP_VERSION'] ) > >@@ -52,7 +59,7 @@ > exe = env.Program( target=target_name, > source=target_sources ) > env['SRCDIST_ADD']( source=[target_sources] ) >-@@ -187,14 +193,14 @@ def buildUnitTests( env, target_sources, >+@@ -187,14 +193,14 @@ def buildUnitTests( env, target_sources, target_name ) > env.AlwaysBuild( check_alias_target ) > > def buildLibrary( env, target_sources, target_name ):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 226401
:
191258
|
191711
|
196322
| 207161