diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2022-04-20 00:09:03 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-04-20 10:58:01 -0700 |
commit | cf260fb4ed6b5423b7d1906483e0195c445ff95e (patch) | |
tree | 8c18dad892867483370f05a379d65afe091c18c8 /meta-oe/recipes-navigation | |
parent | 1d7385bba58cdd0bf9647f357fe28eb5c120659d (diff) | |
download | meta-openembedded-cf260fb4ed6b5423b7d1906483e0195c445ff95e.tar.gz |
gpsd: Only copy the Python files if they are created
If one adds some configuration that disables the creation of the Python
files, e.g., minimal=yes, then the installation fails when it tries to
copy the non-existent files. Avoid this by checking for their existence
before copying them.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation')
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb | 6 |
1 files changed, 4 insertions, 2 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 c11d4c76d..22706f097 100644 --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb | |||
@@ -73,8 +73,10 @@ do_install:append() { | |||
73 | install -m 0644 ${S}/packaging/deb/etc_default_gpsd ${D}${sysconfdir}/default/gpsd.default | 73 | install -m 0644 ${S}/packaging/deb/etc_default_gpsd ${D}${sysconfdir}/default/gpsd.default |
74 | 74 | ||
75 | # Support for python | 75 | # Support for python |
76 | install -d ${D}${PYTHON_SITEPACKAGES_DIR}/gps | 76 | if [ -d ${D}${libdir}/gps ]; then |
77 | install -m 755 ${D}${libdir}/gps/*.py ${D}${PYTHON_SITEPACKAGES_DIR}/gps | 77 | install -d ${D}${PYTHON_SITEPACKAGES_DIR}/gps |
78 | install -m 755 ${D}${libdir}/gps/*.py ${D}${PYTHON_SITEPACKAGES_DIR}/gps | ||
79 | fi | ||
78 | } | 80 | } |
79 | 81 | ||
80 | PACKAGES =+ "libgps python3-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils" | 82 | PACKAGES =+ "libgps python3-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils" |