From nobody Sun Aug 28 17:22:36 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MG0kh685Pz4b1WD for ; Sun, 28 Aug 2022 17:22:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MG0kh57F4z3SC0 for ; Sun, 28 Aug 2022 17:22:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MG0kh4BJHz18kY for ; Sun, 28 Aug 2022 17:22:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 27SHMa8F081800 for ; Sun, 28 Aug 2022 17:22:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27SHMaPN081799 for ports-bugs@FreeBSD.org; Sun, 28 Aug 2022 17:22:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266086] devel/cmake: cmake fails to find Java 11 Date: Sun, 28 Aug 2022 17:22:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yuri@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kde@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661707356; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KAvMiVdAA/Givh7a/Ts17bUHv44Wi2BDcDUl/5m7LAo=; b=Eale/y4ghtNBMUCj1a1Bcson3v5ADEFgadLdf9p3kI40MSSbVOV70p2vOCBIzg01IPGIEn P8lHxIoO/n71fsZ6msjCwxRqfhhVvsxralxloi9xJWDc9vzK2xkDSWprJrcUJxAwZ31NBs 7YaO1qsf848Ov0qJjCnAbxxZO+J3VEtqMA08iRifP4SOUredwpKhZNHWN3W1qUe3VnXXhe E5jucms7c9U2jIfama233XhKV2qC+fjgKCVJILUSNww94BPgwzsbkDobrQ2chj344AYdHH SAfCEdb78jLnACteIWjQptKoig124Pp/Aly+tdE4ozMdzo7DyBBBEhrQfKGnaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661707356; a=rsa-sha256; cv=none; b=Uu56Gt7zOw+Qvrqgcb4GVMNsBvRUz4OZCW8HWMgQNMIC7ABoNJGaLn+d1VkBtaMhY5acla fBCbnoJItngjOVWWiBmbpolwogZNHVd5gu/1ip4XFBqndZPO5zZ+WKxd1EGBqb8mVTjVFc UcLZzTetGxDQiFR0THi7UfL/dZyXgwZjNwOU7pAXkbhKCikrnT+kRM+YADXrrP2QAUtgb1 QB3D2OK5Hru8YUWsZ1m7BO9hnohwVbH4N0opE7M1apeHp28HeY13XRX9mQ3/1cBscHJUl+ VCnSL+Xq0drtHx20TvQb6v6cps515HH6LzN6Q8uII+C0jvDVGkTv8CTnX99NPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266086 Bug ID: 266086 Summary: devel/cmake: cmake fails to find Java 11 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: yuri@freebsd.org Flags: maintainer-feedback?(kde@FreeBSD.org) Assignee: kde@FreeBSD.org This CMakeLists.txt: > cmake_minimum_required(VERSION 3.15) > find_package(Java 11 REQUIRED COMPONENTS Runtime) fails to find Java 11: > CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardAr= gs.cmake:230 (message): > Could NOT find Java: Found unsuitable version "1.8.0.342", but required= is > at least "11" (found /usr/local/bin/java, found components: Runtime) > Call Stack (most recent call first): > /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 = (_FPHSA_FAILURE_MESSAGE) > /usr/local/share/cmake/Modules/FindJava.cmake:309 (find_package_handle_= standard_args) > CMakeLists.txt:4 (find_package) when several Java versions are installed: > $ pkg info | grep -i openjdk > bootstrap-openjdk17-17.0.1.12.1 Java Development Kit 17 > openjdk11-11.0.16+8.1 Java Development Kit 11 > openjdk17-17.0.4+8.1 Java Development Kit 17 > openjdk8-8.342.07.1 Java Development Kit 8 cmake-3.23.3 FreeBSD 13.1 --=20 You are receiving this mail because: You are the assignee for the bug.=