Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 2021 20:54:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 259785] pkgbase installation order is underspecified
Message-ID:  <bug-259785-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259785

            Bug ID: 259785
           Summary: pkgbase installation order is underspecified
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: markj@FreeBSD.org

I did a pkg upgrade on a pkgbase-enabled laptop and got the following, thou=
gh
the upgrade completed successfully:

[1/364] Upgrading glib from 2.70.0_1,2 to 2.70.1,2...=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
[1/364] Extracting glib-2.70.1,2: 100%=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20
[2/364] Deinstalling FreeBSD-utilities-14.snap20211022204826...=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20
[2/364] Deleting files for FreeBSD-utilities-14.snap20211022204826: 100%=20=
=20=20=20=20=20=20=20
[3/364] Upgrading harfbuzz from 3.0.0 to 3.1.0...=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
[3/364] Extracting harfbuzz-3.1.0: 100%=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
/bin/sh: /usr/sbin/service: not found=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20
pkg: POST-INSTALL script failed=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
[4/364] Upgrading sqlite3 from 3.35.5_3,1 to 3.35.5_4,1...=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
[4/364] Extracting sqlite3-3.35.5_4,1: 100%=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20
/bin/sh: /usr/sbin/service: not found=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20
pkg: POST-INSTALL script failed=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
[5/364] Upgrading FreeBSD-runtime from 14.snap20211022204826 to
14.snap20211102230608...
[5/364] Extracting FreeBSD-runtime-14.snap20211102230608: 100%
[6/364] Upgrading libva from 2.13.0 to 2.13.0_1...
[6/364] Extracting libva-2.13.0_1: 100%
/bin/sh: /usr/sbin/service: not found
[7/364] Upgrading icu from 69.1,1 to 70.1_1,1...
[7/364] Extracting icu-70.1_1,1: 100%=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20
/bin/sh: /usr/sbin/service: not found=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20
pkg: POST-INSTALL script failed=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
[7/364] Installing FreeBSD-utilities-14.snap20211102230608...
[7/364] Extracting FreeBSD-utilities-14.snap20211102230608: 100%

So there's a window where FreeBSD-utilities (which contains /usr/sbin/servi=
ce)
is uninstalled, and that causes random script failures.  pkg should be
configured somehow to avoid creating such windows.

It looks like we split the upgrade job into two because of this conflict:

Checking integrity... done (1 conflicting)=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20
  - FreeBSD-runtime-14.snap20211102230608 [FreeBSD-base] conflicts with
FreeBSD-utilities-14.snap20211022204826 [installed] on
/usr/share/man/man8/sconfig.8.gz

A little while ago I fixed pkg to ensure that upgrade-deletion jobs are
processed before upgrade-installation jobs, but I guess we need to go furth=
er
and try to minimize the window where such a package is uninstalled.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259785-227>