Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-57515] update JNA library from 4.5.2 to 5.3.1 #4060

Merged
merged 4 commits into from
Jun 14, 2019

Conversation

mawinter69
Copy link
Contributor

@mawinter69 mawinter69 commented Jun 6, 2019

This solves problems with loading native librarie of JNA on AIX
platform when using openJDK or other JDKs that assume .so is the
extension for shared libraries (java-native-access/jna#1066)

See JENKINS-57515.

Proposed changelog entries

  • Update JNA from 4.5.2 to 5.3.1 to fix issue with shared library loading on AIX when using OpenJDK

Submitter checklist

  • JIRA issue is well described
  • Changelog entry appropriate for the audience affected by the change (users or developer, depending on the change). Examples
    * Use the Internal: prefix if the change has no user-visible impact (API, test frameworks, etc.)
  • Appropriate autotests or explanation to why this change has no tests
  • For dependency updates: links to external changelogs and, if possible, full diffs

Desired reviewers

This solves problems with loading native libraries of jna on AIX
platform when using openJDK or other JDKs that assume .so is the
extension for shared libraries
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We reviewed the incompatible changes together with @fcojfernandez , and it looks like there is no incompatible changes impacting the plugins within jenkinsci. We did not reviewed SVNkit tho: https://github.com/jenkinsci/svnkit

@mawinter69 could you please review the SVNKit library against https://github.com/java-native-access/jna/blob/master/CHANGES.md#breaking-changes? It may impact the SVN plugin

@@ -1442,7 +1441,7 @@ private SolarisProcess(int pid) throws IOException {
* Read the remainder of psinfo_t differently depending on whether the
* Java process is 32-bit or 64-bit.
*/
if (Pointer.SIZE == 8) {
Copy link
Member

@oleg-nenashev oleg-nenashev Jun 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a binary incompatible change in JNA?

UPD: No https://github.com/java-native-access/jna/blob/master/src/com/sun/jna/Pointer.java has no reference to SIZE anymore.

@@ -534,7 +534,7 @@ THE SOFTWARE.
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.5.2</version>
<version>5.3.1</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mawinter69
Copy link
Contributor Author

The svnkit used by subversion plugin is version 1.9.3. The svnkit in https://github.com/jenkinsci/svnkit seems to be no longer used by subversion plugin.
I compiled the current svnkit by getting sources from https://git.tmatesoft.com/repos/svnkit.git and using the 5.3.1 vesrion of jna which worked fine.
So my assumption is that svnkit is compatible with new JNA.

@oleg-nenashev
Copy link
Member

oleg-nenashev commented Jun 11, 2019 via email

@oleg-nenashev oleg-nenashev added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Jun 13, 2019
@oleg-nenashev
Copy link
Member

Will merge into the next weekly if no negative feedback.
Thanks @mawinter69 !

@oleg-nenashev oleg-nenashev merged commit ffa9abf into jenkinsci:master Jun 14, 2019
@oleg-nenashev
Copy link
Member

Looks like it caused regressions: https://issues.jenkins-ci.org/browse/JENKINS-58207

olivergondza pushed a commit that referenced this pull request Jul 1, 2019
* [JENKINS-57515] update jna library to 5.3.1

This solves problems with loading native libraries of jna on AIX
platform when using openJDK or other JDKs that assume .so is the
extension for shared libraries

* Pointer.SIZE -> Native.POINTER_SIZE

* remove unnecessary import

* adjust to changed api

(cherry picked from commit ffa9abf)
olivergondza added a commit that referenced this pull request Jul 11, 2019
@D4FR3NCH
Copy link

I was waiting for this revert (078c442) which I think will fix JENKINS-58211 as well.
I see in this commit that jenkins 2.196 is tagged but when I look at the core/pom.xml in tag 2.196 itself there is still JNA 5.3.1 not 4.5.2.
After updating to 2.196 Artifact Deployer plugin is then still broken.
Can you tell me when this revert will be merged in a version and which one please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants