[Git][java-team/vnu][master] Add loong64 to the architectures that need -Xss2048k
bastif (@bastif)
gitlab at salsa.debian.org
Thu May 7 06:56:43 BST 2026
bastif pushed to branch master at Debian Java Maintainers / vnu
Commits:
9b59d06c by Fab Stz at 2026-05-07T07:52:28+02:00
Add loong64 to the architectures that need -Xss2048k
This should fix the failure of the autopkgtest on loong64
- - - - -
7 changed files:
- debian/java-wrappers/vnu-server.in
- debian/java-wrappers/vnu.in
- debian/rules
- debian/tests/webapp_validate_common.sh
- debian/vnu-jetty12.README.Debian
- debian/vnu-jetty9.README.Debian
- debian/vnu-tomcat11.README.Debian
Changes:
=====================================
debian/java-wrappers/vnu-server.in
=====================================
@@ -90,7 +90,7 @@ if [ "$STOP" = 1 ]; then
exit
fi
-if [ "$(dpkg --print-architecture)" = "i386" ]; then
+if [ "$(dpkg --print-architecture)" = "i386" ] || [ "$(dpkg --print-architecture)" = "loong64" ]; then
JAVA_ARGS="-Xss2048k $JAVA_ARGS"
fi
=====================================
debian/java-wrappers/vnu.in
=====================================
@@ -15,7 +15,7 @@ if [ "$DEBUG_WRAPPER" ]; then
java_debug "Path to vnu.jar: $PATH_TO_VNU_JAR"
fi
-if [ "$(dpkg --print-architecture)" = "i386" ]; then
+if [ "$(dpkg --print-architecture)" = "i386" ] || [ "$(dpkg --print-architecture)" = "loong64" ]; then
JAVA_ARGS="-Xss2048k $JAVA_ARGS"
fi
=====================================
debian/rules
=====================================
@@ -50,8 +50,8 @@ export VNU_BUILDDEPS_CLASSPATH = $(cp)
export VNU_SERVER_BUILDDEPS_CLASSPATH = $(cp_jetty)
export DEB_VERSION_UPSTREAM
-ifneq ($(filter i386,$(DEB_HOST_ARCH)),)
- # On i386, we have to set stacksize=512 (will result in -Xss=512k)
+ifneq ($(filter i386 loong64,$(DEB_HOST_ARCH)),)
+ # On i386 & loong64, we have to set stacksize=512 (will result in -Xss=512k)
# Otherwise we would have this error:
#StackOverflowError while evaluating HTML schema.
#The checker requires a java thread stack size of at least 512k.
=====================================
debian/tests/webapp_validate_common.sh
=====================================
@@ -79,20 +79,20 @@ start_server()
if [ -n "$AUTOPKGTEST_TMP" ]; then
case "$server" in
jetty9)
- if [ "$(dpkg --print-architecture)" = "i386" ]; then
+ if [ "$(dpkg --print-architecture)" = "i386" ] || [ "$(dpkg --print-architecture)" = "loong64" ]; then
echo "Adding -Xss2048k JVM option."
echo -e '[Service]\nEnvironment="JAVA_OPTIONS=-Xss2048k"' | sudo systemctl edit --drop-in vnu-jetty9.conf --stdin jetty9.service
fi
;;
jetty12)
- if [ "$(dpkg --print-architecture)" = "i386" ]; then
+ if [ "$(dpkg --print-architecture)" = "i386" ] || [ "$(dpkg --print-architecture)" = "loong64" ]; then
echo "Adding -Xss2048k JVM option."
echo -e '[Service]\nEnvironment="JAVA_OPTIONS=-Xss2048k"' | sudo systemctl edit --drop-in vnu-jetty12.conf --stdin jetty12.service
fi
;;
tomcat11)
sudo sed -i '/common.loader/ s#$#,/usr/share/tomcat-jakartaee-migration/lib/*.jar#' "/etc/tomcat11/catalina.properties"
- if [ "$(dpkg --print-architecture)" = "i386" ]; then
+ if [ "$(dpkg --print-architecture)" = "i386" ] || [ "$(dpkg --print-architecture)" = "loong64" ]; then
echo "Adding -Xss2048k JVM option."
echo -e '[Service]\nEnvironment="CATALINA_OPTS=-Xss2048k"' | sudo systemctl edit --drop-in vnu-tomcat11.conf --stdin tomcat11.service
fi
=====================================
debian/vnu-jetty12.README.Debian
=====================================
@@ -2,8 +2,8 @@ With jetty12, vnu webapp is reachable at:
http://localhost:8080/vnu
-If running on i386 architecture, you also have to launch jetty with the
-following JVM option "-Xss2048k".
+On some architectures (eg. i386, loong64), you may also have to launch
+jetty with the following JVM option "-Xss2048k".
To achieve this, you could set the JAVA_OPTIONS environment variable this way.
=====================================
debian/vnu-jetty9.README.Debian
=====================================
@@ -2,8 +2,8 @@ With jetty9, vnu webapp is reachable at:
http://localhost:8080/vnu
-If running on i386 architecture, you also have to launch jetty with the
-following JVM option "-Xss2048k".
+On some architectures (eg. i386, loong64), you may also have to launch
+jetty with the following JVM option "-Xss2048k".
To achieve this, you could set the JAVA_OPTIONS environment variable this way.
=====================================
debian/vnu-tomcat11.README.Debian
=====================================
@@ -14,8 +14,8 @@ With tomcat11, vnu webapp is reachable at:
http://localhost:8080/vnu
-If running on i386 architecture, you also have to launch tomcat with the
-following JVM option "-Xss2048k".
+On some architectures (eg. i386, loong64), you may also have to launch
+tomcat with the following JVM option "-Xss2048k".
To achieve this, you could set the CATALINA_OPTS environment variable this way.
echo -e '[Service]\nEnvironment="CATALINA_OPTS=-Xss2048k"' | \
View it on GitLab: https://salsa.debian.org/java-team/vnu/-/commit/9b59d06c1f703d26d17151c7d5f0fa7eb8a1db22
--
View it on GitLab: https://salsa.debian.org/java-team/vnu/-/commit/9b59d06c1f703d26d17151c7d5f0fa7eb8a1db22
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20260507/ee12daab/attachment.htm>
More information about the pkg-java-commits
mailing list