| 1 |
From: xiao sheng wen <[email protected]> |
| 2 |
Date: Wed, 15 Jul 2026 04:34:09 +0000 |
| 3 |
Subject: Fix stale fallback version when building from a tarball without .git |
| 4 |
|
| 5 |
Upstream derives OPENCC_VERSION from `git describe` in |
| 6 |
cmake/GitVersion.cmake, falling back to hardcoded |
| 7 |
_OPENCC_FALLBACK_MAJOR/MINOR/REVISION when no .git directory is |
| 8 |
present (as is always the case for Debian source tarballs). The |
| 9 |
fallback was left at 1.4.0 in the 1.4.1 release, so builds from the |
| 10 |
released tarball report version 1.4.0 instead of 1.4.1. |
| 11 |
|
| 12 |
Forwarded: not-needed |
| 13 |
Last-Update: 2026-07-15 |
| 14 |
Index: opencc/cmake/GitVersion.cmake |
| 15 |
=================================================================== |
| 16 |
--- opencc.orig/cmake/GitVersion.cmake |
| 17 |
+++ opencc/cmake/GitVersion.cmake |
| 18 |
@@ -14,7 +14,7 @@ |
| 19 |
|
| 20 |
set(_OPENCC_FALLBACK_MAJOR 1) |
| 21 |
set(_OPENCC_FALLBACK_MINOR 4) |
| 22 |
-set(_OPENCC_FALLBACK_REVISION 0) |
| 23 |
+set(_OPENCC_FALLBACK_REVISION 1) |
| 24 |
|
| 25 |
find_package(Git QUIET) |
| 26 |
|