From nobody Thu Nov 11 20:54:30 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4712C185237F for ; Thu, 11 Nov 2021 20:54:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hqv921CF1z50N0 for ; Thu, 11 Nov 2021 20:54:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 09C1112F3D for ; Thu, 11 Nov 2021 20:54:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1ABKsTYB080213 for ; Thu, 11 Nov 2021 20:54:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ABKsTp3080212 for bugs@FreeBSD.org; Thu, 11 Nov 2021 20:54:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 259785] pkgbase installation order is underspecified Date: Thu, 11 Nov 2021 20:54:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N 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.=