From nobody Fri Jul 26 13:01:39 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 4WVnvR3Clhz5S53m for ; Fri, 26 Jul 2024 13:01:39 +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 4WVnvR2BwNz4hfJ for ; Fri, 26 Jul 2024 13:01:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721998899; a=rsa-sha256; cv=none; b=bj6UuTejPFLvX+ELjyIx6kVcz88ZMGP8WLAhY/usBNDlaKu2Ot/ONo2dC07yitK5NiZ+6Q 3nQJ1xaANejqK137XcfH6B7Wg+i7HMGFljCcr7oiuEtwCQmE7xYWaXf3t1Us5w7Wm8X/Hv SM9OeAOdSiHu3dLWzwRdKFz7U3pd3eoq4NOTzeFwwgcxWMzz4BLm/vGPA70yG1BUMFXDKy 7MgT1RasCf2CQNc1zQm/8yd3GUJ3FmPdLUCDxxse5XMyMWcxGB5reCptfq6qPCZubgNrne 3qF6qqmbOLGYNCj1wblXqbvu4+FZmQktvbU4jn+zodS5Dq9e2YsWF421BfKQtA== 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=1721998899; 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=PsAmT9M1SkzIk+DIqZ/hN5sKE7TPUZjfS12PqnQXWlo=; b=fc2zfNEsfRcLcXmn2MNoyfm9abZ51z3GFjM5eK0+A6kkwQpD30sB2MGZ9jTP2L+Rtqq7Le SZtTsapsFwp5M4GcdJMFsWXLFNrJLtKwCyRQfIQGOAgiGkzBD8K6M8mGNTsV+u6V5U+S8E cetmKhPoX6h9gA+3oV/RkmDcSpK4nAqvKadrzuj1sMt63NUnRnUbjFtIHEzaT1bVBseaq8 1MgdFj+e3H9YM72osm9FakKW4GnnHwXuDAGnkRMf1NmQIY3xTU40gOCeHv7qRkJ3YyX94Y 4WapZR6PWmHiqcqk2D5rPWJ5JQZCHu0NA1GmNVFJaEFS+VrE91L1YVek9RfTvw== 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 4WVnvR1nb2zPcw for ; Fri, 26 Jul 2024 13:01:39 +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 46QD1dwN053357 for ; Fri, 26 Jul 2024 13:01:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QD1dUh053356 for pkgbase@FreeBSD.org; Fri, 26 Jul 2024 13:01:39 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:01:39 +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: arrowd@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: cc 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 Gleb Popov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arrowd@FreeBSD.org --- Comment #2 from Gleb Popov --- Maybe an appropriate ad-hoc workaround would be to first upgrade all the pkgbase packages and only them move into ports ones? --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Fri Jul 26 13:09:43 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 4WVp4m0thJz5S5RR for ; Fri, 26 Jul 2024 13:09:44 +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 4WVp4l6mkTz4hvl for ; Fri, 26 Jul 2024 13:09:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721999383; a=rsa-sha256; cv=none; b=S553aeHm0NvtBv7EfkPRuEa766XAvhviW/2ohahIBr/rnB15JFItZo5Gd84Dd441yrA8mZ nIvp9xH6CRwn1FUW30Y4b/iiV7oLEaQw98h9ZPJbU1VIATnq0G7gHB3cgJOoyhsunjQUIZ L3aOGOkmEtNVpllA87yRJY5BvRQvRCm6IOxBOyAyHz4Cq0KqTzJ2B/BiJJXN5b8g12bfKF 9LsFu6J/pClaU9RyL1zoeIb3ItHTuHS+b33MQxhqmKZctfFFQAhN353ugFMBjmwZD0l/jv LUNPOjooNSs6COyPZWVXee5wZSIURi41JgxrLWCH/RhDNlwq7BRXfg1NIE3QTA== 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=1721999383; 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=q/+7F4a9klFgT57pc0QG6yZt11rPeS/onVFDjzdp1jQ=; b=eOk+gSHp6sAAB8z0g1gWSCsw5RD85MFUFCkMpwOIb614oNGIJpTe24AWsrgNj6GeJlqEs0 JyUkSa8Wc/8Dw79bnsYdegeWUlCRtDB4/G7M+ls3UJxmijH7CPy0pH4bYO5VYkmG6vYVIf CL1wjhXH+QwSFQB3s6Dlbk+ZpsIa1Kkh6JbKGCd+DUFhRHD3jLxBDBUq451/D4ftyMBO1b sr1VcTrYhoYw9vhfz6sSYKA6gI6C1jf9C/FflPb3m7wC7R8i5dg0m9ArTx3sqAq9cSHDND o7Vfas+UaFTaT+E09BPUNQTVDcsVp35+I/jo8TdRG3WmD9jJr0dzEUPDke/TJw== 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 4WVp4l6GDfzPPc for ; Fri, 26 Jul 2024 13:09:43 +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 46QD9hPv081966 for ; Fri, 26 Jul 2024 13:09:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QD9hb4081963 for pkgbase@FreeBSD.org; Fri, 26 Jul 2024 13:09:43 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:09:43 +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 #3 from Mark Johnston --- (In reply to Gleb Popov from comment #2) That would help, but it's possible that pkgbase packages will have some post-install scripts that rely on other packages. IMO the right answer is = that some packages must be marked such that the solver does not split the upgrade job for them. But yes, having some special ordering for pkgbase packages during upgrades makes sense. --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Fri Jul 26 13:17:23 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 4WVpFb62tPz5S6S0 for ; Fri, 26 Jul 2024 13:17:23 +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 4WVpFb4khdz4jqq for ; Fri, 26 Jul 2024 13:17:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721999843; a=rsa-sha256; cv=none; b=FO4I4cXr3buXyaQi3ZsJ/X/jpZ42qvpAL830eSwHCyMRb44UWf/77hK92tMdanqON6YIsV sVZebYmD6PRT/2mD7dSBWfD7NDDIYESf3w6w27I3wlL+Cl0N9aOMJjenerXueVKMBaHXuU Uh73aWI7hmvhKPJscKd0a8PRAfcDm8ULy6xYeau+de0g1vAsjF/YWM39c45lI8vmvinqq7 LjiDCCoDs4bIpjr4+0S3o+SjiR564ndtzoAhnheJGR5I2DNIs7bmMZfrynoVHWdvT16hI3 j6CIGuII10evy/RrCy/9gBJ1kDOzhsfLBUV7Rm7gD4Cwyag5pO/wZJx9lkmC4w== 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=1721999843; 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=lcpHbFmZuQuXo5obVJoe/NSeuoZCk0vUvyWg5rtGbjE=; b=ZnD+jXj+fwWRwIPsbF92ySpDoUu609xuZAR6nIsfkPDiLszfuWCCGX44+aIJCz1ybwupfb xsBYRXB6wgZIqD96gL2akkIXh1VAk6i/c7LzjxsSjYW929GHn1sTGvatX6w/LxuFv2SG+1 fyKnph62Gf+wspCnGxAHeMhb3hofqspsZlvJrtmoauFWDQ+OKzagP5Xi1AlM6rJodHEFVB 51iUxCwOmJTe6q7iviowHP2ApwlfuLIBhZ1IZQPlIqwKBzehEPtu2LMshB7hLdhhA+l15c 97Ge1ynVVn79mb0BIzBkNY4lLVNJZkP58le5Lt20bB1/pG2oxq8XV/R+odi2rg== 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 4WVpFb48dCzPj2 for ; Fri, 26 Jul 2024 13:17:23 +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 46QDHNHC016088 for ; Fri, 26 Jul 2024 13:17:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QDHN3Y016087 for pkgbase@FreeBSD.org; Fri, 26 Jul 2024 13:17:23 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:17:23 +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: arrowd@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 #4 from Gleb Popov --- (In reply to Mark Johnston from comment #3) > That would help, but it's possible that pkgbase packages will have some p= ost-install scripts that rely on other packages. I believe this is an extremely rare situation in Ports and if it happens th= en it is post-install scripts that should be fixed. By delaying the execution = via triggers, for example. Anyways, I don't know much about pkgbase, why do pkgbase packages have post-install scripts at all? > IMO the right answer is that some packages must be marked such that the s= olver does not split the upgrade job for them. Hmm, pkg performs that splitting because it has to. We can't just disable i= t, otherwise there would be no splits at all. If a file belonging to one packa= ges is moved to an another on during the upgrade, but the dependence is the oth= er way around, we have to split and it can't be avoided. Or am I missing something? --=20 You are receiving this mail because: You are on the CC list for the bug.= 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.= From nobody Fri Jul 26 13:54:03 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 4WVq3v5T9Nz5S8qd for ; Fri, 26 Jul 2024 13:54:03 +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 4WVq3v1HCcz4nsq for ; Fri, 26 Jul 2024 13:54:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722002043; a=rsa-sha256; cv=none; b=v7upBGVg3HqTGiLFdplwWGF53/YNdzAZg1TuIObEu6ZdIbWmLST7UcALCyCZEwcnE/7P+/ 3WhjVyVlVPrSEe1gRrqnc+Z6Bh06mgvqKUBkrkdLzcOSV1QcXGqhLX2rBh2BbEj46ys16c V/PMh2oDPT+QN90ZRVkfpMqbcrK4ZcPIJBCnW/EPXCUmXbkHGqiCAiYVTlrorpgxK9Ajr5 SkWtSEoUymdmQC2BMDEBNaawbFo4wgS9EmrK1Z+SoSa72obhqKuPnfdcz+gnPUo0YrzDSO 7llkEFaRb16RqUk/5ChdJ9fM4n+hP8yXtP1z2rAMYK6lh+OUVUcMXl4P1RxCDA== 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=1722002043; 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=/da9rIJm69FWWsWXMpuiUN6iiGEuwiIP/1f+xb1R4LY=; b=DVjiiJ7q7D+9VF4ppnoWkX4K+WRr/hhh3zTV151azgLShae5DfNsMG6ByePt6s3yys1SNq iHX51ufFPOWUBDdS9/DwR57iNMxpoM5byO1rz1GwiOh48eSgW8OV7B2oMvkLBpzH+YLxKm otuK4VKR00WlSoklY2VrohoS0Y2JEwOiNfvdI9AEXFto7j4lABxWw7eNcvHzrpGrYVpAwy AmC9wGWmg9WnniRvEs8B7zmOtfEdk/B3IsrEqX8M+D6OJ23QS4RvpB+k2tnII+HdmBiCZK euXG1y/rEe12qDsTxZ81Vje1BPcWTh/uBSqQ5NlY8p4o/5/d9XAN7iW8Me/eMQ== 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 4WVq3v0vcNzQZY for ; Fri, 26 Jul 2024 13:54:03 +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 46QDs3Rd067114 for ; Fri, 26 Jul 2024 13:54:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QDs3m2067113 for pkgbase@FreeBSD.org; Fri, 26 Jul 2024 13:54:03 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:54:03 +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: arrowd@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 #6 from Gleb Popov --- (In reply to Mark Johnston from comment #5) > Look at e.g., release/packages/certctl.ucl. I see, thanks. If certutil's reverse dependencies do not require running th= is script to run for their own upgrading - then this post-install script can be converted to a trigger and run at the end of the whole upgrade. I think we should strive for this as much as possible. > Splitting is necessary sometimes, but pkg has control over which package'= s upgrades are split. Ah, right. I was hacking on the relevant code recently but in my case one package was depending on another which is why the split order was defined. > And, when a split is necessary, the solver should try to ensure that the = install job is scheduled as early as possible. Yes, this sounds like a proper solution. Thanks for explanations! --=20 You are receiving this mail because: You are on the CC list for the bug.=