Summary: | java.io.ProcessBuilder not working in java/openjdk8 on i386 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Jimmy Kelley <ljboiler> | ||||
Component: | Individual Port(s) | Assignee: | freebsd-java (Nobody) <java> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | jkim | ||||
Priority: | --- | Flags: | ljboiler:
maintainer-feedback?
(java) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Jimmy Kelley
2014-10-17 14:58:43 UTC
Auto-assigned to maintainer java@FreeBSD.org I've tracked the cause of the problem down to the fact that the os.arch system property ( System.getProperty("os.arch") ) that used to return 'i386' on the 32-bit FreeBSD platforms is now returning 'x86'; this causes the ProcessBuilder to fail when it's looking for the process spawner helper in the {java.home}/lib/{os.arch} directory because the installation is putting the arch-specific native stuff in a 'i386' directory. Created attachment 148769 [details]
Fix platform-specific macros.
(In reply to Jimmy Kelley from comment #2) > I've tracked the cause of the problem down to the fact that the os.arch > system property ( System.getProperty("os.arch") ) that used to return 'i386' > on the 32-bit FreeBSD platforms is now returning 'x86'; this causes the > ProcessBuilder to fail when it's looking for the process spawner helper in > the {java.home}/lib/{os.arch} directory because the installation is putting > the arch-specific native stuff in a 'i386' directory. Good catch! Please try the attached patch. (In reply to Jung-uk Kim from comment #4) > (In reply to Jimmy Kelley from comment #2) > > I've tracked the cause of the problem down to the fact that the os.arch > > system property ( System.getProperty("os.arch") ) that used to return 'i386' > > on the 32-bit FreeBSD platforms is now returning 'x86'; this causes the > > ProcessBuilder to fail when it's looking for the process spawner helper in > > the {java.home}/lib/{os.arch} directory because the installation is putting > > the arch-specific native stuff in a 'i386' directory. > > Good catch! Please try the attached patch. Works great! I even have the Eclipse upgrade I've been working on successfully built and running with it. Thanks! A commit references this bug: Author: jkim Date: Thu Oct 30 16:30:37 UTC 2014 New revision: 371759 URL: https://svnweb.freebsd.org/changeset/ports/371759 Log: Merge Linux-specific changes to BSD patches. Most importantly, this change corrects 'os.arch' property for i386 to fix regressions. PR: 194419 Changes: head/java/openjdk8/Makefile head/java/openjdk8/files/patch-bsd head/java/openjdk8-jre/Makefile |