Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2020 12:21:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 248169] cad/sweethome3d: set java version to 8 - doesn't build with 11+
Message-ID:  <bug-248169-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248169

            Bug ID: 248169
           Summary: cad/sweethome3d: set java version to 8 - doesn't build
                    with 11+
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: danfe@FreeBSD.org
          Reporter: vvd@unislabs.com
             Flags: maintainer-feedback?(danfe@FreeBSD.org)
          Assignee: danfe@FreeBSD.org
 Attachment #216658 maintainer-approval?
             Flags:
             Flags: maintainer-feedback?

Created attachment 216658
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D216658&action=
=3Dedit
Set java version to 8

If you have "DEFAULT_VERSIONS+=3D java=3D11" in make.conf, then cad/sweetho=
me3d
fails to build:
=3D=3D=3D> Fetching all distfiles required by sweethome3d-6.4 for building
=3D=3D=3D>  Extracting for sweethome3d-6.4
=3D> SHA256 Checksum OK for SweetHome3D-6.4-src.zip.
=3D=3D=3D>  Patching for sweethome3d-6.4
=3D=3D=3D>  Applying FreeBSD patches for sweethome3d-6.4 from
/usr/ports/cad/sweethome3d/files
=3D=3D=3D>   sweethome3d-6.4 depends on package: java3d>=3D0 - found
=3D=3D=3D>   sweethome3d-6.4 depends on file: /usr/local/openjdk11/bin/java=
 - found
=3D=3D=3D>   sweethome3d-6.4 depends on file: /usr/local/bin/ant - found
=3D=3D=3D>  Configuring for sweethome3d-6.4
=3D=3D=3D>  Building for sweethome3d-6.4
Buildfile:
/tmp/work/usr/ports/cad/sweethome3d/work/SweetHome3D-6.4-src/build.xml

build:
    [mkdir] Created dir:
/tmp/work/usr/ports/cad/sweethome3d/work/SweetHome3D-6.4-src/build/classes
    [javac]
/tmp/work/usr/ports/cad/sweethome3d/work/SweetHome3D-6.4-src/build.xml:47:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=3Dlast; set to false for repeatable builds
    [javac] Compiling 2 source files to
/tmp/work/usr/ports/cad/sweethome3d/work/SweetHome3D-6.4-src/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction =
with
-source 1.3
    [javac] error: Source option 1.3 is no longer supported. Use 6 or later.
    [javac] error: Target option 1.1 is no longer supported. Use 1.6 or lat=
er.

BUILD FAILED
/tmp/work/usr/ports/cad/sweethome3d/work/SweetHome3D-6.4-src/build.xml:47:
Compile failed; see the compiler error output for details.

Replace "yes" with "8" fixed issue:
-USE_JAVA=3D      yes
+USE_JAVA=3D      8

Possible it can work with java 7 and even with 6 too.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248169-7788>