The tilde in the latest versions of putty (example: putty-0.78~pre20220922) appears to confuse pkg, and by extension, portmaster. Examples: # portmaster -wD 'putty-0.78*' ===>>> No origin available for putty-0.78~pre20220922 ===>>> Cannot continue ===>>> Aborting update # pkg info 'putty-0.78*' putty-0.78~pre20220922 # pkg info 'putty-0.78~pre20220922' pkg: No package(s) matching putty-0.78~pre20220922
David, Please point me to the documentation that requires a port to avoid the tilde, or else we need to reassign this problem report to ports-mgmt/pkg. I have looked around for a reasonable amount of time and only found that - _ , are forbidden characters, per ports/Mk/bsd.port.mk.
also: $ pkg version -t putty-0.78~pre20220922 putty-0.78 <
FWIW: confirmed with pkg 1.18.4
I can't find any specific doc that says you can't have a tilde. Looking in the current INDEX, putty seems to be the only port that's trying it at the moment, so this could be an edge case that no one anticipated. I have no objection if you want to push this over to the pkg folks for their take on it.
pkg@ guys, please assess and feed back.
the only documentation available for now, is here:https://github.com/freebsd/pkg/blob/master/libpkg/pkg_version.c#L121 this code and documentation is inherited from the old pkg_install tools. We cannot break the scheme, we did not when going from pkg_install to pkg(8)
Source-only documentation is invisible and therefore cannot be considered relevant. putty is free to use the versioning scheme involving a tilde, and pkg(8) is messing up. Please fix pkg(8).