1From acc4750ffa79a5c2ef3c95cf31ef51352a68837b Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Tue, 28 Feb 2023 13:43:51 +0800
4Subject: [PATCH] autogen.sh: remove '-unknown' in version
5
6python setuptools >=66.0.0 treats '-unknown' as an invalid version.
7The error message is as below:
8  pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '1.18.0-unknown'
9
10Remove the '-unknown' suffix to fix this issue.
11
12Upstream-Status: Submitted [https://lists.gnupg.org/pipermail/gnupg-devel/2023-February/035293.html]
13
14Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
15
16---
17 autogen.sh | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/autogen.sh b/autogen.sh
21index 4e1665b..a55326d 100755
22--- a/autogen.sh
23+++ b/autogen.sh
24@@ -269,7 +269,7 @@ if [ "$myhost" = "find-version" ]; then
25     else
26       ingit=no
27       beta=yes
28-      tmp="-unknown"
29+      tmp=""
30       rev="0000000"
31       rvd="0"
32     fi
33