summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-03-12 07:54:30 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-03-12 07:54:30 +0000
commit33d725125da2e450a92655a76cbb591f100d2516 (patch)
treec831297c2e40bc4f4af394636b4e46ff42e06c7e
parentupdate to 2.30 (diff)
emulators/gem5: Unbreak by fixing the python-config executable name
PR: 226545 Submitted by: Neel Chauhan <neel@neelc.org> (maintainer)
-rw-r--r--emulators/gem5/Makefile1
-rw-r--r--emulators/gem5/files/patch-SConstruct19
2 files changed, 15 insertions, 5 deletions
diff --git a/emulators/gem5/Makefile b/emulators/gem5/Makefile
index bbffb6319cc0..37a78b1d9861 100644
--- a/emulators/gem5/Makefile
+++ b/emulators/gem5/Makefile
@@ -11,7 +11,6 @@ COMMENT= gem5 Simulator System
BUILD_DEPENDS= swig3.0:devel/swig30 \
scons:devel/scons
-BROKEN= fails to build
BROKEN_armv6= fails to link: undefined reference to HDLcd::BUS_OPTIONS_RESETV
BROKEN_armv7= fails to link: undefined reference to HDLcd::BUS_OPTIONS_RESETV
BROKEN_i386= does not build
diff --git a/emulators/gem5/files/patch-SConstruct b/emulators/gem5/files/patch-SConstruct
index 5f5d89fd2921..7fe253ebda09 100644
--- a/emulators/gem5/files/patch-SConstruct
+++ b/emulators/gem5/files/patch-SConstruct
@@ -1,6 +1,6 @@
---- SConstruct.orig 2015-04-21 15:32:43 UTC
-+++ SConstruct
-@@ -534,6 +534,9 @@ Export('MakeAction')
+--- SConstruct.orig 2015-04-21 11:32:43.000000000 -0400
++++ SConstruct 2018-03-11 21:17:31.106873000 -0400
+@@ -534,6 +534,9 @@
main['LTO_CCFLAGS'] = []
main['LTO_LDFLAGS'] = []
@@ -10,7 +10,7 @@
# 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
+@@ -785,13 +788,8 @@
swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
main.Append(SWIGFLAGS=swig_flags)
@@ -26,3 +26,14 @@
main['TIMEOUT'] = timeout_version and \
compareVersions(timeout_version[-1], '8.13') >= 0
+@@ -922,8 +920,8 @@
+ # version of python, see above for instructions on how to invoke
+ # scons with the appropriate PATH set.
+ #
+- # First we check if python2-config exists, else we use python-config
+- python_config = readCommand(['which', 'python2-config'],
++ # First we check if python2.7-config exists, else we use python-config
++ python_config = readCommand(['which', 'python2.7-config'],
+ exception='').strip()
+ if not os.path.exists(python_config):
+ python_config = readCommand(['which', 'python-config'],