Your message dated Thu, 24 Oct 2024 13:04:19 +0000
with message-id <[email protected]>
and subject line Bug#1085984: fixed in collectd 5.12.0-20
has caused the Debian Bug report #1085984,
regarding collectd: FTBFS: Symbol 'JNI_CreateJavaVM' and grpc not found
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1085984: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085984
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: collectd
Version: 5.12.0-19
Severity: normal
Tags: patch
User: [email protected]
Usertags: loong64
Hi maintainers,
Compiling the collectd(5.12.0-19) failed for loong64 in the Debian
Package Auto-Building environment.
The build error log is as follows(at configure stage),
```
gpu_nvidia . . . . . no (disabled on command line)
grpc . . . . . . . . no (libgrpc++ not found) (dependency error)
hddtemp . . . . . . . no (disabled on command line)
......
gpu_nvidia . . . . . no (disabled on command line)
grpc . . . . . . . . no (libgrpc++ not found) (dependency error)
hddtemp . . . . . . . no (disabled on command line)
......
configure: error: "Some plugins are missing dependencies - see the
summary above for details"
-e
.....
```
The full log can be found at
https://buildd.debian.org/status/fetch.php?pkg=collectd&arch=loong64&ver=5.12.0-19&stamp=1729640044&raw=0.
After analyzing, there are 2 reasons.
1. missing loong64 dependency for libgrpc++-dev in d/control.
2. for loong64 (build zero in openjdk-21), libjvm.so was supported in
/usr/lib/jvm/default-java/lib/zero/ [1][2], not
/usr/lib/jvm/default-java/lib/server/.
use command 'JAVA_LDFLAGS = -L$(JVM_SERVER_DIR) -Wl,-rpath
-Wl,$(JVM_SERVER_DIR)'.
output is JAVA_LDFLAGS="-L -Wl,-rpath -Wl," , can not found libjvm.so
for loong64.
Please consider the patch I attached.
Please consider the patch I attached.
1. found grpc in configure stage.
* d/control: add libgrpc++-dev dependency for loong64.
2. output of $JAVA_LDFLAGS is normal.
* d/rules: find libjvm.so from $(JAVA_HOME)/lib/zero for loong64.
JAVA_LDFLAGS="-L/usr/lib/jvm/default-java/lib/zero -Wl,-rpath
-Wl,/usr/lib/jvm/default-java/lib/zero" \
I have built collectd successfully in my local ENV and all test cases
passed.
```
Testsuite summary for collectd 5.12.0.git
=========================================
# TOTAL: 34
# PASS: 34
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
......
dpkg-deb: building package 'libcollectdclient1t64' in
'../libcollectdclient1t64_5.12.0-19+loong64_loong64.deb'.
dpkg-genbuildinfo -O../collectd_5.12.0-19+loong64_loong64.buildinfo
dpkg-genchanges -O../collectd_5.12.0-19+loong64_loong64.changes
```
Please add loong64 support in the next upload.
Your opinions are welcome.
[1]: https://github.com/openjdk/jdk/pull/5440
[2]: https://github.com/openjdk/jdk/pull/4787
Thanks,
Dandan Zhang
diff -Nru collectd-5.12.0/debian/.gitignore collectd-5.12.0/debian/.gitignore
--- collectd-5.12.0/debian/.gitignore 2024-10-19 23:11:57.000000000 +0000
+++ collectd-5.12.0/debian/.gitignore 1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-*.swp
diff -Nru collectd-5.12.0/debian/changelog collectd-5.12.0/debian/changelog
--- collectd-5.12.0/debian/changelog 2024-10-19 23:11:57.000000000 +0000
+++ collectd-5.12.0/debian/changelog 2024-10-24 09:22:15.000000000 +0000
@@ -1,3 +1,10 @@
+collectd (5.12.0-19+loong64) unreleased; urgency=medium
+
+ * d/control: add libgrpc++-dev dependency for loong64.
+ * d/rules: find libjvm.so from $(JAVA_HOME)/lib/zero for loong64.
+
+ -- Dandan Zhang <[email protected]> Thu, 24 Oct 2024 17:22:15 +0800
+
collectd (5.12.0-19) unstable; urgency=medium
[ James Morris ]
diff -Nru collectd-5.12.0/debian/control collectd-5.12.0/debian/control
--- collectd-5.12.0/debian/control 2024-10-19 23:11:57.000000000 +0000
+++ collectd-5.12.0/debian/control 2024-10-24 09:16:38.000000000 +0000
@@ -21,7 +21,7 @@
libgeom-dev [kfreebsd-any],
libgcrypt20-dev,
libglib2.0-dev,
- libgrpc++-dev [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x],
+ libgrpc++-dev [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x
loong64],
libgps-dev,
libhiredis-dev,
libi2c-dev [!hurd-any],
diff -Nru collectd-5.12.0/debian/rules collectd-5.12.0/debian/rules
--- collectd-5.12.0/debian/rules 2024-10-19 23:11:57.000000000 +0000
+++ collectd-5.12.0/debian/rules 2024-10-24 09:19:58.000000000 +0000
@@ -49,6 +49,12 @@
JAVA_CPPFLAGS = -I$(JAVA_HOME)/include
JAVA_LDFLAGS = -L$(JVM_SERVER_DIR) -Wl,-rpath -Wl,$(JVM_SERVER_DIR)
+# find libjvm.so from $(JAVA_HOME)/lib/zero
+ifeq ($(DEB_HOST_ARCH),loong64)
+ JVM_DIR = $(shell find -L "$(JAVA_HOME)" -type f \( -name libjvm.so \) -exec
'dirname' '{}' ';' 2>/dev/null | LC_ALL=C sort | head -n 1)
+ JAVA_LDFLAGS = -L$(JVM_DIR) -Wl,-rpath -Wl,$(JVM_DIR)
+endif
+
confflags = --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
--mandir=\$${prefix}/share/man \
--- End Message ---
--- Begin Message ---
Source: collectd
Source-Version: 5.12.0-20
Done: Bernd Zeimetz <[email protected]>
We believe that the bug you reported is fixed in the latest version of
collectd, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Bernd Zeimetz <[email protected]> (supplier of updated collectd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 24 Oct 2024 14:42:15 +0200
Source: collectd
Architecture: source
Version: 5.12.0-20
Distribution: unstable
Urgency: medium
Maintainer: Collectd Packaging Team <[email protected]>
Changed-By: Bernd Zeimetz <[email protected]>
Closes: 1085984
Changes:
collectd (5.12.0-20) unstable; urgency=medium
.
* [3072a6a] Let configure find JAVA_LDFLAGS/CPPFLAGS.
The included .mk file doesn't define the necessary variables on all
architectures.
* [388a0a6] Build with grpc on loong64 (Closes: #1085984)
Checksums-Sha1:
838229ead9de71cafe0930687309ff4bc1c1e635 4325 collectd_5.12.0-20.dsc
2511d9e6408335a0f6e9492d10e417a0a32ae743 83020 collectd_5.12.0-20.debian.tar.xz
c05913612c46c44b7d4374d13019ea6e9ba90755 12312
collectd_5.12.0-20_source.buildinfo
Checksums-Sha256:
09d25302829c97e19acc08db4da95bf122d1b7bb2ced13af24f4cfd221a33c3d 4325
collectd_5.12.0-20.dsc
db92f1028e0d6d5c348f8497c1d4ec41eb02fb687da809e177282ec069741f03 83020
collectd_5.12.0-20.debian.tar.xz
06f03044ebebed19b9d8803245ec5cdd68a31b96f46b36d1a4669abf862a2604 12312
collectd_5.12.0-20_source.buildinfo
Files:
3f688a6b04e19ed574c7114369fd767e 4325 utils optional collectd_5.12.0-20.dsc
162dcd5d5a9ccb1a64be80ccec87ee94 83020 utils optional
collectd_5.12.0-20.debian.tar.xz
2ad010cab536f9e71dd9da304cc9bb9b 12312 utils optional
collectd_5.12.0-20_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE7KHj8o4RJDLUhd2V6zYXGm/5Q18FAmcaQqoACgkQ6zYXGm/5
Q1/52RAAhzyEoei8ZgbyflOFl96biB8kGxvyxnCf+eMtXZvA5k2JZPkbiC4/4MN+
8peXWwJCZS4LfLrWovAPus/QqVPotHiY068gpzyDdU1O9CNdor3FdTSV4JaKEcB9
2k5WLBGSAZU1wyebp2eHZOOvrImoCaUZayOAX4DtJ7H87WwcPD5iFy4RGOUVD/nP
wTs5YKKYzcBnnAKM5ZigRTKYtTETeeVoBoJz6q5j69NNtjVJUzCLn6s7/G3i2FDX
LnzFnZpdZJLvdglLcuv9LVAqtFvnI6CiRqlC39u+V+8xJw8g7mKKj7LNndXZ2ERx
fGDBiZyzyCAaHKrz9ZMH/bLyLEsLgm/Qjn/JRhyFHTOZDjn+D/BkxjOJoCCC4MxI
M58MXoz68S9XbTOu2Go9jXK930RQgcY1uBvWeMu3EyAsK2rmN0lIm4wInNqsGqrG
wcHenXUViVQNlsTbAzAc65Ho3B+IcgaqD8YLocIEHbXzgOAVhfDa8PwbEovJWHAm
fUDWdrrKuDRkKHQSR2VTk1vKfBWmWAFpzrOit1fihSzIUYxHgoSPpHD+MCgr0eDF
ky2lZQoXhmZBbzT/pMwrD4AXdY41RZb5a9BiM6lYHUpMIiwr+pJKCqTvY00AlffE
0zKVvgAdytRbFAq4bEaOuTYfbZYpw4AebZBynCCSBA5V/rqR9Bw=
=eNkn
-----END PGP SIGNATURE-----
pgpLCXmNog35J.pgp
Description: PGP signature
--- End Message ---