[Git][java-team/libnb-platform-java][master] 5 commits: Import Debian changes 12.1-4
Emmanuel Bourg (@ebourg)
gitlab at salsa.debian.org
Wed Oct 14 15:58:14 BST 2026
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / libnb-platform-java
Commits:
bf65dc76 by tony mancill at 2026-10-14T16:20:24+02:00
Import Debian changes 12.1-4
libnb-platform18-java (12.1-4) unstable; urgency=medium
.
* Team upload
* Patch to remove Thread.suspend() from compilation (Closes: #1131662)
- - - - -
67dcd0fb by Emmanuel Bourg at 2026-10-14T16:45:07+02:00
Fixed the reproducibility of the update tracking files
- - - - -
78a22fbb by Emmanuel Bourg at 2026-10-14T16:45:21+02:00
Standards-Version updated to 4.7.4
- - - - -
3bfeaec3 by Emmanuel Bourg at 2026-10-14T16:45:43+02:00
Removed the Priority field
- - - - -
d3ca664b by Emmanuel Bourg at 2026-10-14T16:45:59+02:00
Upload to unstable
- - - - -
5 changed files:
- debian/changelog
- debian/control
- debian/patches/series
- + debian/patches/thread-method-deprecation.patch
- + debian/patches/update-tracking-source-date-epoch.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,19 @@
+libnb-platform18-java (12.1-5) unstable; urgency=medium
+
+ * Team upload
+ * Fixed the reproducibility of the update tracking files
+ * Standards-Version updated to 4.7.4
+ * Removed the Priority field
+
+ -- Emmanuel Bourg <ebourg at apache.org> Wed, 14 Oct 2026 16:45:53 +0200
+
+libnb-platform18-java (12.1-4) unstable; urgency=medium
+
+ * Team upload
+ * Patch to remove Thread.suspend() from compilation (Closes: #1131662)
+
+ -- tony mancill <tmancill at debian.org> Wed, 01 Jul 2026 06:38:53 -0700
+
libnb-platform18-java (12.1-3) unstable; urgency=medium
* Team upload
=====================================
debian/control
=====================================
@@ -1,6 +1,5 @@
Source: libnb-platform18-java
Section: java
-Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders:
Markus Koschany <apo at debian.org>
@@ -35,7 +34,7 @@ Build-Depends:
rdfind,
symlinks,
testng (>=6.8)
-Standards-Version: 4.6.2
+Standards-Version: 4.7.4
Vcs-Git: https://salsa.debian.org/java-team/libnb-platform-java.git
Vcs-Browser: https://salsa.debian.org/java-team/libnb-platform-java
Homepage: https://netbeans.org/
=====================================
debian/patches/series
=====================================
@@ -20,3 +20,5 @@ platform-libs.batik.read.patch
platform-libs.flatlaf.patch
netbeans-apisupport.harness.patch
allow-security-manager.patch
+thread-method-deprecation.patch
+update-tracking-source-date-epoch.patch
=====================================
debian/patches/thread-method-deprecation.patch
=====================================
@@ -0,0 +1,63 @@
+Index: libnb-platform18-java-12.1/harness/o.n.insane/src/org/netbeans/insane/scanner/ScannerUtils.java
+===================================================================
+--- libnb-platform18-java-12.1.orig/harness/o.n.insane/src/org/netbeans/insane/scanner/ScannerUtils.java
++++ libnb-platform18-java-12.1/harness/o.n.insane/src/org/netbeans/insane/scanner/ScannerUtils.java
+@@ -243,30 +243,34 @@ public final class ScannerUtils {
+ return ret;
+ }
+
+- @SuppressWarnings("deprecation")
+- private static void suspendAllThreads(Set except) {
+- Thread[] threads = getAllThreads();
+-
+- for (int i=0; i<threads.length; i++) {
+- if (!except.contains(threads[i])) {
+- if ((threads[i].getName().indexOf("VM") == -1) &&
+- (threads[i].getName().indexOf("CompilerTh") == -1) &&
+- (threads[i].getName().indexOf("Signal") == -1)) {
+- System.out.println("suspending " + threads[i]);
+- threads[i].suspend();
+- }
+- }
+- }
+- }
+-
+- @SuppressWarnings("deprecation")
+- private static void resumeAllThreads() {
+- Thread[] threads = getAllThreads();
+-
+- for (int i=0; i<threads.length; i++) {
+- threads[i].resume();
+- }
+- }
++// Thread.suspend()/resume() are deprecated JDK-8294320
++// These methods are private and no longer referenced in this class.
++// See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1131662
++//
++// @SuppressWarnings("deprecation")
++// private static void suspendAllThreads(Set except) {
++// Thread[] threads = getAllThreads();
++//
++// for (int i=0; i<threads.length; i++) {
++// if (!except.contains(threads[i])) {
++// if ((threads[i].getName().indexOf("VM") == -1) &&
++// (threads[i].getName().indexOf("CompilerTh") == -1) &&
++// (threads[i].getName().indexOf("Signal") == -1)) {
++// System.out.println("suspending " + threads[i]);
++// threads[i].suspend();
++// }
++// }
++// }
++// }
++//
++// @SuppressWarnings("deprecation")
++// private static void resumeAllThreads() {
++// Thread[] threads = getAllThreads();
++//
++// for (int i=0; i<threads.length; i++) {
++// threads[i].resume();
++// }
++// }
+
+ private static class ClassInfo {
+ private static Map<Class, ClassInfo> classInfoRegistry = new WeakHashMap<Class, ClassInfo>();
=====================================
debian/patches/update-tracking-source-date-epoch.patch
=====================================
@@ -0,0 +1,31 @@
+Description: Honour SOURCE_DATE_EPOCH for the install_time of the update tracking files
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/nbbuild/antsrc/org/netbeans/nbbuild/UpdateTracking.java
++++ b/nbbuild/antsrc/org/netbeans/nbbuild/UpdateTracking.java
+@@ -83,10 +83,24 @@
+ version.setVersion( spec_version );
+ version.setOrigin( origin );
+ version.setLast( true );
+- version.setInstall_time( System.currentTimeMillis() );
++ version.setInstall_time( getInstallTime() );
+ module.setVersion( version );
+ return version;
+ }
++
++ /** Returns SOURCE_DATE_EPOCH when set, so the update tracking files of a
++ * build are reproducible, and the current time otherwise. */
++ private static long getInstallTime() {
++ String epoch = System.getenv( "SOURCE_DATE_EPOCH" ); // NOI18N
++ if ( epoch != null ) {
++ try {
++ return Long.parseLong( epoch.trim() ) * 1000L;
++ } catch ( NumberFormatException ex ) {
++ // not a timestamp, fall back on the current time
++ }
++ }
++ return System.currentTimeMillis();
++ }
+
+ public String getVersionFromFile (File utf) throws BuildException {
+ this.setTrackingFile(utf.getParentFile(), utf.getName());
View it on GitLab: https://salsa.debian.org/java-team/libnb-platform-java/-/compare/5273857d08d274994e6629efea017e5549df9482...d3ca664befd601f6e91660061303160abab741a0
--
View it on GitLab: https://salsa.debian.org/java-team/libnb-platform-java/-/compare/5273857d08d274994e6629efea017e5549df9482...d3ca664befd601f6e91660061303160abab741a0
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/20261014/e1a26356/attachment.htm>
More information about the pkg-java-commits
mailing list