[Bug 251824] lang/bsh: doesn't build with DEFAULT_VERSIONS+= java=11

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 13 21:31:21 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251824

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

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

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

Doesn't build with DEFAULT_VERSIONS+= java=11 even with JAVA_BUILD=8 it trying
use OpenJDK 11:
# make
===>  License APACHE20 accepted by the user
===>   bsh-2.0.b6_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by bsh-2.0.b6_1 for building
===>  Extracting for bsh-2.0.b6_1
=> SHA256 Checksum OK for beanshell-beanshell-2.0b6_GH0.tar.gz.
===>  Patching for bsh-2.0.b6_1
===>   bsh-2.0.b6_1 depends on file: /usr/local/openjdk11/bin/java - found
===>   bsh-2.0.b6_1 depends on file: /usr/local/bin/ant - found
===>  Configuring for bsh-2.0.b6_1
===>  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=last; set to false for repeatable builds
    [javac] Compiling 155 source files to
/tmp/work/usr/ports/lang/bsh/work/beanshell-2.0b6/classes
    [javac] 
    [javac]           WARNING
    [javac] 
    [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 later.

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=    beanshell
 GH_PROJECT=    beanshell

-USE_JAVA=      yes
-JAVA_BUILD=    8
+USE_JAVA=      8

 USE_ANT=       yes
 ALL_TARGET=    jarall

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


More information about the freebsd-ports-bugs mailing list