Bug#1007269: tbox FTBFS on hppa

2022-03-15 Thread Yangfl
Helge Deller  于2022年3月15日周二 15:39写道:
>
> Package: tbox
> Version: 1.6.7-2
> Severity: important
> Tags: hppa, patch
>
> tbox fails currently on hppa:
> https://buildd.debian.org/status/logs.php?pkg=tbox&arch=hppa
>
> The attached patch fixes this.

Nope, there're platform-specified asm codes; see
https://salsa.debian.org/yangfl-guest/tbox/-/blob/master/src/tbox/platform/arch/context.S



Bug#1007269: tbox FTBFS on hppa

2022-03-15 Thread Helge Deller
Package: tbox
Version: 1.6.7-2
Severity: important
Tags: hppa, patch

tbox fails currently on hppa:
https://buildd.debian.org/status/logs.php?pkg=tbox&arch=hppa

The attached patch fixes this.

Please apply.
Thanks!
Helge

diff -up ./src/tbox/prefix/arch.h.org ./src/tbox/prefix/arch.h
--- ./src/tbox/prefix/arch.h.org2022-03-15 07:33:07.918940173 +
+++ ./src/tbox/prefix/arch.h2022-03-15 07:33:14.026900513 +
@@ -238,6 +238,13 @@
 #   else
 #   error unknown arch for tiny c, please define target like 
-DTCC_TARGET_I386
 #   endif
+#elif defined(__hppa__)
+#   define TB_ARCH_HPPA
+#   if defined(__LP64__)
+#   define TB_ARCH_STRING   "hppa64"
+#   else
+#   define TB_ARCH_STRING   "hppa"
+#   endif
 #else
 #   error unknown arch
 #   define TB_ARCH_STRING   "unknown_arch"