[Midnightbsd-cvs] [MidnightBSD/mports] 4f0a2b: java/openjdk23: fix duplicated GH distfile in DIST...
Lucas Holt
noreply at github.com
Fri Aug 21 20:53:50 EDT 2026
Branch: refs/heads/java/openjdk23
Home: https://github.com/MidnightBSD/mports
Commit: 4f0a2beed7a9663107513178b166ae7c3e1b0ae5
https://github.com/MidnightBSD/mports/commit/4f0a2beed7a9663107513178b166ae7c3e1b0ae5
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-08-21 (Fri, 21 Aug 2026)
Changed paths:
M java/openjdk23/Makefile
M java/openjdk23/distinfo
Log Message:
-----------
java/openjdk23: fix duplicated GH distfile in DISTFILES and distinfo
DISTFILES hardcoded battleblow-jdk23u-jdk-23.0.2+7-1_GH0.tar.gz alongside
${BOOTSTRAPJDKFILE}, but USE_GITHUB with GH_ACCOUNT/GH_PROJECT/GH_TAGNAME
already appends exactly that filename. The distfile was therefore listed
twice, and makesum faithfully recorded it twice in distinfo.
Duplicated entries break fetching, because DISTINFO_DATA (Mk/bsd.mport.mk)
prints every matching line:
CKSIZE=$(distinfo_data SIZE "${full_file}") -> "117326728 117326728"
Mk/scripts/do-fetch.sh interpolates that unquoted into "-S ${CKSIZE}", so
fetch(1) sees a stray extra argument and reports
fetch: 117326728: No such file or directory
on every mirror. The size check at do-fetch.sh:152 breaks the same way
("[ ... -eq ... ]" with too many arguments), so even a completed download is
rejected as a size mismatch. That is how this surfaced in Magus run 647 as a
fetch failure. The bootstrap JDK, which is not duplicated, fetched fine in the
same log.
Dropping the hardcoded line fixes the cause rather than the symptom: editing
distinfo alone would be undone by the next makesum. It also removes a
hand-maintained copy of the tag that would go stale on the next update.
FreeBSD's java/openjdk21 uses "DISTFILES= ${BOOTSTRAPJDKFILE}:boot" for the
same reason.
Verified DISTFILES now lists each file once, distinfo matches it exactly, and
"bmake fetch" and "bmake checksum" both succeed.
AI-Assisted-by: Claude Opus 5 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications
More information about the Midnightbsd-cvs
mailing list