Source: librep
Version: 0.92.7-3
Severity: serious
Tags: ftbfs patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org

Dear Maintainer,

The latest version of librep has one FTBFS issue on riscv64:

```
...
REPLISPDIR=../lisp REP_DL_LOAD_PATH=../src/.libexec REPDOCFILE=../doc-strings 
../src/rep --batch -l rep.vm.compiler \
  -f compile-batch rep-xgettext.jl \
&& mv rep-xgettext.jlc rep-xgettext && chmod +x rep-xgettext
 ** error: --with-stack-direction is incorrect; it should be -1
make[3]: *** [Makefile:182: rep-xgettext] Error 10
...
```

The full buildd log please to see:
https://buildd.debian.org/status/fetch.php?pkg=librep&arch=riscv64&ver=0.92.7-3&stamp=1740926048&raw=0

The same FTBFS happened on loong64[0], m68k and sh4 also[1].

The patch proposed is just to add these architectures on configure
scripts, but it seems it is complicated. There was one patch[2] to
simplify this and I reported it to upstream[3] again.  

Could you have a look at this? 

[0]: https://bugs.debian.org/1099169 
[1]: https://buildd.debian.org/status/package.php?p=librep
[2]: 
https://salsa.debian.org/debian/librep/-/blob/master/debian/patches/0002-guess-stack-direction?ref_type=heads
[3]: https://github.com/SawfishWM/librep/pull/19

-- 
Regards,
--
  Bo YU

diff -Nru librep-0.92.7/debian/changelog librep-0.92.7/debian/changelog
--- librep-0.92.7/debian/changelog      2025-03-02 13:17:40.000000000 +0000
+++ librep-0.92.7/debian/changelog      2025-03-03 07:29:43.000000000 +0000
@@ -1,3 +1,10 @@
+librep (0.92.7-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Ensure stack direction with downwards on more architectures. (Closes:#-1)
+
+ -- Bo YU <vi...@debian.org>  Mon, 03 Mar 2025 07:29:43 +0000
+
 librep (0.92.7-3) unstable; urgency=medium
 
   * Team upload.
diff -Nru 
librep-0.92.7/debian/patches/0006-more-arches-metag-stack-direction.patch 
librep-0.92.7/debian/patches/0006-more-arches-metag-stack-direction.patch
--- librep-0.92.7/debian/patches/0006-more-arches-metag-stack-direction.patch   
1970-01-01 00:00:00.000000000 +0000
+++ librep-0.92.7/debian/patches/0006-more-arches-metag-stack-direction.patch   
2025-03-03 07:29:43.000000000 +0000
@@ -0,0 +1,19 @@
+Description:Enable stack direction on more architectures with downwards
+Author: Bo YU <vi...@debian.org>
+Forwarded: https://github.com/SawfishWM/librep/pull/19
+Last-Update: 2025-03-03
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: b/configure.ac
+===================================================================
+--- a/configure.ac
++++ b/configure.ac
+@@ -536,7 +536,7 @@
+  [with_stack_direction=unknown])
+ if test "${with_stack_direction}" = unknown; then
+   case ${host_cpu} in
+-    sparc*|i?86*|powerpc*|x86_64*|arm*|aarch64*|s390*|mips*|alpha*|ia64*)
++    
sparc*|i?86*|powerpc*|x86_64*|arm*|aarch64*|s390*|mips*|alpha*|ia64*|riscv64*|m68k*|sh4*)
+       AC_MSG_RESULT([assuming downwards])
+       with_stack_direction="-1"
+       ;;
diff -Nru librep-0.92.7/debian/patches/series 
librep-0.92.7/debian/patches/series
--- librep-0.92.7/debian/patches/series 2025-03-02 13:17:40.000000000 +0000
+++ librep-0.92.7/debian/patches/series 2025-03-03 04:08:25.000000000 +0000
@@ -12,3 +12,4 @@
 
 # Just keep track of changes from 0.92.5-3.2 NMU
 # build-fix-Wimplicit-int-Wimplicit-function-declaration.patch
+0006-more-arches-metag-stack-direction.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to