[MacPorts] #42105: fop and other java ports should check for JVM on activation

MacPorts noreply at macports.org
Mon Jan 13 10:04:47 PST 2014


#42105: fop and other java ports should check for JVM on activation
--------------------------------------+--------------------------------
  Reporter:  macports.5.msliczniak@…  |      Owner:  macports-tickets@…
      Type:  defect                   |     Status:  new
  Priority:  Normal                   |  Milestone:
 Component:  ports                    |    Version:  2.2.1
Resolution:                           |   Keywords:
      Port:  fop                      |
--------------------------------------+--------------------------------

Comment (by macports.5.msliczniak@…):

 Here: http://www.macports.org/install.php

 An item 5 optional could be added similar to what is there for X11 as item
 4 optional id there now but explaining that java should be installed. If
 the current state of openjdk7 works for macports, that can be an listed as
 an option there. But if that is the case then it should be a port too and
 used as a dependency for all the ports that run java now.

 But that is a big job, so ports like fop should fail early if there is not
 a working java. /usr/bin/java returns 1 afterall when there is not a
 working java installed on 10.9.x for example. I ran port install without
 the -v option first and I'm sure that somewhere there would have been info
 about what went wrong but did not scroll back. I just saw that for some
 reason a pdf was not able to be created. So I just assumed something like
 doxygen was failing and tried again with the -v this time. And it was a
 lot of scrolling to see what had happened.

 Maybe the idea was that when the person runs such a command the dialog box
 pops-up saying that there is no working java install, that would be a good
 clue, but it does not work when someone uses /usr/bin/login as I do or
 what about someone who ssh in, won't see that either.

 So conclusion and just my opinion:

 1) Should be mentioned on web page that some ports need java and where to
 get it.
 2) Ports that use java should check to see if there is a working java as
 part of install.
 3) (long term) Java should be a dep and built from source for those ports
 that need it.

-- 
Ticket URL: <https://trac.macports.org/ticket/42105#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list