From nobody Tue Jun 04 05:00:57 2024 X-Original-To: dev-commits-src-all@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 4Vtdhn2N9bz5MLF6; Tue, 04 Jun 2024 05:00:57 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vtdhn1Zv5z4bcM; Tue, 4 Jun 2024 05:00:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717477257; 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=hLWZDzIESOXdSjAMRDHhcIUwNgmjfJ9puSxyyXFLkqE=; b=obIqiiZWtIyILuPc2BUMu3UPbVfJrkzW+j5ccBxvnQ+2u9ziYvpvqLb453h0pmOl9NX19W P8+OV8//QMfatN87VzUchNs8suAPgyS3pQdZf272dOfYJ2WCT2pysGQq4v6h4VyNg0wrbh lAoCRj5cM3fSMHHsBM4uAb9merI++LptJW3N1zj76bU/uaXwXcJUbP+duYSMsIgjhFCdEP iTRcPNRnDGkwURo8zj5A+T8ipAgJ25iJsdUBJ+0K9NQpkvgd939jBv2at01eJdr9gYIM3J 7qW/YHyfJrhja0pJ6wcv5ZMadffZskTOGq1//HK31bdfED7qeRW6y6OFOIaCkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717477257; a=rsa-sha256; cv=none; b=A90Z3iZQsk/oiutbmeruzv57wzlstrwb0k4SPj6/5lw5pOX6kzsCTTaX7iPBGzsUXp0ZLr Y/vUbdhSoaDHTu/2LXwrrBJC79VgUDtfIs4Wt+6T2X8G3YwXCg5eZNcQ8WqhmFhAQ5QeIx 3LIpjThokzNX72vKrFxt1rtKCv+tGycYcPt4hJpw5qEpw7he5vvAPWz8YOAYPjfK/wR/On 29BUURyLG6ztjlxGC6eluFzT1T3ACSyJq3uQV0O6uC5UIFP8AL/taBClLib8Dd0bi+AIVT zvkvr7MHqczKCigxEfe0Pdhwlr9CUNvUG8R9yFI0zNV+Umnc6wvPAa0XXZYRSA== 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=1717477257; 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=hLWZDzIESOXdSjAMRDHhcIUwNgmjfJ9puSxyyXFLkqE=; b=Ea3sPKxX5KtDgUt8htga4fA+aJpV+H0H+zzT6aNaILwNQQWtRQ1mylsN1Uey/HYH4hIRJY fxTFEP/C68XCRGryvMCT0Do/hCmSzumaPGxsiP48d/K7Qs/UgpPguOTnq44Rq3emzkgdpb +DOH4DlcPXKxjLjcR2snL/yTCDQhzp2OFXlnlddaLn6zie7tTs6mzjkuglv5rxiERDGAqm b3cgfAJUis78x/4VVN5pgRgzMpa4jBZC60WVz0XZ/HWj2SSU+EEqgoFptnr4pDKRYoOVP8 G0kaThYOObmieG13FlGEn3gvoacOC5UKRbap2wccqpXyttmpMJ+ATio8kN0k+g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Vtdhn13zsz153n; Tue, 4 Jun 2024 05:00:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45450v46045846; Tue, 4 Jun 2024 05:00:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45450vJo045843; Tue, 4 Jun 2024 05:00:57 GMT (envelope-from git) Date: Tue, 4 Jun 2024 05:00:57 GMT Message-Id: <202406040500.45450vJo045843@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Matthew Seaman Subject: git: a7abf88b4783 - stable/14 - Don't package /var/db/locate.database List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: matthew X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a7abf88b478302fe1e30a1e70cf0f5c01bc58288 Auto-Submitted: auto-generated The branch stable/14 has been updated by matthew: URL: https://cgit.FreeBSD.org/src/commit/?id=a7abf88b478302fe1e30a1e70cf0f5c01bc58288 commit a7abf88b478302fe1e30a1e70cf0f5c01bc58288 Author: Matthew Seaman AuthorDate: 2024-05-27 08:14:15 +0000 Commit: Matthew Seaman CommitDate: 2024-06-04 05:00:44 +0000 Don't package /var/db/locate.database ... or install an empty file. The locate database is a mutable working file, and unsuitable to be managed by pkg(8). locate(1) copes gracefully with the absence of this file. Running /etc/periodic/weekly/310.locate will create the locate database with the correct ownership and permissions. Having the locate.database file as part of the FreeBSD-runtime package means it gets zeroed if ever that package gets updated, which is excessive, given that updating packages will typically only change a relatively small number of the _filenames_ on the system -- unlike the file contents. Plus it always causes it to flag as modified when verifying checksums, but /var/db/locate.database is expected to be modified by the user. MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D45384 (cherry picked from commit 4354163e5fe8e180f62b892cdc3e51e3d7e4706f) --- etc/Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/etc/Makefile b/etc/Makefile index ddef82f64510..bd6d692e5316 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -88,10 +88,6 @@ distribution: .if ${MK_SENDMAIL} != "no" cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ -T "package=sendmail" ${ETCMAIL_SENDMAIL} ${DESTDIR}/etc/mail -.endif -.if ${MK_LOCATE} != "no" - ${INSTALL} -o nobody -g ${BINGRP} -m 644 -T "package=runtime"\ - /dev/null ${DESTDIR}/var/db/locate.database .endif cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ -T "package=runtime" ${FREEBSD} ${DESTDIR}/