summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-08-16 20:30:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-18 11:44:55 +0100
commitb230ee4eaf94cd583106b785a344d5fa75eda3ac (patch)
tree457740dad516ff60c39f172751ac7356fc73acb8
parenta8b421598577243c50d555dae3c6eaa7646df996 (diff)
downloadpoky-b230ee4eaf94cd583106b785a344d5fa75eda3ac.tar.gz
buildgalculator: Patch to fix build with -fno-common
We need to apply a patch to galculator for it to build with gcc-10+ Remove double definition of 'prefs' variable (From OE-Core rev: 93a62e6b35d1a6ed3c678f8e27508dd0cdbdbbe4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/sdk/cases/buildgalculator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildgalculator.py b/meta/lib/oeqa/sdk/cases/buildgalculator.py
index bbaa5c55c9..1121ed20ef 100644
--- a/meta/lib/oeqa/sdk/cases/buildgalculator.py
+++ b/meta/lib/oeqa/sdk/cases/buildgalculator.py
@@ -35,7 +35,7 @@ class GalculatorTest(OESDKTestCase):
35 self.assertTrue(os.path.isdir(dirs["source"])) 35 self.assertTrue(os.path.isdir(dirs["source"]))
36 os.makedirs(dirs["build"]) 36 os.makedirs(dirs["build"])
37 37
38 self._run("cd {source} && autoreconf -i -f -I $OECORE_TARGET_SYSROOT/usr/share/aclocal -I m4".format(**dirs)) 38 self._run("cd {source} && sed -i -e '/s_preferences.*prefs;/d' src/main.c && autoreconf -i -f -I $OECORE_TARGET_SYSROOT/usr/share/aclocal -I m4".format(**dirs))
39 self._run("cd {build} && {source}/configure $CONFIGURE_FLAGS".format(**dirs)) 39 self._run("cd {build} && {source}/configure $CONFIGURE_FLAGS".format(**dirs))
40 self._run("cd {build} && make -j".format(**dirs)) 40 self._run("cd {build} && make -j".format(**dirs))
41 self._run("cd {build} && make install DESTDIR={install}".format(**dirs)) 41 self._run("cd {build} && make install DESTDIR={install}".format(**dirs))