Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24521

Update jna from 3.3.0-jenkins to 4.1.0 (or newer)

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core

      Currently, Jenkins uses a private copy of JNA:

      <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna</artifactId>
      <version>3.3.0-jenkins-3</version>
      </dependency>

      Due to using this private copy of jna, instead of the upstream version,
      Jenkins is not keeping up with the latest fixes that are going into
      JNA. This affects other platforms, such as FreeBSD, and Linux on ARM.

      For example, these bugs are related:

      JENKINS-22425
      JENKINS-21507
      JENKINS-10774

          [JENKINS-24521] Update jna from 3.3.0-jenkins to 4.1.0 (or newer)

          Craig Rodrigues added a comment - - edited

          @daniel: I sent a request for help to test here:
          https://groups.google.com/forum/#!searchin/jenkinsci-dev/jna/jenkinsci-dev/CmBBY8IPha8/fFKOKalrokQJ

          Also, I did some basic testing on a few platforms by exercising libpam4j:
          https://github.com/jenkinsci/jenkins/pull/1387#issuecomment-57076567

          Craig Rodrigues added a comment - - edited @daniel: I sent a request for help to test here: https://groups.google.com/forum/#!searchin/jenkinsci-dev/jna/jenkinsci-dev/CmBBY8IPha8/fFKOKalrokQJ Also, I did some basic testing on a few platforms by exercising libpam4j: https://github.com/jenkinsci/jenkins/pull/1387#issuecomment-57076567

          Daniel Beck added a comment -

          Right... maybe ask in the comment threads to know issues that may be resolved by this directly. I doubt many users (who are able and possibly willing to install and test a snapshot build) read the dev list.

          Daniel Beck added a comment - Right... maybe ask in the comment threads to know issues that may be resolved by this directly. I doubt many users (who are able and possibly willing to install and test a snapshot build) read the dev list.

          Code changed in jenkins
          User: Craig Rodrigues
          Path:
          core/src/main/java/hudson/util/jna/Advapi32.java
          core/src/main/java/hudson/util/jna/SHELLEXECUTEINFO.java
          core/src/main/java/hudson/util/jna/WINBASE.java
          http://jenkins-ci.org/commit/jenkins/1c1a4b75445ca71e1f9659499e3405d4d2b2a9e0
          Log:
          Add getFieldOrder() methods.

          Add getFieldOrder() methods to classes which extend com.sun.jna.Structure,
          for compatibility with newer versions of JNA. JENKINS-24521

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Craig Rodrigues Path: core/src/main/java/hudson/util/jna/Advapi32.java core/src/main/java/hudson/util/jna/SHELLEXECUTEINFO.java core/src/main/java/hudson/util/jna/WINBASE.java http://jenkins-ci.org/commit/jenkins/1c1a4b75445ca71e1f9659499e3405d4d2b2a9e0 Log: Add getFieldOrder() methods. Add getFieldOrder() methods to classes which extend com.sun.jna.Structure, for compatibility with newer versions of JNA. JENKINS-24521

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          core/src/main/java/hudson/util/jna/Advapi32.java
          core/src/main/java/hudson/util/jna/SHELLEXECUTEINFO.java
          core/src/main/java/hudson/util/jna/WINBASE.java
          http://jenkins-ci.org/commit/jenkins/e53fde10608bafcd1f6f82a625c33c8d5106fe94
          Log:
          Merge pull request #1410 from rodrigc/JENKINS-24521

          Add getFieldOrder() methods.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/util/jna/Advapi32.java core/src/main/java/hudson/util/jna/SHELLEXECUTEINFO.java core/src/main/java/hudson/util/jna/WINBASE.java http://jenkins-ci.org/commit/jenkins/e53fde10608bafcd1f6f82a625c33c8d5106fe94 Log: Merge pull request #1410 from rodrigc/ JENKINS-24521 Add getFieldOrder() methods.

          @danielbeck: I cloned all the plugins under https://github.com/jenkinsci/ and found only
          one plugin that still needed to be modified to support JNA 4.1.0.

          I already have a pull request submitted for that.
          https://github.com/jenkinsci/extras-memory-monitor/pull/5

          Craig Rodrigues added a comment - @danielbeck: I cloned all the plugins under https://github.com/jenkinsci/ and found only one plugin that still needed to be modified to support JNA 4.1.0. I already have a pull request submitted for that. https://github.com/jenkinsci/extras-memory-monitor/pull/5

          Code changed in jenkins
          User: Craig Rodrigues
          Path:
          pom.xml
          src/main/java/org/jvnet/hudson/Windows.java
          http://jenkins-ci.org/commit/extras-memory-monitor/5c4f38d2b9e70dffc22bcd488c292710335bfe14
          Log:
          Update to use JNA 4.1.0. JENKINS-24521

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Craig Rodrigues Path: pom.xml src/main/java/org/jvnet/hudson/Windows.java http://jenkins-ci.org/commit/extras-memory-monitor/5c4f38d2b9e70dffc22bcd488c292710335bfe14 Log: Update to use JNA 4.1.0. JENKINS-24521

          Code changed in jenkins
          User: Jesse Glick
          Path:
          pom.xml
          src/main/java/org/jvnet/hudson/Windows.java
          http://jenkins-ci.org/commit/extras-memory-monitor/d7f3f13f3832c890f611174e99fc700a84f41731
          Log:
          Merge pull request #5 from rodrigc/master

          Update to use JNA 4.1.0. JENKINS-24521

          Compare: https://github.com/jenkinsci/extras-memory-monitor/compare/3fef06ffe299...d7f3f13f3832

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/org/jvnet/hudson/Windows.java http://jenkins-ci.org/commit/extras-memory-monitor/d7f3f13f3832c890f611174e99fc700a84f41731 Log: Merge pull request #5 from rodrigc/master Update to use JNA 4.1.0. JENKINS-24521 Compare: https://github.com/jenkinsci/extras-memory-monitor/compare/3fef06ffe299...d7f3f13f3832

          Code changed in jenkins
          User: Craig Rodrigues
          Path:
          core/pom.xml
          licenseCompleter.groovy
          http://jenkins-ci.org/commit/jenkins/b88e55f54391d6dd06029dcd0ab0fc8c3dfc3a78
          Log:
          Update JNA to 4.1.0.

          JNA 4.1.0 has a proper license, so remove workaround in
          licenseCompleter.groovy. JENKINS-24521

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Craig Rodrigues Path: core/pom.xml licenseCompleter.groovy http://jenkins-ci.org/commit/jenkins/b88e55f54391d6dd06029dcd0ab0fc8c3dfc3a78 Log: Update JNA to 4.1.0. JNA 4.1.0 has a proper license, so remove workaround in licenseCompleter.groovy. JENKINS-24521

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/pom.xml
          licenseCompleter.groovy
          http://jenkins-ci.org/commit/jenkins/7230a38da5d03073dea93e9984cf68d6b0cdeafe
          Log:
          [FIXED JENKINS-24521] Merge branch 'pull-1387'

          Compare: https://github.com/jenkinsci/jenkins/compare/cf8f8114f48f...7230a38da5d0

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/pom.xml licenseCompleter.groovy http://jenkins-ci.org/commit/jenkins/7230a38da5d03073dea93e9984cf68d6b0cdeafe Log: [FIXED JENKINS-24521] Merge branch 'pull-1387' Compare: https://github.com/jenkinsci/jenkins/compare/cf8f8114f48f...7230a38da5d0

          Daniel Beck added a comment -

          You should (have) mention(ed) that the fix will only be in 1.586.

          Daniel Beck added a comment - You should (have) mention(ed) that the fix will only be in 1.586.

            Unassigned Unassigned
            rodrigc Craig Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: