Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2022 11:33:55 +0100
From:      Stefan Esser <se@FreeBSD.org>
To:        Henrik Rosenke <rosenke@dssgmbh.de>
Cc:        FreeBSD <freebsd-ports@freebsd.org>
Subject:   Re: pkgbase checksums
Message-ID:  <5fc8453b-1aab-bce9-59e9-1ee36161a580@FreeBSD.org>
In-Reply-To: <a0cc9488-ec23-3ae7-7e0c-f31d0b8e666f@dssgmbh.de>
References:  <a0cc9488-ec23-3ae7-7e0c-f31d0b8e666f@dssgmbh.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------n8svLi2P098YCFBP60DZP3pm
Content-Type: multipart/mixed; boundary="------------B2O7Lbu4c2uOVHE9yzRyUAiy";
 protected-headers="v1"
From: Stefan Esser <se@FreeBSD.org>
To: Henrik Rosenke <rosenke@dssgmbh.de>
Cc: FreeBSD <freebsd-ports@freebsd.org>
Message-ID: <5fc8453b-1aab-bce9-59e9-1ee36161a580@FreeBSD.org>
Subject: Re: pkgbase checksums
References: <a0cc9488-ec23-3ae7-7e0c-f31d0b8e666f@dssgmbh.de>
In-Reply-To: <a0cc9488-ec23-3ae7-7e0c-f31d0b8e666f@dssgmbh.de>

--------------B2O7Lbu4c2uOVHE9yzRyUAiy
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Am 13.01.22 um 10:36 schrieb Henrik Rosenke:
> Hello,
>=20
> what is the correct way to handle pkg checksum mismatches in pkgbase? (=
pkg
> check -sa)
> For example after installing bash or editing /etc/hosts there are check=
sum
> mismatches:
>=20
> =C2=A0=C2=A0=C2=A0 FreeBSD-clibs-12.2.s20220105232846: checksum mismatc=
h for /etc/hosts
> =C2=A0=C2=A0=C2=A0 FreeBSD-clibs-12.2.s20220105232846: checksum mismatc=
h for /etc/shells
>=20
> I workaround this after setting up the jail by executing pkg check -r b=
ut this
> doesnt seem right to me. Also this doesnt handle modifications made aft=
erwards.
> In normal pkgs we got the ability to provide a default and modify this,=
 for
> this files no checksums are stored from what i know.

I'm not a pkgbase user, but I'd think that this could be fixed
by using @sample to have e.g. /etc/hosts.sample with a checksum,
which is copied to /etc/hosts if that file does not exist during
installation.

This logic works great for ports, but had the disadvantage of
doubling the number of files in /etc that are installed that way,
since the .sample file will have to stay as part of the installed
pkgbase package and may occasionally be updated.

That would also allow a special version of etcupdate to detect
changed .sample files and to perform a 3-way merge on the installed
files as is possible when building from source.

Regards, STefan

--------------B2O7Lbu4c2uOVHE9yzRyUAiy--

--------------n8svLi2P098YCFBP60DZP3pm
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmHgABQFAwAAAAAACgkQR+u171r99UTs
jggAmA9Au7Tr8Vg4JrWQtGSueNLoZ1ZoX4lFYHePjlq0ZijloWmIhSyA0O4oYabz/poQYWcIe9pK
tXBulFQ90beX0wlQsGWRVD8nSzD/SfxMRVVMiTm6t0Jy4FCxB2/ub+s3RGH9kaR5cPA2UjeUpLk8
/kXBUfmnGPEjUdmNxjtjE2IuETMOpp8hCwY54eRgyrla5wcDwh8Gle2820NM5zyQMP7vO/38da05
RFn6RQD00oCGoROFZdALBCbJmgA2dpSGaKNFwCVqwBBwHfEp6i98EmiYXl4jBq3jK7bzZa1Mjx8e
s5kvCvnQAjgEL7qXyE/qYUKzRzWPM7jBP92qpdeEFg==
=Hdpz
-----END PGP SIGNATURE-----

--------------n8svLi2P098YCFBP60DZP3pm--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5fc8453b-1aab-bce9-59e9-1ee36161a580>