All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][wrynose][PATCH 0/2] gpsd: backport upgrade to 3.28
@ 2026-11-30  8:28 Krzysztof Kaszubski
  2026-11-30  8:28 ` [meta-oe][wrynose][PATCH 1/2] gpsd: upgrade 3.27.5 -> 3.28 Krzysztof Kaszubski
  2026-11-30  8:28 ` [meta-oe][wrynose][PATCH 2/2] gpsd: Fix upstream version check Krzysztof Kaszubski
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kaszubski @ 2026-11-30  8:28 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Krzysztof Kaszubski

Please backport the gpsd upgrade to 3.28 along with the follow-up upstream
version check fix to the wrynose branch.

The gpsd 3.28 release includes upstream commit 8f7a59f7
("include/gpsd.h: revert shmTime Sec fields back to time_t"),
which restores the 96-byte struct shmTime layout on 32-bit architectures
built with -D_TIME_BITS=64 and fixes SHM compatibility with chrony.

Commits included:
• 2b91faf222 gpsd: upgrade 3.27.5 -> 3.28
• ceb3fd7abf gpsd: Fix upstream version check

Thanks,
Krzysztof

--

Khem Raj (1):
  gpsd: Fix upstream version check

Krzysztof Kaszubski (1):
  gpsd: upgrade 3.27.5 -> 3.28

 .../gpsd/gpsd/CVE-2026-58459-1.patch          | 48 ---------------
 .../gpsd/gpsd/CVE-2026-58459-2.patch          | 46 ---------------
 .../gpsd/gpsd/CVE-2026-58459-3.patch          | 58 -------------------
 .../gpsd/gpsd/CVE-2026-60122.patch            | 45 --------------
 .../gpsd/{gpsd_3.27.5.bb => gpsd_3.28.bb}     |  9 ++-
 5 files changed, 4 insertions(+), 202 deletions(-)
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-1.patch
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-2.patch
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-3.patch
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-60122.patch
 rename meta-oe/recipes-navigation/gpsd/{gpsd_3.27.5.bb => gpsd_3.28.bb} (95%)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [meta-oe][wrynose][PATCH 1/2] gpsd: upgrade 3.27.5 -> 3.28
  2026-11-30  8:28 [meta-oe][wrynose][PATCH 0/2] gpsd: backport upgrade to 3.28 Krzysztof Kaszubski
@ 2026-11-30  8:28 ` Krzysztof Kaszubski
  2026-11-30  8:28 ` [meta-oe][wrynose][PATCH 2/2] gpsd: Fix upstream version check Krzysztof Kaszubski
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kaszubski @ 2026-11-30  8:28 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Krzysztof Kaszubski, Khem Raj

Upgrade gpsd to 3.28. Notably, this release includes upstream commit
8f7a59f7 ("include/gpsd.h: revert shmTime Sec fields back to time_t"),
which restores the 96-byte struct shmTime layout on 32-bit architectures
built with -D_TIME_BITS=64 and fixes SHM compatibility with chrony.

Drop following patches:
* CVE-2026-58459-1.patch
* CVE-2026-58459-2.patch
* CVE-2026-58459-3.patch
* CVE-2026-60122.patch
as they are included in 3.28.

Signed-off-by: Krzysztof Kaszubski <sympthicode@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 2b91faf2226a7263cbbf5053f88e0b28463a6c46)
---
 .../gpsd/gpsd/CVE-2026-58459-1.patch          | 48 ---------------
 .../gpsd/gpsd/CVE-2026-58459-2.patch          | 46 ---------------
 .../gpsd/gpsd/CVE-2026-58459-3.patch          | 58 -------------------
 .../gpsd/gpsd/CVE-2026-60122.patch            | 45 --------------
 .../gpsd/{gpsd_3.27.5.bb => gpsd_3.28.bb}     |  6 +-
 5 files changed, 1 insertion(+), 202 deletions(-)
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-1.patch
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-2.patch
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-3.patch
 delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-60122.patch
 rename meta-oe/recipes-navigation/gpsd/{gpsd_3.27.5.bb => gpsd_3.28.bb} (95%)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-1.patch b/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-1.patch
deleted file mode 100644
index aec3acdeb2..0000000000
--- a/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-1.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 485b793ee3a54865ff9d8efffd2fe9a309666be0 Mon Sep 17 00:00:00 2001
-From: "Gary E. Miller" <gem@rellim.com>
-Date: Wed, 1 Jul 2026 17:55:57 -0700
-Subject: [PATCH 1/1] clients/gpsprof.py.in: Quote double quotes in title.
-
-Someone could use the double quote to break out of the
-string and add gnuplot commnds.
-
-For issue 404.
-Reported by: CuB3y0nd, and Wade Sparks <wsparks@vulncheck.com>
-
-(cherry picked from commit 5581ba196d826a984fbfaf792b7d58535f9911ce)
-
-CVE: CVE-2026-58459
-Upstream-Status: Backport [https://gitlab.com/gpsd/gpsd/-/commit/5581ba196d826a984fbfaf792b7d58535f9911ce]
-Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
----
- clients/gpsprof.py.in | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/clients/gpsprof.py.in b/clients/gpsprof.py.in
-index 5c18f50ff..261e72665 100644
---- a/clients/gpsprof.py.in
-+++ b/clients/gpsprof.py.in
-@@ -198,6 +198,10 @@ class plotter(object):
-         if 'subtype' in self.device:
-             desc += "\\n%s" % self.device['subtype']
- 
-+        # escape ", and \n, for gnuplot, to not break strings
-+        desc = desc.replace('"', '\\042')
-+        desc = desc.replace('\n', '')
-+
-         return desc
- 
-     def collect(self, verb, log_fp=None):
-@@ -1262,10 +1266,10 @@ if __name__ == '__main__':
-         # Ship the plot to standard output
-         if not options.title:
-             options.title = plot.whatami()
--            # escape " for gnuplot
--            options.title = options.title.replace('"', '\\"')
-         if options.subtitle:
-             options.title += '\\n' + options.subtitle
-+        # escape " for gnuplot, to not break strings
-+        options.title = options.title.replace('"', '\\042')
-         term_opts = ""
-         truecolor_terms = ['png', 'sixelgd', 'wxt']
-         if options.terminal in truecolor_terms:
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-2.patch b/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-2.patch
deleted file mode 100644
index dd50d27695..0000000000
--- a/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-2.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 6031dc96603d5537a650068a2f8d42ef90d9d32d Mon Sep 17 00:00:00 2001
-From: "Gary E. Miller" <gem@rellim.com>
-Date: Tue, 7 Jul 2026 13:41:54 -0700
-Subject: [PATCH] clients/gpsprof.py.in: Quote back ticks in title.
-
-Someone could use the back tick to break out of the string and add
-gnuplot commnds.
-
-For issue 404.
-Reported by: CuB3y0nd, and Wade Sparks <wsparks@vulncheck.com>
-
-(cherry picked from commit 1a6bb7bcbdf58aa940132e630870af061dc88537)
-
-CVE: CVE-2026-58459
-Upstream-Status: Backport [https://gitlab.com/gpsd/gpsd/-/commit/1a6bb7bcbdf58aa940132e630870af061dc88537]
-Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
----
- clients/gpsprof.py.in | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/clients/gpsprof.py.in b/clients/gpsprof.py.in
-index 261e72665..202214769 100644
---- a/clients/gpsprof.py.in
-+++ b/clients/gpsprof.py.in
-@@ -198,8 +198,9 @@ class plotter(object):
-         if 'subtype' in self.device:
-             desc += "\\n%s" % self.device['subtype']
- 
--        # escape ", and \n, for gnuplot, to not break strings
-+        # escape ", `, and \n, for gnuplot, to not break strings
-         desc = desc.replace('"', '\\042')
-+        desc = desc.replace('`', '\\140')
-         desc = desc.replace('\n', '')
- 
-         return desc
-@@ -1268,8 +1269,9 @@ if __name__ == '__main__':
-             options.title = plot.whatami()
-         if options.subtitle:
-             options.title += '\\n' + options.subtitle
--        # escape " for gnuplot, to not break strings
-+        # escape ",  and`, for gnuplot, to not break strings
-         options.title = options.title.replace('"', '\\042')
-+        options.title = options.title.replace('"', '\\140')
-         term_opts = ""
-         truecolor_terms = ['png', 'sixelgd', 'wxt']
-         if options.terminal in truecolor_terms:
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-3.patch b/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-3.patch
deleted file mode 100644
index a40edfe6d1..0000000000
--- a/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-58459-3.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From 54484dccf7265e51368eef03d99ea7a370c15e06 Mon Sep 17 00:00:00 2001
-From: "Gary E. Miller" <gem@rellim.com>
-Date: Tue, 7 Jul 2026 14:23:56 -0700
-Subject: [PATCH] clients/gpsprof.py.in: Quote back ticks in title.
-
-Second try.  Also quote "terminal".
-
-Someone could use the back tick to break out of the string and add
-gnuplot commnds.
-
-For issue 404.
-Reported by: CuB3y0nd, and Wade Sparks <wsparks@vulncheck.com>
-
-(cherry picked from commit 4c06658e988f4ced1a7a574ce082a22ef625df56)
-
-CVE: CVE-2026-58459
-Upstream-Status: Backport [https://gitlab.com/gpsd/gpsd/-/commit/4c06658e988f4ced1a7a574ce082a22ef625df56]
-Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
----
- clients/gpsprof.py.in | 14 ++++++++++----
- 1 file changed, 10 insertions(+), 4 deletions(-)
-
-diff --git a/clients/gpsprof.py.in b/clients/gpsprof.py.in
-index 202214769..e91367ee3 100644
---- a/clients/gpsprof.py.in
-+++ b/clients/gpsprof.py.in
-@@ -200,7 +200,7 @@ class plotter(object):
- 
-         # escape ", `, and \n, for gnuplot, to not break strings
-         desc = desc.replace('"', '\\042')
--        desc = desc.replace('`', '\\140')
-+        desc = desc.replace("\x60", '\\140')
-         desc = desc.replace('\n', '')
- 
-         return desc
-@@ -1271,13 +1271,19 @@ if __name__ == '__main__':
-             options.title += '\\n' + options.subtitle
-         # escape ",  and`, for gnuplot, to not break strings
-         options.title = options.title.replace('"', '\\042')
--        options.title = options.title.replace('"', '\\140')
-+        options.title = options.title.replace("\x60", '\\140')
-         term_opts = ""
-         truecolor_terms = ['png', 'sixelgd', 'wxt']
-         if options.terminal in truecolor_terms:
-             term_opts = 'truecolor'
--        sys.stdout.write("set terminal %s size 800,950 %s\n"
--                         "set termoption enhanced\n"
-+
-+        # escape ", `, and \n, for gnuplot, to not break strings
-+        options.terminal = options.terminal.replace('"', '\\042')
-+        options.terminal = options.terminal.replace("\x60", '\\140')
-+        options.terminal = options.terminal.replace('\n', '')
-+
-+        sys.stdout.write('set terminal "%s" size 800,950 %s\n'
-+                         'set termoption enhanced\n'
-                          % (options.terminal, term_opts))
-         # double quotes on title so \n is parsed by gnuplot
-         sys.stdout.write('set title noenhanced "%s\\n\\n"\n' % options.title)
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-60122.patch b/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-60122.patch
deleted file mode 100644
index da8fa5f4d2..0000000000
--- a/meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-60122.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 50bf98d0240b94bbec6ce06be33cdaf99e2f6214 Mon Sep 17 00:00:00 2001
-From: "Gary E. Miller" <gem@rellim.com>
-Date: Mon, 20 Jul 2026 20:12:16 -0700
-Subject: [PATCH] clients/gpsprof.py.in: ensure sats.used is boolean.  Issue
- 406
-
-Prevfent command injection by sates.used.  Force to boolean.
-
-(cherry picked from commit 5a9c44a42136b9bb98d460a8a716e9fd344a8d93)
-
-CVE: CVE-2026-60122
-Upstream-Status: Backport [https://gitlab.com/gpsd/gpsd/-/commit/5a9c44a42136b9bb98d460a8a716e9fd344a8d93]
-Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
----
- clients/gpsprof.py.in | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/clients/gpsprof.py.in b/clients/gpsprof.py.in
-index e91367ee3..07123d417 100644
---- a/clients/gpsprof.py.in
-+++ b/clients/gpsprof.py.in
-@@ -334,8 +334,11 @@ class spaceplot(plotter):
-             # get sat used count
-             sats_used = 0
-             for sat in self.session.satellites:
--                if sat.used:
-+                if sat.used is True:
-                     sats_used += 1
-+                else:
-+                    # ensure it is boolean.
-+                    sat.used = False
- 
-             if 'altHAE' not in self.session.data:
-                 self.session.data['altHAE'] = gps.NaN
-@@ -783,6 +786,10 @@ class polarplot(plotter):
-                     used += 1
-                     if 'polarunused' == self.name:
-                         continue
-+                else:
-+                    # ensure it is boolean.
-+                    sat['used'] = False;
-+
-                 if (('polarused' == self.name and
-                      sat['used'] is False)):
-                     continue
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.27.5.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.28.bb
similarity index 95%
rename from meta-oe/recipes-navigation/gpsd/gpsd_3.27.5.bb
rename to meta-oe/recipes-navigation/gpsd/gpsd_3.28.bb
index ed16ee4fc1..bdc8f12bc5 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.27.5.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.28.bb
@@ -8,13 +8,9 @@ BUGTRACKER = "https://gitlab.com/gpsd/gpsd/-/issues"
 HOMEPAGE = "https://gpsd.io/"
 
 SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \
-           file://CVE-2026-58459-1.patch \
-           file://CVE-2026-58459-2.patch \
-           file://CVE-2026-58459-3.patch \
-           file://CVE-2026-60122.patch \
            file://gpsd.init \
            "
-SRC_URI[sha256sum] = "409873f5048462ef1ac413a51ab35caa8b50b31be62b3347bee1cc2994e7c649"
+SRC_URI[sha256sum] = "72f7937f36d98fb348e9fa044ad1e72955982ec5938609b18e4ee7c9e04f83f2"
 
 inherit scons update-rc.d python3-dir python3native systemd update-alternatives pkgconfig
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [meta-oe][wrynose][PATCH 2/2] gpsd: Fix upstream version check
  2026-11-30  8:28 [meta-oe][wrynose][PATCH 0/2] gpsd: backport upgrade to 3.28 Krzysztof Kaszubski
  2026-11-30  8:28 ` [meta-oe][wrynose][PATCH 1/2] gpsd: upgrade 3.27.5 -> 3.28 Krzysztof Kaszubski
@ 2026-11-30  8:28 ` Krzysztof Kaszubski
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kaszubski @ 2026-11-30  8:28 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj

From: Khem Raj <khem.raj@oss.qualcomm.com>

Add UPSTREAM_CHECK_URI/REGEX for the savannah download listing.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit ceb3fd7abf201f2e2c45184847bc5d354142ad29)
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.28.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.28.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.28.bb
index bdc8f12bc5..9f7765bb8e 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.28.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.28.bb
@@ -12,6 +12,9 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \
            "
 SRC_URI[sha256sum] = "72f7937f36d98fb348e9fa044ad1e72955982ec5938609b18e4ee7c9e04f83f2"
 
+UPSTREAM_CHECK_URI = "https://download.savannah.gnu.org/releases/gpsd/"
+UPSTREAM_CHECK_REGEX = "gpsd-(?P<pver>\d+(\.\d+)+)\.tar\.gz"
+
 inherit scons update-rc.d python3-dir python3native systemd update-alternatives pkgconfig
 
 INITSCRIPT_PACKAGES = "gpsd-conf"
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-30  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  8:28 [meta-oe][wrynose][PATCH 0/2] gpsd: backport upgrade to 3.28 Krzysztof Kaszubski
2026-11-30  8:28 ` [meta-oe][wrynose][PATCH 1/2] gpsd: upgrade 3.27.5 -> 3.28 Krzysztof Kaszubski
2026-11-30  8:28 ` [meta-oe][wrynose][PATCH 2/2] gpsd: Fix upstream version check Krzysztof Kaszubski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.