I believe this patch about adding loong64 support is about upstream
code, so should be forwarded upstream or else submitted upstream directly.
If upstream reject it, it might then make sense to apply it in the
Debian packaging.
Cheers,
Alban
On Fri, 28 Mar 2025 14:54:05 +0800 zhangdandan <[email protected]>
wrote:
> Source: blender
> Version: 4.3.2+dfsg-2
> Severity: normal
> Tags: FTBFS patch
> User: [email protected]
> Usertags: loong64
>
> Dear maintainers,
>
> Compiling the blender failed for loong64 in the Debian Package
> Auto-Building environment.
> The error log is as follows,
> ```
> ......
> In file included from
> /<<PKGBUILDDIR>>/source/blender/blenlib/BLI_math_bits.h:11,
> from
> /<<PKGBUILDDIR>>/source/blender/gpu/opengl/gl_state.cc:12:
> /<<PKGBUILDDIR>>/source/blender/blenlib/BLI_build_config.h:358:4: error:
> #error Please add support for your architecture in BLI_build_config.h
> 358 | # error Please add support for your architecture in
> BLI_build_config.h
> | ^~~~~
> ......
> ```
> The full build log can be found at
>
https://buildd.debian.org/status/fetch.php?pkg=blender&arch=loong64&ver=4.3.2%2Bdfsg-2&stamp=1742458700&raw=0.
>
> Please consider the patch I attached.
> Based on attached patch, I have built blender (4.3.2+dfsg-2+loong64)
> successfully on locally.
> ```
> ......
> dh_builddeb -O--buildsystem=cmake
> dpkg-deb: building package 'blender-dbgsym' in
> '../blender-dbgsym_4.3.2+dfsg-2+loong64_loong64.deb'.
> dpkg-deb: building package 'blender' in
> '../blender_4.3.2+dfsg-2+loong64_loong64.deb'.
> dpkg-deb: building package 'blender-data' in
> '../blender-data_4.3.2+dfsg-2+loong64_all.deb'.
> dpkg-genbuildinfo -O../blender_4.3.2+dfsg-2+loong64_loong64.buildinfo
> dpkg-genchanges -O../blender_4.3.2+dfsg-2+loong64_loong64.changes
> ```
>
> Your opinions are welcome.
>
> Best regards,
> Dandan Zhang
>