Package: hatari Version: 2.3.1+dfsg Severity: serious Tags: ftbfs patch upstream Justification: fails to build from source X-Debbugs-Cc: tienhock....@starfivetech.com
Dear Maintainer, hatari is FTBFS due to a header conflict with REG_A0 that is already defined in RISC-V's header. Patch to fix the build is attached. Build test run on StarFive's VisionFive board. -- System Information: Debian Release: 11.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: riscv64 Kernel: Linux 5.10.0-14-amd64 (SMP w/1 CPU thread) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages hatari depends on: ii gir1.2-gtk-3.0 3.24.24-4+deb11u2 ii libc6 2.31-13+deb11u3 ii libpng16-16 1.6.37-3 pn libportaudio2 <none> ii libreadline8 8.1-1 ii libsdl2-2.0-0 2.0.14+dfsg2-3 ii libudev1 247.3-7 ii libx11-6 2:1.7.2-1 ii python3 3.9.2-3 ii python3-gi 3.38.0-2 ii zlib1g 1:1.2.11.dfsg-2+deb11u1 Versions of packages hatari recommends: ii binfmt-support 2.2.1-1 Versions of packages hatari suggests: ii dosfstools 4.2-1 pn mtools <none> ii unzip 6.0-26
01-fix-conftypes-py-build-path.diff fix-rega0-for-riscv.patch 07-fix-python-ui-doc-install.patch series 09-fix-hconsole-doc-install.patch root@v5:~/hatari/hatari-2.3.1+dfsg# cat debian/patches/fix-rega0-for-riscv.patch Fix issue where REG_A0 is already defined by riscv64 platform Index: hatari-2.3.1+dfsg/src/includes/m68000.h =================================================================== --- hatari-2.3.1+dfsg.orig/src/includes/m68000.h 2020-12-26 21:50:12.000000000 +0000 +++ hatari-2.3.1+dfsg/src/includes/m68000.h 2022-05-26 01:37:55.028838540 +0000 @@ -26,6 +26,9 @@ #include "cycInt.h" #include "log.h" +#ifdef REG_A0 +#undef REG_A0 +#endif /* 68000 Register defines */ enum {