Fix the pkg_version test
Convert over to Kyua
Fix search test
Fix the annotate test (just need to fix pkg annotate to work properly
now)
Fix comment for EPKG_ENODB
If opening the db in READ_ONLY give a warning if it is missing

This fixes no output for pkg-rquery and pkg-clean when there
is no database.
Give advice on how to recreate the database if auto-updating was skipped

New output:

  # pkg rquery %o git
  pkg: Repository FreeBSD has incompatible checksum format, need to re-create database
  pkg: Repository FreeBSD cannot be opened. 'pkg update' required
  # pkg clean
  pkg: Repository FreeBSD has incompatible checksum format, need to re-create database
  pkg: Repository FreeBSD cannot be opened. 'pkg update' required
  Nothing to do.
  # pkg upgrade -U
  pkg: Repository FreeBSD has incompatible checksum format, need to re-create database
  pkg: Repository FreeBSD cannot be opened. 'pkg update' required
  Checking for upgrades (0 candidates): 100%
  Checking integrity... done (0 conflicting)
  # pkg upgrade
  Updating repository catalogue
  pkg: Repository FreeBSD has incompatible checksum format, need to re-create database
  Fetching meta.txz: 100% of 944 B
  Fetching digests.txz: 100% of 2 MB
  Fetching packagesite.txz: 100% of 5 MB
  [...]
Remove pkg --check-activation. It is too tempting to use.

We cannot accept anyone using this as a valid check. Accidental
bootstraps are frustrating for users.
Make it more clear that the 'Major version' change is non-fatal
Jobs display: Avoid excessive newline before prompt and after unprompted usage
Followup 4bc7073308cb and remove references to PACKAGESITE/MIRROR_TYPE/PUBKEY
Support uppercase ENABLED in repo config.

This is a partial fix. It would be better to store all keys
as lowercase or uppercase. Other variables are affected by
this.

Issue:	#960
Avoid POLA, make PACKAGESITE/MIRROR_TYPE/PUBKEY in pkg.conf fatal
Fix self upgrade loop, again, with pkg upgrade -Fy

Issue:	#962
Fix self upgrade not using the new pkg binary

Verified this works with -j still.

Issue:	#954
Fix pkg-which glob

Fixes glitch introduced in 49599f003babc8f0e7f7a382cb95197540b557cd
Fix check_for_hardlink.

Changes to hl were not propagated to the caller, so it was always empty
and none of the hardlinks was ever detected.
need to realpath restricted if it's symlink/amd-automount
pkg-{delete,autoremove}: Use a readonly lock in dry run

PR:		175843
pkg-convert: Add locking. EXCLUSIVE by default, READONLY with -n