Control: tags 1148704 + patch
Control: tags 1148704 + pending

Dear maintainer,

I've prepared an NMU for snappy (versioned as 1.3.1-2.1) and uploaded
it to DELAYED/7. Please feel free to tell me if I should cancel it.

cu
Adrian
diffstat for snappy-1.3.1 snappy-1.3.1

 changelog         |    7 +++++++
 patches/rvv.patch |   35 +++++++++++++++++++++++++++++++++++
 patches/series    |    1 +
 3 files changed, 43 insertions(+)

diff -Nru snappy-1.3.1/debian/changelog snappy-1.3.1/debian/changelog
--- snappy-1.3.1/debian/changelog	2026-09-22 08:02:21.000000000 +0300
+++ snappy-1.3.1/debian/changelog	2026-09-25 15:13:08.000000000 +0300
@@ -1,3 +1,10 @@
+snappy (1.3.1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Workaround RVV detection GCC bug. (Closes: #1148704)
+
+ -- Adrian Bunk <[email protected]>  Fri, 25 Sep 2026 15:13:08 +0300
+
 snappy (1.3.1-2) unstable; urgency=medium
 
   * Fix 32 bit FTBFS with disabling LiteralLengthU32Overflow self-test
diff -Nru snappy-1.3.1/debian/patches/rvv.patch snappy-1.3.1/debian/patches/rvv.patch
--- snappy-1.3.1/debian/patches/rvv.patch	1970-01-01 02:00:00.000000000 +0200
+++ snappy-1.3.1/debian/patches/rvv.patch	2026-09-25 15:13:08.000000000 +0300
@@ -0,0 +1,35 @@
+Description: Workaround RVV detection GCC bug
+Author: Adrian Bunk <[email protected]>
+Bug-Debian: https://bugs.debian.org/1148704
+Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127553
+Forwarded: not-needed
+
+--- snappy-1.3.1.orig/CMakeLists.txt
++++ snappy-1.3.1/CMakeLists.txt
+@@ -253,16 +253,16 @@ int main() {
+ }" SNAPPY_HAVE_NEON)
+ 
+ #check RVV 1.0 need __riscv_ prefix
+-check_cxx_source_compiles("
+-  #include <riscv_vector.h>
+-  #include <stdint.h>
+-  #include <stddef.h>
+-  int main() {
+-    uint8_t val = 3, dup[8];
+-    size_t vl = __riscv_vsetvl_e8m1(8);
+-    vuint8m1_t v = __riscv_vmv_v_x_u8m1(val, vl);
+-    return 0;
+-  }" SNAPPY_RVV_1)
++#check_cxx_source_compiles("
++#  #include <riscv_vector.h>
++#  #include <stdint.h>
++#  #include <stddef.h>
++#  int main() {
++#    uint8_t val = 3, dup[8];
++#    size_t vl = __riscv_vsetvl_e8m1(8);
++#    vuint8m1_t v = __riscv_vmv_v_x_u8m1(val, vl);
++#    return 0;
++#  }" SNAPPY_RVV_1)
+ 
+ 
+ #check RVV 0.7.1 not  __riscv_ prefix
diff -Nru snappy-1.3.1/debian/patches/series snappy-1.3.1/debian/patches/series
--- snappy-1.3.1/debian/patches/series	2026-09-22 08:02:21.000000000 +0300
+++ snappy-1.3.1/debian/patches/series	2026-09-25 15:13:08.000000000 +0300
@@ -5,3 +5,4 @@
 correct_testing_link.patch
 add_option_to_enable_rtti.patch
 disable_LiteralLengthU32Overflow.patch
+rvv.patch

Reply via email to