| Summary: | ports-mgmt/pkg: pkg 1.8.6 loops while upgrading itself from local repository | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Axel.Rau |
| Component: | Individual Port(s) | Assignee: | freebsd-pkg (Nobody) <pkg> |
| Status: | Closed Overcome By Events | ||
| Severity: | Affects Only Me | CC: | pkg, w.schwarzenfeld |
| Priority: | --- | Keywords: | needs-qa, regression |
| Version: | Latest | Flags: | koobs:
maintainer-feedback?
(pkg) |
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Axel.Rau
2016-07-07 11:47:42 UTC
As one can see on the original report, both repo configs have no 'PRIORITY' attribute. After adding priorities, the following happened (in a different jail): - - - [imap4:/var/tmp] root# pkg upgrade Updating lrau-repo-py3 repository catalogue... lrau-repo-py3 repository is up-to-date. Updating lrau-repo-py35 repository catalogue... lrau-repo-py35 repository is up-to-date. Updating lrau-repo repository catalogue... lrau-repo repository is up-to-date. All repositories are up-to-date. New version of pkg detected; it needs to be installed first. The following 1 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: pkg: 1.8.6 -> 1.8.7 [lrau-repo-py3] 2 MiB to be downloaded. Proceed with this action? [y/N]: y [imap4] Fetching pkg-1.8.7.txz: 100% 2 MiB 1.3MB/s 00:02 Checking integrity... done (0 conflicting) [imap4] [1/1] Upgrading pkg from 1.8.6 to 1.8.7... [imap4] [1/1] Extracting pkg-1.8.7: 100% You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed. /usr/local/lib/libpkg.so.3: Undefined symbol "openat" - - - Because of this error, the installed pkg was unusable. pkg-static worked as expected. The libpkg problem was not reproducible. The complete rebuild of lrau-repo-py3 did not show any errors (log available on request). It seems, pkg requires PRIORITY, otherwise it loops in multi-repo situations. Is this still relevant? (In reply to w.schwarzenfeld from comment #2) No, not really. Sometimes things like /usr/local/lib/libpkg.so.4: Undefined symbol "utimensat" happen. I learned to always keep a pkg-static at a secure place. |