[Bug 268351] ports-mgmt/pkg_replace: 20221212 quits just after reading pkg_replace.conf

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 14 Dec 2022 21:16:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268351

--- Comment #5 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> ---
Unfortunately, encountered a new error on updating www/chromium to
108.0.5359.124 using package built with poudriere. pkg_replace 20221214.

As (automatic) reinstall of old version also failed, tried manually
  pkg add -f /usr/ports/packages/All/chromium-108.0.5359.124.pkg
which succeeded.

Errors copy/pasted from terminal are as follows. (No -debug option and
redirects.)

--->  Replacing 'chromium-108.0.5359.98_1' with 'chromium-108.0.5359.124'
--->  Installing dependencies for '--->  Found a package of
'chromium-108.0.5359.124': /var/cache/pkg/All/chromium-108.0.5359.124.pkg
/var/cache/pkg/All/chromium-108.0.5359.124.pkg'
pkg: archive_read_open_filename(--->): Error reading '--->'
--->  Preserving the shared libraries
--->  Deinstalling 'chromium-108.0.5359.98_1'
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages
in the universe):

Installed packages to be REMOVED:
        chromium: 108.0.5359.98_1

Number of packages to be removed: 1

The operation will free 313 MiB.
[1/1] Deinstalling chromium-108.0.5359.98_1...
[1/1] Deleting files for chromium-108.0.5359.98_1: 100%
vidcontrol: getting active vty: Inappropriate ioctl for device
vidcontrol: getting active vty: Inappropriate ioctl for device
Building cache database of MIME types
Generating GTK icon cache for /usr/local/share/icons/hicolor
--->  Installing '--->'
pkg: unrecognized option `--->'
Usage: pkg add [-IAfqM] <pkg-name> ...
       pkg add [-IAfqM] <protocol>://<path>/<pkg-name> ...

For more information see 'pkg help add'.
** Command failed (exit code 1): pkg add --->
** Failed to restore the old version, please reinstall '--->  Found a package
of 'chromium-108.0.5359.98_1': /var/cache/pkg/All/chromium-108.0.5359.98_1.pkg
/var/cache/pkg/All/chromium-108.0.5359.98_1.pkg' manually.
** Fix the problem and try again.
--->  ** [62/62] - 0 done, 61 ignored, 0 skipped, 1 failed
--->  Listing the results (+:done / -:ignored / !:failed)
  (snip)
        ! chromium-108.0.5359.98_1 (install error)
rmdir: /var/tmp/pkg_replace.WnmNsb: Directory not empty
** Command failed (exit code 1): rmdir /var/tmp/pkg_replace.WnmNsb
** Couldn't remove the working direcotry: /var/tmp/pkg_replace.WnmNsb

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