Skip to contentSkip to conversation

gperf: upgrade 3.1 -> 3.3

PATCH New Gyorgy Sarvari 1 participant 1 message Aug 11, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gperf: upgrade 3.1 -> 3.3

Both patches were dropped, because they are included in this release.

License-Update: copyright date Update

Changelog:
3.3:
* Speedup: gperf is now between 2x and 2.5x faster.

3.2:
* The generated code avoids several types of warnings:
- "implicit fallthrough" warnings in 'switch' statements.
- "unused parameter" warnings regarding 'str' or 'len'.
- "missing initializer for field ..." warnings.
- "zero as null pointer constant" warnings.

* The input file may now use Windows line terminators (CR/LF) instead of Unix line terminators (LF).
Note: This is an incompatible change. If you want to use a keyword that ends in a CR byte, such as xyz<CR>, write it as "xyz\r".

---
 .../0001-Make-the-code-C-17-compliant.patch   |  29 ---
 ...c6e57a308a05889c80c048dbc58bdc378dcb.patch | 181 ------------------
 .../gperf/{gperf_3.1.bb => gperf_3.3.bb}      |   9 +-
 3 files changed, 3 insertions(+), 216 deletions(-)
 delete mode 100644 meta/recipes-extended/gperf/gperf/0001-Make-the-code-C-17-compliant.patch
 delete mode 100644 meta/recipes-extended/gperf/gperf/1862c6e57a308a05889c80c048dbc58bdc378dcb.patch
 rename meta/recipes-extended/gperf/{gperf_3.1.bb => gperf_3.3.bb} (68%)
meta/recipes-extended/gperf/gperf/0001-Make-the-code-C-17-compliant.patch deleted +0 -29
deleted file mode 100644
index 96e70cdb36..0000000000
@@ -1,29 +0,0 @@
-From 6194f0027045433598a61965758b4531a3d06d1f Mon Sep 17 00:00:00 2001
-From: Bruno Haible <[email protected]>
-Date: Sun, 30 Aug 2020 12:36:15 +0200
-Subject: [PATCH] Make the code C++17 compliant.
-
-* lib/getline.cc (getstr): Don't use the 'register' keyword.
-
-Upstream-Status: Backport [https://git.savannah.gnu.org/gitweb/?p=gperf.git;a=commit;h=a63b830554920476881837eeacd4a6b507632b19]
-Signed-off-by: Khem Raj <[email protected]>
----
- lib/getline.cc | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/getline.cc b/lib/getline.cc
-index c57c633..0984a7c 100644
---- a/lib/getline.cc
-+++ b/lib/getline.cc
-@@ -55,7 +55,7 @@ getstr (char **lineptr, size_t *n, FILE *stream, char terminator, size_t offset)
- 
-   for (;;)
-     {
--      register int c = getc (stream);
-+      int c = getc (stream);
- 
-       /* We always want at least one char left in the buffer, since we
-          always (unless we get an error while reading the first char)
--- 
-2.39.0
-
meta/recipes-extended/gperf/gperf/1862c6e57a308a05889c80c048dbc58bdc378dcb.patch deleted +0 -181

181 lines not on this page · raw message

meta/recipes-extended/gperf/gperf_3.3.bb renamed from meta/recipes-extended/gperf/gperf_3.1.bb +3 -6
similarity index 68%
rename from meta/recipes-extended/gperf/gperf_3.1.bb
rename to meta/recipes-extended/gperf/gperf_3.3.bb
index 7a79c07042..7af2130114 100644
@@ -3,13 +3,10 @@ HOMEPAGE = "http://www.gnu.org/software/gperf"
 SUMMARY  = "Generate a perfect hash function from a set of keywords"
 LICENSE  = "GPL-3.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
-                    file://src/main.cc;beginline=8;endline=19;md5=dec8f611845d047387ed56b5b85fa99b"
+                    file://src/main.cc;beginline=8;endline=19;md5=ca1c43fa02be95aa2e10d567684e6fd5"
 
-SRC_URI  = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \
-            file://0001-Make-the-code-C-17-compliant.patch"
-SRC_URI[sha256sum] = "588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2"
-
-SRC_URI += "file://1862c6e57a308a05889c80c048dbc58bdc378dcb.patch"
+SRC_URI  = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz"
+SRC_URI[sha256sum] = "fd87e0aba7e43ae054837afd6cd4db03a3f2693deb3619085e6ed9d8d9604ad8"
 
 inherit autotools