Index: head/emulators/gem5/Makefile =================================================================== --- head/emulators/gem5/Makefile (revision 404513) +++ head/emulators/gem5/Makefile (revision 404514) @@ -1,46 +1,50 @@ # Created by: Veniamin Gvozdikov # $FreeBSD$ PORTNAME= gem5 PORTVERSION= 0.0.${DATE} CATEGORIES= emulators MAINTAINER= vg@FreeBSD.org COMMENT= gem5 Simulator System -BROKEN= Uses removed MAP_NORESERVE -DEPRECATED= Broken for more than 6 months -EXPIRATION_DATE= 2015-12-30 - BUILD_DEPENDS= swig2.0:${PORTSDIR}/devel/swig20 \ scons:${PORTSDIR}/devel/scons +BROKEN_i386= does not build + DATE= 20140422 USE_GITHUB= yes GH_ACCOUNT= CTSRD-CHERI GH_TAGNAME= 99d65cc SWIG_BIN= swig2.0 USES= gmake .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 IGNORE= does not support FreeBSD versions < 10.0 .endif + +post-patch: + @${REINPLACE_CMD} -e 's|sys/termios.h|termios.h|' \ + ${WRKSRC}/src/base/vnc/vncserver.cc \ + ${WRKSRC}/src/dev/terminal.cc \ + ${WRKSRC}/util/term/term.c do-build: cd ${WRKSRC} && ${GMAKE} -C util/term cd ${WRKSRC} && ${SETENV} SWIG="${PREFIX}/bin/${SWIG_BIN}" scons \ build/ARM/gem5.opt do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} \ ${STAGEDIR}${PREFIX}/${PORTNAME}/ARM (cd ${WRKSRC} && ${COPYTREE_SHARE} configs \ ${STAGEDIR}${PREFIX}/${PORTNAME}) (cd ${WRKSRC} && ${INSTALL_PROGRAM} build/ARM/gem5.opt \ ${STAGEDIR}${PREFIX}/${PORTNAME}/ARM/gem5.opt) (cd ${WRKSRC} && ${INSTALL_PROGRAM} util/term/m5term \ ${STAGEDIR}${PREFIX}/bin/m5term) .include Index: head/emulators/gem5/files/patch-SConstruct =================================================================== --- head/emulators/gem5/files/patch-SConstruct (revision 404513) +++ head/emulators/gem5/files/patch-SConstruct (revision 404514) @@ -1,12 +1,28 @@ ---- SConstruct.orig 2015-04-21 17:46:54 UTC +--- SConstruct.orig 2015-04-21 15:32:43 UTC +++ SConstruct @@ -534,6 +534,9 @@ Export('MakeAction') main['LTO_CCFLAGS'] = [] main['LTO_LDFLAGS'] = [] +# Add pthread +main.Append(LIBS=['pthread']) + # According to the readme, tcmalloc works best if the compiler doesn't # assume that we're using the builtin malloc and friends. These flags # are compiler-specific, so we need to set them after we detect which +@@ -785,13 +788,8 @@ if main['GCC'] and compareVersions(gcc_v + swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS') + main.Append(SWIGFLAGS=swig_flags) + +-# Check for 'timeout' from GNU coreutils. If present, regressions will +-# be run with a time limit. We require version 8.13 since we rely on +-# support for the '--foreground' option. +-timeout_lines = readCommand(['timeout', '--version'], +- exception='').splitlines() +-# Get the first line and tokenize it +-timeout_version = timeout_lines[0].split() if timeout_lines else [] ++# It expects GNU timeout, FreeBSD one (on 11.x+) is not compatible ++timeout_version = [] + main['TIMEOUT'] = timeout_version and \ + compareVersions(timeout_version[-1], '8.13') >= 0 + Index: head/emulators/gem5/files/patch-src_SConscript =================================================================== --- head/emulators/gem5/files/patch-src_SConscript (nonexistent) +++ head/emulators/gem5/files/patch-src_SConscript (revision 404514) @@ -0,0 +1,11 @@ +--- src/SConscript.orig 2015-04-21 15:32:43 UTC ++++ src/SConscript +@@ -165,7 +165,7 @@ class Source(SourceFile): + '''specify the source file, and any guards''' + super(Source, self).__init__(source, **guards) + +- self.Werror = Werror ++ self.Werror = False + self.swig = swig + + class PySource(SourceFile): Property changes on: head/emulators/gem5/files/patch-src_SConscript ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/gem5/files/patch-src_mem_physical.cc =================================================================== --- head/emulators/gem5/files/patch-src_mem_physical.cc (nonexistent) +++ head/emulators/gem5/files/patch-src_mem_physical.cc (revision 404514) @@ -0,0 +1,14 @@ +--- src/mem/physical.cc.orig 2015-04-21 15:32:43 UTC ++++ src/mem/physical.cc +@@ -62,11 +62,9 @@ + * host. On OSX the MAP_NORESERVE flag does not exist, so simply make + * it 0. + */ +-#if defined(__APPLE__) + #ifndef MAP_NORESERVE + #define MAP_NORESERVE 0 + #endif +-#endif + + using namespace std; + Property changes on: head/emulators/gem5/files/patch-src_mem_physical.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property