git: e497a16a2869 - main - ports-mgmt/pkg*: Release 1.17.0
Stefan Esser
se at freebsd.org
Thu Jul 22 14:22:27 UTC 2021
Am 22.07.21 um 13:31 schrieb Matthias Andree:
> Am 22.07.21 um 10:06 schrieb Baptiste Daroussin:
>> The branch main has been updated by bapt:
>>
>> URL: https://cgit.FreeBSD.org/ports/commit/?id=e497a16a286972bfcab908209b11ee6a13d99dc9
>>
>> commit e497a16a286972bfcab908209b11ee6a13d99dc9
>> Author: Baptiste Daroussin <bapt at FreeBSD.org>
>> AuthorDate: 2021-07-22 07:54:38 +0000
>> Commit: Baptiste Daroussin <bapt at FreeBSD.org>
>> CommitDate: 2021-07-22 08:05:59 +0000
>>
>> ports-mgmt/pkg*: Release 1.17.0
>>
> ...
>
>> diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
>> index 228644a1845f..5eba5d89da95 100644
>> --- a/Mk/bsd.port.mk
>> +++ b/Mk/bsd.port.mk
>> @@ -1211,6 +1211,14 @@ _OSVERSION_MAJOR= ${OSVERSION:C/([0-9]?[0-9])([0-9][0-9])[0-9]{3}/\1/}
>> .if !defined(_PKG_VERSION)
>> _PKG_VERSION!= ${PKG_BIN} -v
>> .endif
>> +# XXX hack for smooth transition towards pkg 1.17
>> +_PKG_BEFORE_PKGEXT!= ${PKG_BIN} version -t ${_PKG_VERSION:C/-.*//g} 1.17.0
>> +.if ${_PKG_BEFORE_PKGEXT} == "<"
>> +_PKG_TRANSITIONING_TO_NEW_EXT= yes
>> +_EXPORTED_VARS+= _PKG_TRANSITIONING_TO_NEW_EXT
>> +.warning "It is strongly recommanded to upgrade to a newer vertion of pkg first"
>> +.endif
>> +# XXX End of hack
>
> I wish this hack were less verbose. Can we move this to some other place
> or make sure it's not inherited by sub-makes?
>
> To see what I mean,
> 1. grab a system with pkg 1.16.x,
> 2. update the ports tree,
> 3. install portmaster and type "portmaster pkg". I guess "make -C
> /usr/ports/ports-mgmt/pkg clean all" will also trigger it, but I haven't
> tried this.
>
> => Its configure script shoots this warning on what feels every other
> "checking for..." line.
>
> => I wish we had only one line... and I guess this will stick until
> November or so (some time into 2021Q4).
>
> You've also mistyped the .warning, and I think I deserve a pointy brown
> paperbag to pull over my head and eyes after my first fix was incomplete...
I have tried to make portmaster work with the new package name convention.
Maybe it was premature to remove support for files named in the old way,
but I do not want to spend too much time on issues that are only relevant
for the duration of the conversion to the new naming scheme.
If you have built a local repository then you'd best rename all the
existing packages to the new extension (or create symbolic links).
This is easily done with the mmv (or mln) program.
Please let me know if there are any issues with that new version. I plan
to sort out any portmaster problems that might be caused by this change.
Regards, STefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/dev-commits-ports-all/attachments/20210722/303a66f9/attachment.sig>
More information about the dev-commits-ports-all
mailing list