Source: haskell-primitive-unaligned
Version: 0.1.1.2-2
Severity: wishlist
Tags: patch ftbfs
User: [email protected]
Usertags: loongarch64

Dear maintainers,

When compiling the package haskell-primitive-unaligned for loong64 in the Debian Package Auto-Building environment [1], The error message is as follows:
......Omit
Preprocessing library for primitive-unaligned-0.1.1.2..
Error: hlibrary.setup: can't find source for Data/Primitive/Unaligned/Mach in
src, dist-ghc/build/autogen, dist-ghc/build/global-autogen
......Omit

The full compilation log can be found at [2].

Please consider the patch I have attached.
BTW, the patch I provided in the attachment doesn't affect other architectures and compiles fine on the loongarch architecture.
If you have any questions, you can contact me at any time.

[1]:https://buildd.debian.org/status/package.php?p=haskell-primitive-unaligned&suite=sid
[2]:https://buildd.debian.org/status/logs.php?pkg=haskell-primitive-unaligned&ver=0.1.1.2-2&arch=loong64

thanks,
Dandan Zhang

Description: Add support for loongarch64 
Last-Update: 2023-10-09

--- haskell-primitive-unaligned-0.1.1.2.orig/primitive-unaligned.cabal
+++ haskell-primitive-unaligned-0.1.1.2/primitive-unaligned.cabal
@@ -23,7 +23,7 @@ library
     , base >=4.12.0.0 && <5
     , primitive >=0.6.4 && <0.9
   hs-source-dirs: src
-  if arch(aarch64) || arch(alpha) || arch(ia64) || arch(ppc64) || arch(powerpc64) || arch(powerpc64le) || arch(riscv64) || arch(s390x) || arch(sparc64) || arch(x86_64) || arch(mips64el)
+  if arch(aarch64) || arch(alpha) || arch(ia64) || arch(ppc64) || arch(powerpc64) || arch(powerpc64le) || arch(riscv64) || arch(s390x) || arch(sparc64) || arch(x86_64) || arch(mips64el) || arch(loongarch64)
     hs-source-dirs: src-64
   if arch(arm) || arch(hppa) || arch(hppa1_1) || arch(i386) || arch(m68k) || arch(mips) || arch(mipseb) || arch(mipsel) || arch(nios2) || arch(powerpc) || arch(riscv32) || arch(rs6000) || arch(s390) || arch(sh4) || arch(sparc) || arch(vax)
     hs-source-dirs: src-32

Reply via email to