Source: kdevelop
Version: 4:23.08.1-2
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
Dear maintainers,
Compiling the kdevelop failed for loong64 in the Debian Package
Auto-Building environment.
The build error log is as follows,
```
dh_install: warning: Cannot find (any matches for)
"usr/lib/*/libKDevClangPrivate.so.512" (tried in ., debian/tmp)
dh_install: warning: kdevelop missing files:
usr/lib/*/libKDevClangPrivate.so.512
dh_install: warning: Cannot find (any matches for)
"usr/lib/*/qt5/plugins/kdevplatform/512/kdevclangsupport.so" (tried in
., debian/tmp)
dh_install: warning: kdevelop missing files:
usr/lib/*/qt5/plugins/kdevplatform/512/kdevclangsupport.so
dh_install: error: missing files, aborting
make: *** [debian/rules:22: binary-arch] Error 255
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned
exit status 2
```
The full log can be found at
https://buildd.debian.org/status/logs.php?pkg=kdevelop&ver=4%3A23.08.1-2&arch=loong64.
Please enable the usage of LLVM/Clang on loong64, as clang, llvm-dev is
available there.
View http://ftp.ports.debian.org/debian-ports/pool-loong64/main/l/.
The support for loongarch in Debian llvm is complete.
Please consider the patch I attached.
I have built kdevelop successfully in my local ENV.
```
......
dpkg-deb: building package 'plasma-kdevelop' in
'../plasma-kdevelop_23.08.1-2_loong64.deb'.
dpkg-genbuildinfo -O../kdevelop_23.08.1-2_loong64.buildinfo
dpkg-genchanges -O../kdevelop_23.08.1-2_loong64.changes
```
Your opinions are welcome.
Thanks,
Dandan Zhang
diff -Nru kdevelop-23.08.1/debian/changelog kdevelop-23.08.1/debian/changelog
--- kdevelop-23.08.1/debian/changelog 2023-09-24 15:15:06.000000000 +0000
+++ kdevelop-23.08.1/debian/changelog 2024-06-15 03:31:13.000000000 +0000
@@ -1,3 +1,9 @@
+kdevelop (4:23.08.1-2+loong64) unreleased; urgency=medium
+
+ * Enable the usage of LLVM/Clang on loong64.
+
+ -- Dandan Zhang <zhangdan...@loongson.cn> Sat, 15 Jun 2024 03:31:13 +0000
+
kdevelop (4:23.08.1-2) unstable; urgency=medium
* Upload to unstable.
diff -Nru kdevelop-23.08.1/debian/control kdevelop-23.08.1/debian/control
--- kdevelop-23.08.1/debian/control 2023-09-18 06:54:53.000000000 +0000
+++ kdevelop-23.08.1/debian/control 2024-06-15 03:29:35.000000000 +0000
@@ -4,7 +4,7 @@
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uploaders: Pino Toscano <p...@debian.org>,
Build-Depends: bash-completion,
- clang (>= 1:6.0) [!alpha !hppa !ia64 !loong64 !m68k !sh4
!sparc64 !x32],
+ clang (>= 1:6.0) [!alpha !hppa !ia64 !m68k !sh4 !sparc64 !x32],
cmake (>= 3.16~),
debhelper-compat (= 13),
dh-exec,
@@ -15,7 +15,7 @@
kdevelop-pg-qt (>= 2.2.0),
libboost-serialization-dev,
libastyle-dev (>= 3.1),
- libclang-dev (>= 1:6.0) [!alpha !hppa !ia64 !loong64 !m68k !sh4
!sparc64 !x32],
+ libclang-dev (>= 1:6.0) [!alpha !hppa !ia64 !m68k !sh4 !sparc64
!x32],
libgrantlee5-dev,
libkf5archive-dev (>= 5.91.0~),
libkf5config-dev (>= 5.91.0~),
@@ -48,7 +48,7 @@
libkomparediff2-dev,
libqt5webkit5-dev (>= 5.15.2~),
libsvn-dev,
- llvm-dev (>= 1:6.0) [!alpha !hppa !ia64 !loong64 !m68k !sh4
!sparc64 !x32],
+ llvm-dev (>= 1:6.0) [!alpha !hppa !ia64 !m68k !sh4 !sparc64
!x32],
okteta-dev (>= 5:0.26.2~),
pkg-config,
qtbase5-dev (>= 5.15.2~),
diff -Nru kdevelop-23.08.1/debian/rules kdevelop-23.08.1/debian/rules
--- kdevelop-23.08.1/debian/rules 2023-09-18 05:00:23.000000000 +0000
+++ kdevelop-23.08.1/debian/rules 2024-06-15 03:28:45.000000000 +0000
@@ -6,7 +6,7 @@
export KDEV_PLUGIN_VERSION=512
# The list of architectures (expanded, without wildcards) that do not use clang
-no_clang_args = alpha hppa ia64 loong64 m68k sh4 sparc64 x32
+no_clang_args = alpha hppa ia64 m68k sh4 sparc64 x32
ifeq (,$(filter $(DEB_HOST_ARCH), $(no_clang_args)))
# The clang-N used for the build by the unversioned clang
current_clang_pkg = $(shell dpkg -S "$(shell realpath $(shell env PATH=$$(echo
"$$PATH" | sed -r -e 's|/usr/lib/ccache/?:||') which clang))" | cut -d: -f1)