Description: fix FTBFS: use enum constants for VERSION_1/2/3
 hkl-binoculars-cnpy.c declares the file-scope constants VERSION_1,
 VERSION_2 and VERSION_3 as "const uint8_t" variables and uses them as
 case labels in parse_npy().  In C a const-qualified variable is not an
 integer constant expression, so the compiler rejects those case labels
 with "case label does not reduce to an integer constant".
 Turn the three constants into enumerators so that they remain valid
 constant expressions (and keep the same values).
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: no
Last-Update: 2026-09-16
--- hkl-5.1.3.orig/binoculars-ng/binoculars/hkl-binoculars-cnpy.c
+++ hkl-5.1.3/binoculars-ng/binoculars/hkl-binoculars-cnpy.c
@@ -24,9 +24,11 @@ datatype(
 
 static const char magic[] = {(char)0x93, 'N', 'U', 'M', 'P', 'Y'};
 
-const uint8_t VERSION_1 = 0x01;
-const uint8_t VERSION_2 = 0x02;
-const uint8_t VERSION_3 = 0x03;
+enum {
+        VERSION_1 = 0x01,
+        VERSION_2 = 0x02,
+        VERSION_3 = 0x03,
+};
 
 struct pre_header_t {
         char magic[6];
