Re: git: 90de298b222a - main - Mk/bsd.java.mk: Fix JAVA_VERSION matching
Date: Sun, 01 May 2022 09:47:08 UTC
This broke INDEX. make_index: /usr/ports/x11-fm/mucommander: no entry for /bin/java: Done. failed to generate INDEX! As x11-fm/mucommander doesn't modified after previous successful INDEX build (for me, ports main git: 2786eb3dc3bf), and reverting this fixed the issue, this commit should be reconsidered. > The branch main has been updated by ashish: > > URL: https://cgit.FreeBSD.org/ports/commit/?id=90de298b222ab8b74c707c26af21d59547898ab5 > > commit 90de298b222ab8b74c707c26af21d59547898ab5 > Author: Ashish SHUKLA <ashish_at_FreeBSD.org> > AuthorDate: 2022-05-01 06:53:06 +0000 > Commit: Ashish SHUKLA <ashish_at_FreeBSD.org> > CommitDate: 2022-05-01 06:55:55 +0000 > > Mk/bsd.java.mk: Fix JAVA_VERSION matching > > Anchor the matched patterns to be at the beginning of each word to > prevent unexpected surprises > > e.g. with JAVA_VERSION= 17+ it results in _JAVA_VERSION set to > unexpected "17 8 11 12 13 14 15 16 17 18", instead of "17 18" > > PR: 263483 > Reported by: jrm > Reviewed by: glewis > Approved by: glewis > --- > Mk/bsd.java.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk > index 4833fab43c8a..a88204514650 100644 > --- a/Mk/bsd.java.mk > +++ b/Mk/bsd.java.mk > _at__at_ -285,7 +285,7 _at__at_ JAVA_RUN= jre > . undef _JAVA_PORTS_INSTALLED > . undef _JAVA_PORTS_POSSIBLE > . if defined(JAVA_VERSION) > -_JAVA_VERSION= ${JAVA_VERSION:S/1.7+/1.7 1.8+/:S/1.8+/1.8 11+/:S/1.7/7/:S/1.8/8/:S/7+/7 8+/:S/8+/8 11+/:S/11+/11 12+/:S/12+/12 13+/:S/13+/13 14+/:S/14+/14 15+/:S/15+/15 16+/:S/16+/16 17+/:S/17+/17 18+/:S/18+/18/} > +_JAVA_VERSION= ${JAVA_VERSION:S/^1.7+/1.7 1.8+/:S/^1.8+/1.8 11+/:S/^1.7/7/:S/^1.8/8/:S/^7+/7 8+/:S/^8+/8 11+/:S/^11+/11 12+/:S/^12+/12 13+/:S/^13+/13 14+/:S/^14+/14 15+/:S/^15+/15 16+/:S/^16+/16 17+/:S/^17+/17 18+/:S/^18+/18/} > . else > _JAVA_VERSION= ${__JAVA_VERSION_LIST} > . endif -- Tomoaki AOKI <junchoon@dec.sakura.ne.jp>