Source: mesaflash
Version: 3.4.6-1
Severity: normal
Tags: FTBFS patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the mesaflash failed for loong64 in the Debian Package Auto-Building environment.
Build failed 16 times. The build error log is as follows,
```
epp_boards.c:23:10: fatal error: sys/io.h: No such file or directory
   23 | #include <sys/io.h>
      |          ^~~~~~~~~~
compilation terminated.
pci_boards.c:22:10: fatal error: sys/io.h: No such file or directory
   22 | #include <sys/io.h>
      |          ^~~~~~~
......
```
The full log can be found at https://buildd.debian.org/status/logs.php?pkg=mesaflash&ver=3.4.6-1&arch=loong64.

Please consider the patch I attached.
I have built mesaflash successfully in my local ENV.
```
......
dpkg-deb: building package 'mesaflash' in '../mesaflash_3.4.6-1_loong64.deb'. dpkg-deb: building package 'mesaflash-dbgsym' in '../mesaflash-dbgsym_3.4.6-1_loong64.deb'.
 dpkg-genbuildinfo -O../mesaflash_3.4.6-1_loong64.buildinfo
 dpkg-genchanges -O../mesaflash_3.4.6-1_loong64.changes
```
Your opinions are welcome.

Thanks,
Dandan Zhang

Description: Add loongarch64 support.
Last-Update: 2024-06-22

--- mesaflash-3.4.6.orig/Makefile
+++ mesaflash-3.4.6/Makefile
@@ -90,6 +90,10 @@ ifeq ($(TARGET),linux)
         MESAFLASH_IO ?= 0
     endif
 
+    ifeq ($(UNAME_M),loongarch64)
+        MESAFLASH_IO ?= 0
+    endif
+
     ifeq ($(UNAME_M),m68k)
         MESAFLASH_IO ?= 0
     endif
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to