From 9d5804611ee107dad6076c73d64b17747d000833 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 26 Apr 2023 12:41:16 -0500 Subject: gpsd_settime changed to use GNU date --- recipes-navigation/gpsd/gpsd/gpsd_settime.sh | 6 +++++- recipes-navigation/gpsd/gpsd_3.20.bb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes-navigation/gpsd/gpsd/gpsd_settime.sh b/recipes-navigation/gpsd/gpsd/gpsd_settime.sh index e8e8f26..7078de9 100755 --- a/recipes-navigation/gpsd/gpsd/gpsd_settime.sh +++ b/recipes-navigation/gpsd/gpsd/gpsd_settime.sh @@ -76,7 +76,11 @@ if (( ${#ISO8601} > 18 )) ; then s=${BASH_REMATCH[6]} fi if ((${#Y} == 4 )) && ((${#M} > 0)) && ((${#D} > 0)) && ((${#h} > 0)) && ((${#m} > 0)) && ((${#s} > 0)) ; then - date -u "${Y}.${M}.${D}-${h}:${m}:${s}" >/dev/null + if [[ $(readlink -f /bin/date) =~ busybox ]] ; then + date -u "${Y}.${M}.${D}-${h}:${m}:${s}" >/dev/null + else + date -u "${M}${D}${h}${m}${Y}.${s}" >/dev/null + fi else LG -p user.err "gpspipe output is bad or missing" exit 1 diff --git a/recipes-navigation/gpsd/gpsd_3.20.bb b/recipes-navigation/gpsd/gpsd_3.20.bb index cc8bd27..efab5c4 100644 --- a/recipes-navigation/gpsd/gpsd_3.20.bb +++ b/recipes-navigation/gpsd/gpsd_3.20.bb @@ -4,7 +4,7 @@ LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=01764c35ae34d9521944bb6ab312af53" DEPENDS = "dbus dbus-glib ncurses python3 libusb1 chrpath-replacement-native pps-tools" PROVIDES = "virtual/gpsd" -PR="m10" +PR="m11" EXTRANATIVEPATH += "chrpath-native" -- cgit v1.2.3