Bug 198021 - [patch] net/serviio: Export a JAVA_VERSION to handle when multiple Java versions are installed
Summary: [patch] net/serviio: Export a JAVA_VERSION to handle when multiple Java versi...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexander Leidinger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-24 23:47 UTC by Jason Unovitch
Modified: 2015-03-13 10:26 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (netchild)


Attachments
Patch to export JAVA_VERSION in serviiod script and bump PORTREVISION (1.34 KB, patch)
2015-02-24 23:47 UTC, Jason Unovitch
no flags Details | Diff
Poudriere bulk -t log for serviio-1.5_1 patch (24.88 KB, text/x-log)
2015-02-24 23:50 UTC, Jason Unovitch
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Unovitch freebsd_committer freebsd_triage 2015-02-24 23:47:46 UTC
Created attachment 153490 [details]
Patch to export JAVA_VERSION in serviiod script and bump PORTREVISION

I missed this case when updating Serviio.  When multiple Java versions are installed, the javavm program will use the current default of OpenJDK7 which is unsupported with Serviio.

FreeBSD Forum thread issue:
https://forums.freebsd.org/threads/net-serviio-not-using-openjdk8.50507/

Log Message Pre-patch:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/serviio/MediaServer : Unsupported major.minor version 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-24 23:47:46 UTC
Auto-assigned to maintainer netchild@FreeBSD.org
Comment 2 Jason Unovitch freebsd_committer freebsd_triage 2015-02-24 23:50:34 UTC
Created attachment 153491 [details]
Poudriere bulk -t log for serviio-1.5_1 patch
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-03-13 10:25:01 UTC
A commit references this bug:

Author: netchild
Date: Fri Mar 13 10:24:45 UTC 2015
New revision: 381171
URL: https://svnweb.freebsd.org/changeset/ports/381171

Log:
  - Update to 1.5.1 (automatic library updates can be enabled again)
  - Fix problems when more than one JVM is installed [1]

  PR:		198021 [1]
  Noticed by:	jason.unovitch@gmail.com [1]

Changes:
  head/UPDATING
  head/net/serviio/Makefile
  head/net/serviio/distinfo
  head/net/serviio/files/serviiod.in
Comment 4 Alexander Leidinger freebsd_committer freebsd_triage 2015-03-13 10:26:01 UTC
JVM fix included in the update to 1.5.1.