Open grahamperrin opened 1 year ago
This means that gitup was build on 13.1 (pkg builders):
post-patch:
@${REINPLACE_CMD} -e 's|stable\/12|stable\/${OSREL:R}| ; \
s|releng\/11.4|releng\/${OSREL}|' \
${WRKSRC}/gitup.conf
Any sugestions to improve this check?
Ah, OK. Determined at build time, that makes perfect sense.
So (I don't know how to express this in script/code):
13.1
13.2
/tmp
, a relevant file – for example, sys/conf/newvers.sh?h=releng/13.2
BRANCH
begins with RELEASE
releng/13.2
in the .conf
and .conf.sample
files. https://cgit.freebsd.org/src/tree/sys/conf/newvers.sh?h=releng/13.2
Re: https://cgit.freebsd.org/src/commit/?h=releng/13.2&id=525ecfdad597980ea4cd59238e24c8530dbcd31d, you might do something fancier with UPDATING
or with crtbrand.S
, but I guess that newvers.sh
is the more obvious choice (if the approach above is feasible).
I've opened a PR at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270911
Cheers
Thanks, and (note to self) at https://github.com/johnmehr/gitup/issues/91#issuecomment-1510722625 I did not think through all possible scenarios …
Bug 270911 is Closed FIXED, should we also close this issue?
Follow-up to #77
Forcing reinstallation of gitup-0.98.2 on FreeBSD 13.2-RELEASE creates a
.conf
file that contains releng/13.1, not releng/13.2.