From nobody Fri Jun 18 09:43:02 2021 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 644A911E77BC; Fri, 18 Jun 2021 09:43:07 +0000 (UTC) (envelope-from se@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 4G5v9l2PJZz3Nr5; Fri, 18 Jun 2021 09:43:07 +0000 (UTC) (envelope-from se@freebsd.org) Received: from Stefans-MBP-449.fritz.box (p200300cd5f10160085168ad9c53f9059.dip0.t-ipconnect.de [IPv6:2003:cd:5f10:1600:8516:8ad9:c53f:9059]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id D10B32A4F0; Fri, 18 Jun 2021 09:43:06 +0000 (UTC) (envelope-from se@freebsd.org) To: FreeBSD ports , FreeBSD CURRENT From: Stefan Esser Subject: Add support for -c to sha256sum to fix port build failures Message-ID: <203c9c0c-eeb1-9e44-b4b2-60cd071120e9@freebsd.org> Date: Fri, 18 Jun 2021 11:43:02 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 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: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JwcUzmd8JEH01IwkVGVPTwcmQ7WhrBqPz" X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JwcUzmd8JEH01IwkVGVPTwcmQ7WhrBqPz Content-Type: multipart/mixed; boundary="TSLkYEMT2lXJf3yC4iPt4vJKRX2VoVK7x"; protected-headers="v1" From: Stefan Esser To: FreeBSD ports , FreeBSD CURRENT Message-ID: <203c9c0c-eeb1-9e44-b4b2-60cd071120e9@freebsd.org> Subject: Add support for -c to sha256sum to fix port build failures --TSLkYEMT2lXJf3yC4iPt4vJKRX2VoVK7x Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable The sha256 et.al. programs have recently been extended to provide GNU compatible features if invoked as sha256sum. This does now lead to port build issues, since there are ports that assume that the -c option is implemented and that treat an error exit of sha256sum -c as an indication of corrupted source files. I have created https://reviews.freebsd.org/D30812 as a quick attempt to provide a GNU compatible sha256sum -c feature and I'd appreciate a review this change. An alternative to adding this feature would be changes to all ports that now fail due to the assumption that sha256sum does provide that option. I could have used linked list macros, but given the simple structure I did not think the extra dependency was required here, and it does not really simplify the program, IMHO. Regards, STefan --TSLkYEMT2lXJf3yC4iPt4vJKRX2VoVK7x-- --JwcUzmd8JEH01IwkVGVPTwcmQ7WhrBqPz Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmDMaqYFAwAAAAAACgkQR+u171r99URQ Iwf/YVKOAXIQtKMIWb2HTcKqNnRoQyQ53X2VxR+1FPnyZKLrORmZf2dLYbr2Xjx6EJe38dgGNeN+ aGkz5dpYGKWR24C6cj3JbPBnSZY879wF5DMm9EPesGsai1ZFvOOzaQidIWWbhdBB7gmr3eM1TdV9 harvdHuHQki15GEy/KlMggsvZfZzpVKiT45aW/uFtFhj0uoNFdTy9Lx7/NS3odSY+hP6PH5Ra/op KwSR+mVJWf7mAboRjA4u8oAdc/Mvi3Gfv6I1W+vydhAyCZsQYnwRp6qEFd/A3FvdkDpgJYvBhopN l5dcWzLzRq/LqMjNVzHWrsFW1joT/mHcghD1PtBbrg== =3nIz -----END PGP SIGNATURE----- --JwcUzmd8JEH01IwkVGVPTwcmQ7WhrBqPz--