Source: openmsx
Severity: normal
Tags: patch
User: [email protected]
Usertags: loong64
X-Debbugs-Cc: [email protected]
Dear Maintainer,
openmsx compiles incorrectly on loongarch, the attached patch has solved the
problem, please refer to the patch to modify the code
wuruilong
-- System Information:
Debian Release: trixie/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)
Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
openmsx (19.1+dfsg-1) unstable; urgency=medium
.
[ Aaron Rainbolt ]
* Override spurious source-is-missing Lintian errors.
* Don't build-depend on dpkg-dev, it's guaranteed to be installed in a
Debian build environment.
* Repack the upstream tarball to remove prebuilt binaries lacking source
code. (Closes: #1056780)
* Set 'DEB_BUILD_MAINT_OPTIONS = hardening=+all' in debian/rules.
* Remove debian/source/include-binaries, every file listed in it doesn't
exist.
* Set 'Rules-Requires-Root: no' in debian/control.
* Use debhelper 13 rather than debhelper 10.
- Changed "debhelper (>= 10)" to "debhelper-compat (= 13)" in
debian/control.
- Deleted debian/compat.
* Override spurious package-contains-documentation-outside-usr-share-doc
Lintian gripes.
* Created debian/upstream/metadata file.
* Switch back to using vendored catch2, the catch2 Debian package now ships
catch2 v3 whereas openMSX uses catch2 v2.
* Overhauled copyright file.
.
[ Bas Wijnen ]
* Revert overriding Lintian's source-is-missing error.
Author: Bas Wijnen <[email protected]>
Bug-Debian: https://bugs.debian.org/1056780
---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-04-25
--- openmsx-19.1+dfsg.orig/build/cpu.py
+++ openmsx-19.1+dfsg/build/cpu.py
@@ -43,6 +43,11 @@ class IA64(CPU):
'''
name = 'ia64'
+class LoongArch64(CPU):
+ '''64-bit Loongarch.
+ '''
+ name = 'loongarch64'
+
class M68k(CPU):
'''Motorola 680x0.
'''
--- openmsx-19.1+dfsg.orig/build/detectsys.py
+++ openmsx-19.1+dfsg/build/detectsys.py
@@ -55,6 +55,8 @@ def detectCPU():
return 'avr32'
elif cpu == 'riscv64':
return 'riscv64'
+ elif cpu == 'loongarch64':
+ return 'loongarch64'
elif cpu == '':
# Python couldn't figure it out.
os = system().lower()