From nobody Tue Sep 12 09:25:40 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 4RlJ9D3lwVz4tHxT for ; Tue, 12 Sep 2023 09:25:52 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4RlJ9D2y6Yz4HnR for ; Tue, 12 Sep 2023 09:25:52 +0000 (UTC) (envelope-from theraven@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694510752; 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; bh=+hAG6sqWu8cMAwqB2kfqv4hfzpJMhCydGvnAWEWJCXc=; b=wxHzsnslX9k5jKg1c81EBVUvWEQWE8ovfQdACvdsbj91uu8s2X3E5nrQhl0l/9NXxanGR9 JxbrTVOrHd1pPuj4Sju3XfJg9Fe6y41EU2s0URNEQWC0GEkZ7ktefoE80hvHmyhRkn9AsY fCgxJQj/LyMUYTQMUFYFySbTP03Z3UBvFQmvvknSQF83m3zbpFRgyY4mm9XqOEEzuW3Uv2 Qq7yZdpLLOcBOLbFyZSCGQtQj0p6QgT1siv4G5H1XIjGljxAFXuWqT3Py+Mm7n+aSM5kY6 3RWZ4IevR0SRXcAeGt8TaEt6GOd9tVZ9bvNeF7bDa6lDMAkvKdfNKT22BHvbYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694510752; a=rsa-sha256; cv=none; b=VXvgj93u/4V0oiHubsT1om2o03KbRel3pYUMtuctosEvmaD027Bs2OqG3i9I1ywdKUqd1B J91lufpviiog/mcHVFgFsVIVmqlALmeX1dBU4f9H73JepZrHNXiTSi6/0d2eKeJHD+gcnh Fd0bm5fbJ6q9GUHxOsGJnJZ2ngWUSXfoU691eN7ChZxogjF9iClsXU+QGZ+g7hLH3g0jT3 8Tc9jjCSE+yar5hG514taV8Dke6w8qzhw1pxcQb9wcY1pnaVjXDYUimjAwTlahekWEBCOD DNbhetALETZ390ZpiHOeqavdVG9YFZYOWtkc20L/kcNUFyaxA8b38gLemnZJkQ== 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=1694510752; 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; bh=+hAG6sqWu8cMAwqB2kfqv4hfzpJMhCydGvnAWEWJCXc=; b=XMrt3uywrVsxYrnlEZJbTwH69uqCkI1i9bFoSXFZHP7sLHuakHE5JtL95TKsYgWrF2cAl3 e7+Llq9aUVz8A2Sohb8xBrBvDYGzZpFTIjrTwkfWRj9EL2/smtUca0LQJxzg64tNPNluVD 2ZHbktzUKrI0UU8sOU/+/NWLufj2HX6kGzcSOKfsmWX4SkdOZaUqTaEK4xELlqc2CNXsD9 /0pyVOY/bcfgLD9T4yenA10AYIVkaQgFS82jBT5E35dU662glfpR/SfO0h2fahasFCVTvM nG7E1j+1zkGXnTUTPfbipIcgLUD6lYVDMnOxaP0m4KttAEFVjx54xqrcsWjdfg== 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 4RlJ9D1scWz1QPv for ; Tue, 12 Sep 2023 09:25:52 +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 D120E9C69 for ; Tue, 12 Sep 2023 10:25:51 +0100 (BST) From: David Chisnall Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: kmod ports and conflicts when upgrading Message-Id: <69631434-DDFB-4FB0-A980-72B75341C303@FreeBSD.org> Date: Tue, 12 Sep 2023 10:25:40 +0100 To: ports@freebsd.org X-Mailer: Apple Mail (2.3731.700.6) Hi, 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. 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). 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)? David=