diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-09-30 19:06:56 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-09-30 11:04:32 -0700 |
commit | 037f38cc68aabb9e36e92862af258f46874e0c13 (patch) | |
tree | 9601ee3b7463a5c7230c1a9526ae0a3dfe9500a0 /meta-oe/recipes-navigation/gpsd | |
parent | c9121e1ae497088687ccc386a81b97b503a51db1 (diff) | |
download | meta-openembedded-037f38cc68aabb9e36e92862af258f46874e0c13.tar.gz |
gpsd: inherit pkgconfig
Newer oe-core doesn't pull many default dependencies anymore:
https://lists.openembedded.org/g/openembedded-core/message/156185
add explicit dependency on pkgconfig through pkgconfig.bbclass as
we're using it here.
Fixes:
| Checking pkg-config for dbus-1... no
| Turning off dbus-export support, library not found.
| Checking pkg-config for bluez... no
| Turning off Bluetooth support, library not found.
...
| ERROR: /usr/bin/ncurses5-config should not be used, use an alternative such as pkg-config
| OSError: 'ncurses5-config --libs --cflags' exited 1:
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/gpsd-3.23/SConstruct", line 63:
| SConscript('SConscript',
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Script/SConscript.py", line 660:
| return method(*args, **kw)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Script/SConscript.py", line 597:
| return _SConscript(self.fs, *files, **subst_kw)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Script/SConscript.py", line 285:
| exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/gpsd-3.23/gpsd-3.23/SConscript", line 1881:
| cgps = env.Program('clients/cgps', ['clients/cgps.c'],
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 238:
| return super().__call__(target, source, *args, **kw)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Util.py", line 748:
| return self.method(*nargs, **kwargs)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Builder.py", line 653:
| env = env.Override(env_kw)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 622:
| env.MergeFlags(merges)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 832:
| args = self.ParseFlags(args)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 815:
| do_parse(arg)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 662:
| for t in arg: do_parse(t)
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 667:
| arg = self.backtick(arg[1:])
| File "/jenkins/mjansa/build/ose/honister/BUILD/work/qemux86-webos-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 579:
| raise OSError("'%s' exited %d" % (command, status))
| ERROR: scons build execution failed.
Or on different host it shows better error message:
| Checking pkg-config for dbus-1... (cached) yes
| /bin/sh: 1: pkg-config: not found
| OSError: 'PKG_CONFIG_SYSROOT_DIR="/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/recipe-sysroot" pkg-config --cflags --libs dbus-1' exited 127:
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/gpsd-3.23/SConstruct", line 63:
| SConscript('SConscript',
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Script/SConscript.py", line 660:
| return method(*args, **kw)
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Script/SConscript.py", line 597:
| return _SConscript(self.fs, *files, **subst_kw)
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Script/SConscript.py", line 285:
| exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/gpsd-3.23/gpsd-3.23/SConscript", line 1107:
| config.env.MergeFlags(dbusflags)
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 832:
| args = self.ParseFlags(args)
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 815:
| do_parse(arg)
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 662:
| for t in arg: do_parse(t)
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 667:
| arg = self.backtick(arg[1:])
| File "/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/gpsd/3.23-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/SCons/Environment.py", line 579:
| raise OSError("'%s' exited %d" % (command, status))
| ERROR: scons build execution failed.
Not sure why this one doesn't show up on CI, I guess some SCons magic.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation/gpsd')
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb index eb3dc30e4..4740e0c98 100644 --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb | |||
@@ -10,7 +10,7 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \ | |||
10 | " | 10 | " |
11 | SRC_URI[sha256sum] = "0b991ce9a46538c4ea450f7a8ee428ff44fb4f8d665fddf2ffe40fe0ae9a6c09" | 11 | SRC_URI[sha256sum] = "0b991ce9a46538c4ea450f7a8ee428ff44fb4f8d665fddf2ffe40fe0ae9a6c09" |
12 | 12 | ||
13 | inherit scons update-rc.d python3-dir python3native systemd update-alternatives | 13 | inherit scons update-rc.d python3-dir python3native systemd update-alternatives pkgconfig |
14 | 14 | ||
15 | INITSCRIPT_PACKAGES = "gpsd-conf" | 15 | INITSCRIPT_PACKAGES = "gpsd-conf" |
16 | INITSCRIPT_NAME = "gpsd" | 16 | INITSCRIPT_NAME = "gpsd" |