Merge ~vpa1977/ubuntu/+source/visualvm:2.1.6upgrade into ubuntu/+source/visualvm:ubuntu/devel

Proposed by Vladimir Petko
Status: Needs review
Proposed branch: ~vpa1977/ubuntu/+source/visualvm:2.1.6upgrade
Merge into: ubuntu/+source/visualvm:ubuntu/devel
Prerequisite: ~vpa1977/ubuntu/+source/visualvm:new-upstream2.1.6
Diff against target: 136 lines (+33/-46)
5 files modified
debian/changelog (+9/-0)
debian/control (+2/-1)
debian/patches/org.openide.util.lookup.patch (+22/-4)
debian/patches/series (+0/-1)
dev/null (+0/-40)
Reviewer Review Type Date Requested Status
git-ubuntu import Pending
Dave Jones Pending
Review via email: mp+447222@code.launchpad.net

This proposal supersedes a proposal from 2023-07-17.

Description of the change

Update VisualVM to the latest version in mantic.

Summary of changes:
   * VisualVM release 2.1.6 (LP: #2026700).
    - Release notes: https://visualvm.github.io/relnotes.html.
  * d/p/JDK17-FTBFS.patch: dropped as it is no longer needed.
  * d/p/org.openide.util.lookup.patch: refresh patch.

PPA: ppa:vpa1977/visualvm [1]

Testing:
   1) upgrade/install/remove package (see comment)
   2) Basic functionality:
     $sudo snap install eclipse --classic
     $visualvm
    check that eclipse appears in the visualvm tree and tabs with VM information are populated

[1] https://launchpad.net/~vpa1977/+archive/ubuntu/visualvm

To post a comment you must log in.
Revision history for this message
Vladimir Petko (vpa1977) : Posted in a previous version of this proposal
Revision history for this message
Vladimir Petko (vpa1977) wrote (last edit ): Posted in a previous version of this proposal

I have tried to add more openjdk versions to the launcher patch, but visualvm itself crashes with security manager exception when running under openjdk-20. I have left launcher patch unchanged.

Revision history for this message
Vladimir Petko (vpa1977) wrote : Posted in a previous version of this proposal
Download full text (6.4 KiB)

Basic testing:

Package install:

---------------------------cut-----------------------
apt install visualvm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  visualvm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 4202 kB of archives.
After this operation, 21.8 MB of additional disk space will be used.
Get:1 https://ppa.launchpadcontent.net/vpa1977/visualvm/ubuntu mantic/main amd64 visualvm all 2.1.6~us1-0ubuntu1~ppa3 [4202 kB]
Fetched 4202 kB in 13s (332 kB/s)
Selecting previously unselected package visualvm.
(Reading database ... 34879 files and directories currently installed.)
Preparing to unpack .../visualvm_2.1.6~us1-0ubuntu1~ppa3_all.deb ...
Unpacking visualvm (2.1.6~us1-0ubuntu1~ppa3) ...
Setting up visualvm (2.1.6~us1-0ubuntu1~ppa3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
------------------------------------------cut----------

Package removal:
------------------------------------------cut----------
apt remove visualvm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  adwaita-icon-theme alsa-topology-conf alsa-ucm-conf ant ant-optional antlr3 at-spi2-common at-spi2-core ca-certificates-java dconf-gsettings-backend dconf-service default-jdk default-jdk-headless default-jre default-jre-headless
  fontconfig fontconfig-config fonts-dejavu-core fonts-dejavu-extra gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme java-common javahelp2 junit4 libantlr-java libantlr3-runtime-java
  libapache-pom-java libasm-java libasound2 libasound2-data libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libbsh-java
  libcairo-gobject2 libcairo2 libcommons-codec-java libcommons-io-java libcommons-logging-java libcommons-parent-java libcups2 libdatrie1 libdconf1 libdeflate0 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2
  libdrm-radeon1 libdrm2 libequinox-osgi-java libfelix-framework-java libfelix-main-java libfontconfig1 libfontenc1 libfreetype6 libgail-common libgail18 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgif7
  libgl1 libgl1-amber-dri libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgraphite2-3 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libhamcrest-java libharfbuzz0b libice-dev libice6 libjbig0 libjcommander-java
  libjna-java libjna-jni libjna-platform-java libjpeg-turbo8 libjpeg8 libjson-simple-java libjsr305-java liblcms2-2 liblerc4 libllvm15 libnb-org-openide-modules-java libnb-org-openide-util-java libnb-org-openide-util-lookup-java
  libnb-platform18-java libnspr4 libnss3 libosgi-annotation-java libosgi-compendium-java libosgi-core-java libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciacce...

Read more...

Revision history for this message
Dave Jones (waveform) wrote : Posted in a previous version of this proposal

Looks largely fine, but the version number in the changelog looks wrong?

review: Needs Fixing
Revision history for this message
Vladimir Petko (vpa1977) wrote (last edit ): Posted in a previous version of this proposal

> Looks largely fine, but the version number in the changelog looks wrong?
Since we are uploading the package before Debian, we need to make sure that the original tarball can be replaced by the Debian version, hence ~us1 suffix to indicate the Ubuntu-specific repack.
This was suggested some time ago when I made a mistake with openjdk original tarball, e.g. see[1]

[1] https://launchpad.net/ubuntu/+source/openjdk-17/+publishinghistory

Revision history for this message
Vladimir Petko (vpa1977) wrote : Posted in a previous version of this proposal

checked re-downloading original tarball with uscan - no differences introduced by the repack, so removed the suffix.

Revision history for this message
Dave Jones (waveform) wrote : Posted in a previous version of this proposal

>> Looks largely fine, but the version number in the changelog looks wrong?
> Since we are uploading the package before Debian, we need to make sure that the original tarball can be replaced by the Debian version, hence ~us1 suffix to indicate the Ubuntu-specific repack.
> This was suggested some time ago when I made a mistake with openjdk original tarball, e.g. see[1]

Ah, that makes sense, thanks for the explanation! Thanks for checking uscan produces the same output -- that gives us more confidence we're likely to be uploading what Debian will be in future. Still, the ~us1 suffix makes a lot of sense to me now, and it's better to be safe than sorry so I'll strip the top commit off here, and upload with that suffix in place. Just in case!

review: Approve

Unmerged commits

bb122b9... by Vladimir Petko

remove repack suffix

51633aa... by Vladimir Petko

remove uneeded patch

d82bcdb... by Vladimir Petko

update patch for 2.1.6

0d3146a... by Vladimir Petko

mantainer

e555f34... by Vladimir Petko

changelog

1af2eb7... by Vladimir Petko

New upstream release 2.1.6

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 01215ed..86f8dd1 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+visualvm (2.1.6-0ubuntu1) mantic; urgency=medium
7+
8+ * VisualVM release 2.1.6 (LP: #2026700).
9+ - Release notes: https://visualvm.github.io/relnotes.html.
10+ * d/p/JDK17-FTBFS.patch: dropped as it is no longer needed.
11+ * d/p/org.openide.util.lookup.patch: refresh patch.
12+
13+ -- Vladimir Petko <vladimir.petko@canonical.com> Thu, 20 Jul 2023 08:15:39 +1200
14+
15 visualvm (2.1.5-1) unstable; urgency=medium
16
17 * Team upload.
18diff --git a/debian/control b/debian/control
19index f58d626..bc10a7a 100644
20--- a/debian/control
21+++ b/debian/control
22@@ -1,7 +1,8 @@
23 Source: visualvm
24 Section: java
25 Priority: optional
26-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
27+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
28+XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
29 Uploaders:
30 Matthias Klose <doko@ubuntu.com>,
31 Emmanuel Bourg <ebourg@apache.org>
32diff --git a/debian/patches/JDK17-FTBFS.patch b/debian/patches/JDK17-FTBFS.patch
33deleted file mode 100644
34index f6eb8ec..0000000
35--- a/debian/patches/JDK17-FTBFS.patch
36+++ /dev/null
37@@ -1,40 +0,0 @@
38-From: Markus Koschany <apo@debian.org>
39-Date: Sun, 22 Jan 2023 22:07:53 +0100
40-Subject: JDK17 FTBFS
41-
42-Fix FTBFS with OpenJDK 17.
43-
44-Forwarded: no
45----
46- .../gotosource/src/org/graalvm/visualvm/gotosource/SourcesRoot.java | 3 ++-
47- .../org/graalvm/visualvm/gotosource/options/SourcesOptionsPanel.java | 3 ++-
48- 2 files changed, 4 insertions(+), 2 deletions(-)
49-
50-diff --git a/visualvm/gotosource/src/org/graalvm/visualvm/gotosource/SourcesRoot.java b/visualvm/gotosource/src/org/graalvm/visualvm/gotosource/SourcesRoot.java
51-index ed39568..3f33c1b 100644
52---- a/visualvm/gotosource/src/org/graalvm/visualvm/gotosource/SourcesRoot.java
53-+++ b/visualvm/gotosource/src/org/graalvm/visualvm/gotosource/SourcesRoot.java
54-@@ -104,7 +104,8 @@ public final class SourcesRoot {
55- }
56-
57- private static SourcePathHandle getHandleInArchive(Path archive, String sourcePath, String[] subPaths, Charset encoding) throws Throwable {
58-- FileSystem archiveFileSystem = FileSystems.newFileSystem(archive, null);
59-+ java.lang.ClassLoader nullClassLoader = null;
60-+ FileSystem archiveFileSystem = FileSystems.newFileSystem(archive, nullClassLoader);
61- if (subPaths == null) {
62- Path sourceFile = archiveFileSystem.getPath(sourcePath);
63- return isFile(sourceFile) ? new SourcePathHandle(sourceFile, true, encoding) : null;
64-diff --git a/visualvm/gotosource/src/org/graalvm/visualvm/gotosource/options/SourcesOptionsPanel.java b/visualvm/gotosource/src/org/graalvm/visualvm/gotosource/options/SourcesOptionsPanel.java
65-index 9873811..7acf837 100644
66---- a/visualvm/gotosource/src/org/graalvm/visualvm/gotosource/options/SourcesOptionsPanel.java
67-+++ b/visualvm/gotosource/src/org/graalvm/visualvm/gotosource/options/SourcesOptionsPanel.java
68-@@ -787,7 +787,8 @@ final class SourcesOptionsPanel extends JPanel {
69- }
70-
71- private static List<String> getArchiveSubDirs(File root) {
72-- try (FileSystem archiveFileSystem = FileSystems.newFileSystem(root.toPath(), null)) {
73-+ java.lang.ClassLoader nullClassLoader = null;
74-+ try (FileSystem archiveFileSystem = FileSystems.newFileSystem(root.toPath(), nullClassLoader)) {
75- Path archive = archiveFileSystem.getRootDirectories().iterator().next();
76- List<Path> subfolders = Files.walk(archive, 1).filter(Files::isDirectory).collect(Collectors.toList());
77-
78diff --git a/debian/patches/org.openide.util.lookup.patch b/debian/patches/org.openide.util.lookup.patch
79index 91eb288..740ec88 100644
80--- a/debian/patches/org.openide.util.lookup.patch
81+++ b/debian/patches/org.openide.util.lookup.patch
82@@ -8,8 +8,6 @@ Fix FTBFS due to an older version of org.openide.util.lookup in Debian.
83 visualvm/applicationviews/nbproject/project.xml | 2 +-
84 2 files changed, 2 insertions(+), 2 deletions(-)
85
86-diff --git a/plugins/jfr.streaming/nbproject/project.xml b/plugins/jfr.streaming/nbproject/project.xml
87-index c5cce5d..f87c5f5 100644
88 --- a/plugins/jfr.streaming/nbproject/project.xml
89 +++ b/plugins/jfr.streaming/nbproject/project.xml
90 @@ -99,7 +99,7 @@
91@@ -21,8 +19,6 @@ index c5cce5d..f87c5f5 100644
92 </run-dependency>
93 </dependency>
94 <dependency>
95-diff --git a/visualvm/applicationviews/nbproject/project.xml b/visualvm/applicationviews/nbproject/project.xml
96-index 6385c54..e4ecf1d 100644
97 --- a/visualvm/applicationviews/nbproject/project.xml
98 +++ b/visualvm/applicationviews/nbproject/project.xml
99 @@ -143,7 +143,7 @@
100@@ -34,3 +30,25 @@ index 6385c54..e4ecf1d 100644
101 </run-dependency>
102 </dependency>
103 <dependency>
104+--- a/visualvm/application/nbproject/project.xml
105++++ b/visualvm/application/nbproject/project.xml
106+@@ -79,7 +79,7 @@
107+ <build-prerequisite/>
108+ <compile-dependency/>
109+ <run-dependency>
110+- <specification-version>8.50</specification-version>
111++ <specification-version>8.42</specification-version>
112+ </run-dependency>
113+ </dependency>
114+ <dependency>
115+--- a/visualvm/jmx/nbproject/project.xml
116++++ b/visualvm/jmx/nbproject/project.xml
117+@@ -97,7 +97,7 @@
118+ <build-prerequisite/>
119+ <compile-dependency/>
120+ <run-dependency>
121+- <specification-version>8.50</specification-version>
122++ <specification-version>8.42</specification-version>
123+ </run-dependency>
124+ </dependency>
125+ <dependency>
126diff --git a/debian/patches/series b/debian/patches/series
127index bea0f42..43dc03e 100644
128--- a/debian/patches/series
129+++ b/debian/patches/series
130@@ -1,6 +1,5 @@
131 03-launcher.patch
132 01-gcc-settings.patch
133 jfr.generic.patch
134-JDK17-FTBFS.patch
135 no-flatlaf-support.patch
136 org.openide.util.lookup.patch

Subscribers

People subscribed via source and target branches