Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 2020 21:31:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 251824] lang/bsh: doesn't build with DEFAULT_VERSIONS+= java=11
Message-ID:  <bug-251824-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 251824
           Summary: lang/bsh: doesn't build with DEFAULT_VERSIONS+=3D
                    java=3D11
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D2517
                    74
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: pfg@FreeBSD.org
          Reporter: vvd@unislabs.com
             Flags: maintainer-feedback?(pfg@FreeBSD.org)
          Assignee: pfg@FreeBSD.org
 Attachment #220535 maintainer-approval?
             Flags:

Created attachment 220535
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D220535&action=
=3Dedit
Force set java version to 8

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251774
"Mk/bsd.default-versions.mk: Change default version of Java to 11"

Doesn't build with DEFAULT_VERSIONS+=3D java=3D11 even with JAVA_BUILD=3D8 =
it trying
use OpenJDK 11:
# make
=3D=3D=3D>  License APACHE20 accepted by the user
=3D=3D=3D>   bsh-2.0.b6_1 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by bsh-2.0.b6_1 for building
=3D=3D=3D>  Extracting for bsh-2.0.b6_1
=3D> SHA256 Checksum OK for beanshell-beanshell-2.0b6_GH0.tar.gz.
=3D=3D=3D>  Patching for bsh-2.0.b6_1
=3D=3D=3D>   bsh-2.0.b6_1 depends on file: /usr/local/openjdk11/bin/java - =
found
=3D=3D=3D>   bsh-2.0.b6_1 depends on file: /usr/local/bin/ant - found
=3D=3D=3D>  Configuring for bsh-2.0.b6_1
=3D=3D=3D>  Building for bsh-2.0.b6_1
Buildfile: /tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/build.xml

checkjjt:

jjtree:

checkjj:

javacc:

builddir:
    [mkdir] Created dir:
/tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/classes

compile:
    [javac] /tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/build.xml:176:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=3Dlast; set to false for repeatable builds
    [javac] Compiling 155 source files to
/tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/classes
    [javac]=20
    [javac]           WARNING
    [javac]=20
    [javac] The -source switch defaults to 9 in JDK 9.
    [javac] If you specify -target 1.5 you now must also specify -source 1.=
5.
    [javac] Ant will implicitly add -source 1.5 for you.  Please change your
build file.
    [javac] warning: [options] bootstrap class path not set in conjunction =
with
-source 5
    [javac] error: Source option 5 is no longer supported. Use 6 or later.
    [javac] error: Target option 1.5 is no longer supported. Use 1.6 or lat=
er.

BUILD FAILED
/tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/build.xml:176: Compile
failed; see the compiler error output for details.

Total time: 1 second
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/bsh

This patch fixed build:
# diff -u Makefile.orig Makefile
--- Makefile.orig
+++ Makefile
@@ -15,8 +15,7 @@
 GH_ACCOUNT=3D    beanshell
 GH_PROJECT=3D    beanshell

-USE_JAVA=3D      yes
-JAVA_BUILD=3D    8
+USE_JAVA=3D      8

 USE_ANT=3D       yes
 ALL_TARGET=3D    jarall

--=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-251824-7788>