[Bug 259404] emulators/wine, emulators/wine-devel, emulators/wine-proton: fix pkg32.sh for pkg 1.17.3

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 24 Oct 2021 16:08:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259404

            Bug ID: 259404
           Summary: emulators/wine, emulators/wine-devel,
                    emulators/wine-proton: fix pkg32.sh for pkg 1.17.3
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: iwtcex@gmail.com
                CC: damjan.jov@gmail.com, gerald@FreeBSD.org
                CC: damjan.jov@gmail.com, gerald@FreeBSD.org

Created attachment 228986
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=228986&action=edit
/usr/share/keys/pkg symlink for pkg root

Apparently after [1] or [2], given an uninitialized root dir, pkg now fails
with this error:

> pkg: Error opening the trusted directory /usr/share/keys/pkg/trusted
> pkg: Error loading trusted certificates

Arguably a bit misleading message, since pkg merely looks for that path in the
specified root dir.

I didn't bother creating separate bugs for all 3 ports, so the patch lumps all
changes together. I believe that makes sense since those changes are relatively
simple and completely identical. Proceed as you see fit, however.

[1]:
https://github.com/freebsd/pkg/commit/d04e611a40eb73f5b225c85868a85ca873a45119
[2]:
https://github.com/freebsd/pkg/commit/e61529ac3f63a68d7cbb0a6c9a96038beede5c85

-- 
You are receiving this mail because:
You are the assignee for the bug.