From nobody Wed May 14 12:33:25 2025 X-Original-To: freebsd-java@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 UTF8SMTP id 4ZyCSd0x0Vz5wdQQ for ; Wed, 14 May 2025 12:33:53 +0000 (UTC) (envelope-from haraldei@anduin.net) Received: from mail.anduin.net (mail.anduin.net [185.42.170.45]) (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 mx1.freebsd.org (Postfix) with UTF8SMTPS id 4ZyCSZ1g2Xz3lJ2 for ; Wed, 14 May 2025 12:33:50 +0000 (UTC) (envelope-from haraldei@anduin.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=anduin.net header.s=dkim2021 header.b=auVCa9OE; spf=pass (mx1.freebsd.org: domain of haraldei@anduin.net designates 185.42.170.45 as permitted sender) smtp.mailfrom=haraldei@anduin.net; dmarc=pass (policy=reject) header.from=anduin.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anduin.net; s=dkim2021; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=26v74mJL3D0TZ6L6Ly9dyW9Sf//8Q+zoZZVOqJ+rmws=; t=1747226030; x=1748090030; b=auVCa9OE9OVjm++KONSj0xpAIUunYhoS0WFM6gTHuG9mULiERG2zwEHVTyfKN7lzaf+1jh16gd1 4RuDJKoizpit1wsNsljnwP+nHVJucZtFoSNwW/GdwW5yE4szwHUZpXA+Ue5KFXpqh1ABsGivf6/qO z86UXliz1b3/V0MhHP+xrJMrmmk6W8WxaaqhaYIzjgIO6H435FBUKlp6ruCzf3RxK/kYvo1G6HAUF YsadXrF2TBBCNuRHm7wkZC+sBdIlPJivkz+K6looviwUwHeg3urVruh1dve6E/PDZzrWzWgBmWqZ0 0qesrlJvqasU26KzOp59XEti9P7NIcp5Oofw==; Received: by mail.anduin.net with utf8esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1 (FreeBSD)) (envelope-from ) id 1uFBIq-00000000IRv-3BR4 for freebsd-java@freebsd.org; Wed, 14 May 2025 12:33:42 +0000 Date: Wed, 14 May 2025 14:33:25 +0200 From: Harald Eilertsen To: FreeBSD Java mailing list Subject: Changing the way we bootstrap openjdk ports Message-ID: <2cw6cpkim6zd6snvhqdftjb4vdyl2y4qv2whxpakntxkc7ueqt@yjx7np2mkm5h> Mail-Followup-To: FreeBSD Java mailing list List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-SA-Authenticated: Yes X-Spam-Score: -1.9 X-Spam-Level: - X-Spam-Report: host: mail.modirum.com | contact: hostmaster@modirum.com | scores: BAYES_00=-1.9,NO_RELAYS=-0.001 | autolearn=no autolearn_force=no, score=0 X-Rspamd-Queue-Id: 4ZyCSZ1g2Xz3lJ2 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.13 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-0.63)[-0.628]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[anduin.net,reject]; R_DKIM_ALLOW(-0.20)[anduin.net:s=dkim2021]; R_SPF_ALLOW(-0.20)[+ip4:185.42.170.45/32]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[haraldei]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:62248, ipnet:185.42.170.0/24, country:EE]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-java@freebsd.org]; DKIM_TRACE(0.00)[anduin.net:+] Hi, I've submitted a patch for java/openjdk24 that change how it obtains the bootstrap jdk needed to build the port: https://reviews.freebsd.org/D50349 Traditionally the openjdk ports will add the previous version of the jdk as a dependency if a suitable jdk for building the current version is not already installed on the system. For some specific versions it will add the most suitable java/bootstrap-openjdk version instead. This means that to build one of the later OpenJDK versions from ports, the system may end up building and installing a number of the previous versions as well, as it walks down the dependency path until it finds a bootstrap-openjdk dependency. The proposed change will instead download a suitable prebuilt openjdk from the freebsd distcache servers and extract it to the ${WRKSRC} directory before running configure for the port. This makes the prebuilt jdk available to the port during build, but does not install it to the system. The idea is to make such prebuilt jdk's that can be used as bootstrap jdk's for all relevant versions, and change all the openjdk ports to use the same mechanism. This should save both time and installed size when building one of the openjdk ports. Any feedback, or objections to this scheme is most welcome! Tale Care! -- Harald