From nobody Fri Jul 26 13:24:14 2024 X-Original-To: pkgbase@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 4WVpPV3V1mz5S6jl for ; Fri, 26 Jul 2024 13:24:14 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WVpPV1NGPz4kPv for ; Fri, 26 Jul 2024 13:24:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722000254; a=rsa-sha256; cv=none; b=V3u5bFYB/TNo5v9WauC9/1c/3HoEG8+OmvBlkMdpqWBETqcOw5t1QWcvQE9/EHwDrCc9xa 8cRQMPO1Q+7MwuonmN0YmFb3sENE5YJA9RbJZpd/MwLXd5gNOuQactCzSENvudargaXmpM QaHJwsOWqbU2kDv+Fs1cG1Lo6aE/G+1GkUMWqrSzHkg0+SP6nBzMDek1ZIg6/7s53IGvWd BxbY6PVNS1vZ8dtJB0rOmJY+xAcyMIifB7+6HqRQAw5PdT1bSrC2M3sUwjpho6Vvpb50y0 lUozAPpSlBS3/pfTxUl8g0K7l+c868su1TlsmRxnE/bbY1j/iDOndB66wjeHLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722000254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0rNafzNztY67uQx0py6ADGQzKVlby9Opj6iLJfq3oXM=; b=aP5XcAxx01zD7YO6qx99zmKvVJ8K+BNw8kXG0aUdQ4k7Ahd7uldKPysjmRbIxbAZJSgMCn s4endKTSBDqySCJlnn6RyXEuQOdyx+ifxchdhjKkJYR5wnw3TSb5hWktxoppBqkg0bUtqM Ai2zVdcfJg341KZugtv0qNm82JMiiZnF5rBT/eqp1aBmDw4t17D0LFigmySwdWIt7NGCx6 MYyxgn1tfKjr9hbmPHGgSTVWoM5Ejg4ALQESf87hV7BLWAdAuDJjRAYtK8ksP72RDyN/KW fx+hfqaLeXVmNoKoOEa+DU3UmaF/NHuJc3c9OroX3DKJcYuZa793NJx/eAJsww== 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 4WVpPV0zxLzPy0 for ; Fri, 26 Jul 2024 13:24:14 +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 46QDOETt046475 for ; Fri, 26 Jul 2024 13:24:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QDOETd046474 for pkgbase@FreeBSD.org; Fri, 26 Jul 2024 13:24:14 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: pkgbase@FreeBSD.org Subject: [Bug 259785] pkgbase installation order is underspecified Date: Fri, 26 Jul 2024 13:24:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: pkgbase X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259785 --- Comment #5 from Mark Johnston --- (In reply to Gleb Popov from comment #4) > Anyways, I don't know much about pkgbase, why do pkgbase packages have po= st-install scripts at all? Look at e.g., release/packages/certctl.ucl. > Hmm, pkg performs that splitting because it has to. We can't just disable= it, otherwise there would be no splits at all. If a file belonging to one = packages is moved to an another on during the upgrade, but the dependence i= s the other way around, we have to split and it can't be avoided. Or am I m= issing something? Splitting is necessary sometimes, but pkg has control over which package's upgrades are split. Suppose a file moves from package A-1.0 to B-1.0, and = both packages are currently installed. Then, when upgrading to 2.0, we cannot h= ave A-1.0 and B-1.0 installed simultaneously. What does pkg do here? It could: 1. upgrade A-1.0->A-2.0, then upgrade B-1.0->B-2.0, 2. uninstall A-1.0, upgrade B-1.0->B-2.0, install A-2.0 3. uninstall B-1.0, upgrade A-1.0->A-2.0, install B-2.0 Which one does it do in practice? Does it ever split upgrades unnecessaril= y?=20 And, when a split is necessary, the solver should try to ensure that the install job is scheduled as early as possible. --=20 You are receiving this mail because: You are on the CC list for the bug.=