From nobody Thu Oct 2 09:01:21 2025 X-Original-To: freebsd-current@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 4ccm7v6x04z69PZ7 for ; Thu, 02 Oct 2025 09:04:27 +0000 (UTC) (envelope-from yasu@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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ccm7v6FCsz3Lry; Thu, 02 Oct 2025 09:04:27 +0000 (UTC) (envelope-from yasu@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759395867; 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=BHQBBf/zFqHLaCnxCMT5goStZprG1BerdcZqjxLfnuA=; b=hZ4ED5Aoo37L1lGt5Ga65nRyQDvjFdT83Wyc9JET1H90oVXHaxX4p4C51MwrjTGoooRWA4 mWugkisRIMGiPi47dYncd8BCVM0llrHedRJOypRo+/5TYH40jmrohnxQd3yW82sX/K4GMU u6hiabAvCg8ls7NZGnleqTq52Iw5xRJIO/avBoCQ4IEtqtDbA5On3pX2ILN4Dn9ny7vnAX dU2mEWwaqXjqivmq/KQV2KSNDgVs9ys41xGL5YpTfid0dr/JGZV3whhHY2CQ380YYZyQni +rKxjFg8KOCk7rGA4F42HtfJWqa54gi1e2xU2ok5gPSld2+cCBrW/P8636t5PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759395867; 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=BHQBBf/zFqHLaCnxCMT5goStZprG1BerdcZqjxLfnuA=; b=W5Ay23MtNLDLwLDDvmf7gtjQvYFPPKEsI8exqd+wPIgWrOh4hAm80JQaejJ908K6HC0bQI J07uNpgrg4v40Ff2aKenjmqGMEYuNntWzz+IfwGJIc1TSEs9ry/Y8LF6jc6J5N4W9GOX57 Loin9Vbt6uia9JcEYTrEJka3YIhnnk7Gz/UnasQJ69Em6QLXA+AcUgNeUEsnxRacOyhKxj pNZ/oJMiZn2dIqUoxVVmgd6udg/0gNh1/I4FiZNjMr070db0mIjkj0GZ8WrbRXnEOziqvD Rv7KzWvHJaN63IBYC70afZlVhn6Fa0eZD6nFIvy5e6mpuadL4RFoGH+iwCNdXw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759395867; a=rsa-sha256; cv=none; b=pdHCVt/R3i8752bnOug+71t/RC5vkXEp4qW0AxIFEgOWRdjuDvQ5Au6uDn//aQLOT7D5v9 yCwazW/0Bt7F7V+xxyfgPp62P/i7DB8DAo1kkZNoMzkQFl+dNTNIPCiyHO1AxYkLmO9P1F XwGhPtda+/ZAwAwOKqoOWL1bogLv+dLlRNPibZPq0J6C5lj8dE2rYuYI5ntLx20p1FktcJ YtOSmqjVSEoniY5aaITAc7pO6crRny6q6s+3UscKZ6hR4tmlesL4DQURYdi0Z0p+tnQ5K1 wpD6l3QkwBXkIzN8wtFvVjpxfdvghu1qPhMGbQWiDdVYl7ObDl5osc3bTQ4/rA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from localhost (unknown [IPv6:240b:11:220:fe00::174:11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: yasu/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4ccm7v1d4czsDM; Thu, 02 Oct 2025 09:04:27 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Date: Thu, 02 Oct 2025 18:01:21 +0900 (JST) Message-Id: <20251002.180121.980053125503545103.yasu@FreeBSD.org> To: freebsd-current@freebsd.org Subject: Questions about pkgbase From: Yasuhiro Kimura X-Mailer: Mew version 6.10 on Emacs 31.0.50 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, As is explained in announsement from Colin, pkgbase has become the default of install media. So I start playing with pkgbase and have some questions. Would someone please answer me them? 1. Consistency with update using source tree Let me assume I made clean install of 16.0-CURRENT system with pkgbase and updated it using source tree (make {build,install}{kernel,world}). After it has completed, base system itself shoule be updated successfully. Then what about things about pkgbase (e.g. version of package, list of included files, etc.)? Are they properly updated or become inconsistent? 2. `make delete-old-libs` If you chase -CURRENT you may face the situation that application installed as (non-pkgbase) package doesn't work well (don't start up, emit error message, incorrect behavior, etc.). Usually such sutuation happens because of bug and needs to be fixed. But sometimes it happens because of intentional change such as bellow. * Version of shared library has changed. * Name of shared library has changed. * Shared library is removed. The latest example of such situation happened when Kerberos of base system changed from Heimdal to MIT. It caused curl(1) to fail to run and made git(1) unusable. If you update system using source tree, application error caused by above reasons can be prevented by following steps as below. a. Follow the step 1 to step 10 explained in /usr/src/Makefile b. Rebuild and reinstall all (non-pkgbase) packages. c. Do `make delete-old-libs`. On the other hand, it doesn't seems pkgbase keeps obsolete files while updating. IIUC `pkg upgrade` uninstall all files included in old version of package in question before installing files of new version. So obsolete files dissapear after update has finished. Then is there any way to prevent situation as above? 3. etcupdate(8) If you update system using source tree, `make installworld` don't update files under /etc, and etcupdate(8) takes care of it including confliction resolving. On pkgbase system, however, files under /etc seems to belong to packages. So they are updated by `pkg upgrade`. Then how confliction is handled if it happnes? 4. Build pkgbase repository by myself I'd like to build pkgbase repository and configure system to use it. Is it documented somewhere? 5. Handle pkgbase packages and non-pkgbase ones separately The last question is about pkg(8) rather than pkgbase. On -CURRENT system I build (non-pkgbase) packages I want to use by myself with poudriere and install them from created repository. And each time __FreeBSD_version is bumped I rebuild and reinstall them. On non-pkgbase system, I usually reinstall packages by executing `pkg-static upgrade -fy`. But sometimes I uninstall all installed packages with `pkg-static delete -afy` and install them again. In either case it doesn't affect base system. On pkgbase system, however, the former causes side effect that base system packages are also reinstalled. And the latter results in disaster. Then is there any way to (re|un)install all installed non-pkgbase packages? Best Regares, --- Yasuhiro Kimura