Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Mar 2020 21:40:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 244834] [bsd.java.mk] JAVA_VERSION ignored when set in /etc/make.conf and port's Makefile
Message-ID:  <bug-244834-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 244834
           Summary: [bsd.java.mk] JAVA_VERSION ignored when set in
                    /etc/make.conf and port's Makefile
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: michael.osipov@siemens.com

This popped up while working on Bug 244776 with Poudriere.

Consider you have a port using Java and sets
> JAVA_VERSION=3D8+

now you want to test the port with Poudriere using sets by providing a
<setname>-make.conf with the desired testable Java version: 8, 11, 12, 13 a=
nd
so on.

Now you do:
> poudriere testport -j 121-release-amd64 -p dev -o sysutils/javaservicewra=
pper -z java13
> poudriere testport -j 121-release-amd64 -p dev -o sysutils/javaservicewra=
pper -z java8
> poudriere testport -j 121-release-amd64 -p dev -o sysutils/javaservicewra=
pper -z java11

Actual behavior:
Unfortunately, since the Makefile already defines JAVA_VERSION the value in
make.conf is ignored. One cannot test through Poudriere. The only workaroun=
d is
to remove JAVA_VERSION from the Makefile.

Expected behavior:
If both JAVA_VERSION variables are set, compare the value from make.conf
whether it can satify the one from the Makefile.
Example:
- make.conf:JAVA_VERSION=3D11, Makefile:JAVA_VERSION=3D8+ =3D> Java 11 is p=
icked
- make.conf:JAVA_VERSION=3D11, Makefile:JAVA_VERSION=3D8 =3D> abort, depend=
ency
cannot be satisfied
- make.conf:JAVA_VERSION=3D7, Makefile:JAVA_VERSION=3D8+ =3D> abort, depend=
ency
cannot be satisfied
- make.conf:JAVA_VERSION=3D13, Makefile:JAVA_VERSION=3D8 11 =3D> abort, dep=
endency
cannot be satisfied
- make.conf:JAVA_VERSION=3D17, Makefile:JAVA_VERSION=3D8+ =3D> abort, if Ja=
va 17 is
not available (dep satisfaction)

I don't expect JAVA_VERSION in make.conf to receive a list. Only a single v=
alue
w/o the plus sign.

Log files from Poudriere builds can be provided.

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