From nobody Tue Sep 12 10:05:28 2023 X-Original-To: ports@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 4RlK3916F8z4sfLv for ; Tue, 12 Sep 2023 10:05:41 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RlK390hsNz4Sqm; Tue, 12 Sep 2023 10:05:41 +0000 (UTC) (envelope-from theraven@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694513141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8l6lzbm2pp1jbZ8MQu7aG0QfQ1kVgrdPIYQYn0CLrRc=; b=uAgw6cKpv/a+sfRw8eJ6pAkdd0S9MQHP6AreQnsr+tsRk1pb4WDWKNfUJrTo5oH6sR8Gld WrceIDO+JcG8pAzSmAMNFxMJ0o1HKadKaqkMXH+0Y/abjUxviTFw1eVkQOhbzhfgTnfsIc G+cmmEJ9aJW5IYdNmJEllW86PatjoL24BoegmvdeQpsxZlU8pjP2GJbVZtco6Od2c8UTF8 gtUMCc/CxDyWodlZkANUKVmF2DWyXruyIMBzwaZ6rTPqO+w2YACdvuNjlCiPt7ITWK1i8e GZZkpLfqWjTgHSl6i3VQ+NMhX1OOzsSWd2cbsMxoLUKepOx09luMGtWFKETptw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694513141; a=rsa-sha256; cv=none; b=aQZ3DLHO8i1YXYg0w8B/KDAPcSmzQbtXa9Wm9v4lgAI2AO7D2xOM1nxiPgRMouQcFNstH6 O236olZnUO1Nu1NONNYUtsynwwgaWJavNtZqth5libaIKGVyqTjvh6rkiyahjUAY5l3XKs R6SPYmsI65BS8+qdeLy0AJB+2Qa4WIk/4NprlQzJoIv6zZHoveFdPZoGVGKuXOw1uCleY7 D+Q3+ho3g1TCUHjrRbq3A+ToxHDq0302+hh1qcyUnnHxYezIhaM6+QuN8960I8mIwKr5W7 BpK4CqEZ3VSnsJzvutOMWTXPXBxq/91hr7aXc9YOtxB4YMHUxvFhcjP2gtCuvQ== 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=1694513141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8l6lzbm2pp1jbZ8MQu7aG0QfQ1kVgrdPIYQYn0CLrRc=; b=oiGWNJfseJH/Sbcrewp/rqWQg3EBUcPZII2iNVK/hfiq21GDJNZByY9xDfJsnJaSxZB0Gz wCR3wZwNDBwg08bO7EbfxTAGRp1OGk/hWBYUxssVPF7R252BJiZnezv5YNKNH3weiZaA0z 2bdnEEWEWsOnxr7rixklBr4jEJhSl9iKhnIhfAwgmUZ+eVeUn93/6MxD2ddbLxd8sTN0nL t+EeNajF79l1550ziWDC4EolE7rFLs+3pujo1lek2IP45UaCKZVv7xQaVJ6l6u2UVdZT04 dtF4j0bMxLlDygCIvlF8w6uvBOz1+pUFyqBpacNuj/qVaoowEQ/GPIi2Kvw3Ow== Received: from smtp.theravensnest.org (smtp.theravensnest.org [45.77.103.195]) (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) (Authenticated sender: theraven) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RlK386jg8z1Qb8; Tue, 12 Sep 2023 10:05:40 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtpclient.apple (host81-156-206-121.range81-156.btcentralplus.com [81.156.206.121]) by smtp.theravensnest.org (Postfix) with ESMTPSA id 241369C6B; Tue, 12 Sep 2023 11:05:40 +0100 (BST) Content-Type: text/plain; charset=utf-8 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: kmod ports and conflicts when upgrading From: David Chisnall In-Reply-To: Date: Tue, 12 Sep 2023 11:05:28 +0100 Cc: ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8E853260-A4C6-4EFD-9C69-B4FE3F5023EE@FreeBSD.org> References: <69631434-DDFB-4FB0-A980-72B75341C303@FreeBSD.org> To: Baptiste Daroussin X-Mailer: Apple Mail (2.3731.700.6) On 12 Sep 2023, at 10:42, Baptiste Daroussin wrote: >=20 > On Tue, Sep 12, 2023 at 10:25:40AM +0100, David Chisnall wrote: >> Hi, >>=20 >> As part of the work to run FreeBSD containers on other operating = systems via Podman, I have written a device driver for the QEMU firmware = config interface. I am currently building this via an overlay port, but = aim to upstream it into -CURRENT soonish. In parallel, I=E2=80=99d like = to add a port for it. >>=20 >> Both ports and base install kernel modules in the same place and so = I=E2=80=99m worried that someone will install the port, update FreeBSD = to a version that includes the module in base, and then end up with = problems when the uninstall the port (or have the upgrade fail because = the file already exists). >>=20 >=20 > Base installs modules in /boot/kernel, ports insyall them in = /boot/modules so > you don't have the problem. Oh, great, I missed the distinction. >> I=E2=80=99m sure this problem must have been solved for other things = that have migrated in a similar path. Is there a way to automatically = uninstall a port when doing a major version upgrade or when a = base-system thing tries to write to the same location (or, at least, = ensure that it is not removed when the package is removed later)? >=20 > no there is no mecanism for that except if you use pkgbase, in this = case if you > have a conflict aka a file installed in the same location (which is = not the case > for kernel modules from ports) then it will propose you to remove the > conflicting package. Sounds like it should just work and the next autoremove will remove the = one that isn=E2=80=99t needed anymore. Thanks. David=