Bug 191523 - math/scilab does not compile with openjdk7
Summary: math/scilab does not compile with openjdk7
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-01 05:46 UTC by Kenji Rikitake
Modified: 2014-07-28 10:49 UTC (History)
0 users

See Also:


Attachments
config.log.txt (91.80 KB, text/plain)
2014-07-01 05:46 UTC, Kenji Rikitake
no flags Details
patch-to-port.patch.txt (1.94 KB, patch)
2014-07-01 05:46 UTC, Kenji Rikitake
no flags Details | Diff
make.excerpt.utf8.txt (1.45 KB, text/plain)
2014-07-01 05:46 UTC, Kenji Rikitake
no flags Details
make.result.txt (9.06 KB, text/plain)
2014-07-01 05:47 UTC, Kenji Rikitake
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenji Rikitake 2014-07-01 05:46:00 UTC
Created attachment 144304 [details]
config.log.txt

uname -a:
FreeBSD minimax.priv.k2r.org 10.0-STABLE FreeBSD 10.0-STABLE #39 r267845: Wed Jun 25 08:59:13 JST 2014     root@minimax.priv.k2r.org:/usr/obj/usr/src/sys/K2RKERNEL  amd64

math/scilab (scilab-5.3.3_9) does not build due to (see config.log.txt):
1) libhpi.so does not exist in openjdk7 (in /usr/local/openjdk7/jre/lib) (see make.result.txt)
2) javadoc generates error if locale is C (a source code line with UTF-8 entry causes error) (javac generates the same error but does not stop compiling) (see make.excerpt.utf8.txt)

Workarounds:
(see patch-to-port.patch.txt)

The error 1) can be circumvented with a patch on ./configure.
The error 2) can be circumvented with adding LANG, LC_CTYPE, and LC_ALL as en_US.UTF-8 to MAKE_ENV in Makefile.
Comment 1 Kenji Rikitake 2014-07-01 05:46:27 UTC
Created attachment 144305 [details]
patch-to-port.patch.txt
Comment 2 Kenji Rikitake 2014-07-01 05:46:51 UTC
Created attachment 144306 [details]
make.excerpt.utf8.txt
Comment 3 Kenji Rikitake 2014-07-01 05:47:14 UTC
Created attachment 144307 [details]
make.result.txt
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2014-07-04 01:05:18 UTC
Over to maintainer.
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-07-10 10:08:46 UTC
A commit references this bug:

Author: makc
Date: Thu Jul 10 10:08:11 UTC 2014
New revision: 361436
URL: http://svnweb.freebsd.org/changeset/ports/361436

Log:
  math/scilab:
  - Fix build after recent switch to OpenJDK 1.7 [1]
  - Remove HOME from MAKE_ENV, it's now set in bsd.port.mk

  PR:		191523
  Submitted by:	kenji@k2r.org

Changes:
  head/math/scilab/Makefile
  head/math/scilab/files/patch-configure
Comment 6 commit-hook freebsd_committer freebsd_triage 2014-07-28 10:49:16 UTC
A commit references this bug:

Author: makc
Date: Mon Jul 28 10:48:22 UTC 2014
New revision: 363128
URL: http://svnweb.freebsd.org/changeset/ports/363128

Log:
  MFH: r361436

  math/scilab:
  - Fix build after recent switch to OpenJDK 1.7 [1]
  - Remove HOME from MAKE_ENV, it's now set in bsd.port.mk

  PR:		191523
  Submitted by:	kenji@k2r.org
  Approved by:	portmgr (bapt)

Changes:
_U  branches/2014Q3/
  branches/2014Q3/math/scilab/Makefile
  branches/2014Q3/math/scilab/files/patch-configure