[gpgme][PATCH] autogen.sh: remove '-unknown' in version

Chen Qi Qi.Chen at windriver.com
Tue Feb 28 06:52:19 CET 2023


python setuptools >=66.0.0 treats '-unknown' as an invalid version.
The error message is as below:
  pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '1.18.0-unknown'

Remove the '-unknown' suffix to fix this issue.

Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
---
 autogen.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autogen.sh b/autogen.sh
index 9b361581..d5cccd2a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -266,7 +266,7 @@ if [ "$myhost" = "find-version" ]; then
     else
       ingit=no
       beta=yes
-      tmp="-unknown"
+      tmp=""
       rev="0000000"
       rvd="0"
     fi
-- 
2.17.1




More information about the Gnupg-devel mailing list