From owner-freebsd-current@freebsd.org Mon Jan 4 16:04:17 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E24634DA075 for ; Mon, 4 Jan 2021 16:04:17 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (plan-b.pwste.edu.pl [IPv6:2001:678:618::40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plan-b.pwste.edu.pl", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D8gRh4SSHz3C4C for ; Mon, 4 Jan 2021 16:04:16 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from fomalhaut.potoki.eu ([IPv6:2001:470:71:d47:e50a:9397:cf91:e1d6]) (authenticated bits=0) by plan-b.pwste.edu.pl (8.16.1/8.16.1) with ESMTPSA id 104G45C9026511 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 4 Jan 2021 17:04:06 +0100 (CET) (envelope-from zarychtam@plan-b.pwste.edu.pl) X-Authentication-Warning: plan-b.pwste.edu.pl: Host [IPv6:2001:470:71:d47:e50a:9397:cf91:e1d6] claimed to be fomalhaut.potoki.eu To: freebsd-current@freebsd.org References: <3137a3ce-50c8-bee5-6a15-7701e3281500@FreeBSD.org> From: Marek Zarychta Subject: Re: CURRENT, usr/src on git, howto "mergemaster"? Message-ID: Date: Mon, 4 Jan 2021 17:04:04 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2SISRk4qiywZhQwf4pm653yzA2DEHdFrk" X-Rspamd-Queue-Id: 4D8gRh4SSHz3C4C X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_ATTACHMENT(0.00)[]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[plan-b.pwste.edu.pl:+]; DMARC_POLICY_ALLOW(-0.50)[plan-b.pwste.edu.pl,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:678:618::40:from]; ASN(0.00)[asn:206006, ipnet:2001:678:618::/48, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[plan-b.pwste.edu.pl:s=plan-b-mailer]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[pwste.edu.pl:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2001:678:618::40:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[1.000]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2021 16:04:17 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2SISRk4qiywZhQwf4pm653yzA2DEHdFrk Content-Type: multipart/mixed; boundary="M6YBqSbSSisHDXlZKpgImItLUuk6E2rXr"; protected-headers="v1" From: Marek Zarychta To: freebsd-current@freebsd.org Message-ID: Subject: Re: CURRENT, usr/src on git, howto "mergemaster"? References: <3137a3ce-50c8-bee5-6a15-7701e3281500@FreeBSD.org> In-Reply-To: --M6YBqSbSSisHDXlZKpgImItLUuk6E2rXr Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable W dniu 04.01.2021 o=A014:32, David Wolfskill pisze: > On Mon, Jan 04, 2021 at 05:22:10AM -0800, Jeffrey Bouquet wrote: >> ...=20 >> after checking out stable/12 with git, here a >> # cd /usr/src/usr.sbin/mergemaster >> # sh ./mergemaster.sh -piPcv >> >> and then answering 'l' for left for most merges >> it seems to have sufficed.=20 >> This was before installworld.=20 >=20 > Yes. However, the salient issue for me is that with the Ids in the > file, on subsequent invocations, mergemaster would leave the file as-is= > unless the Id changed. This wass usually on the order of a few times > per year for a given file. >=20 > Now that the Ids are no longer present, mergemaster will now prompt on > every invocation for each file locally modified on each machine. >=20 > This amounts to about a dozen opportunities to screw things up for each= > machine daily for me; that's just not ... reasonable. >=20 > So far, etcupdate seems to be working out OK for me (as in "not > prompting for each of the files in question on each invocation"). >=20 >> In case that helps. >> I keep that command parameter in /etc/motd for each time around lookup= =2E=20 >> .... $FreeBSD$ tags can be regenerated locally with Git clean and smudge filters[1] applied on local git repository. This helps to keep the track of files updated by mergemaster(8) or etcupdate(8). The filters should be applied to only the files important for mergemagster. Applying filters to the whole repository degrades performance. [1]https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes Regards, --=20 Marek Zarychta --M6YBqSbSSisHDXlZKpgImItLUuk6E2rXr-- --2SISRk4qiywZhQwf4pm653yzA2DEHdFrk Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEMOqvKm6wKvS1/ZeCdZ/s//1SjSwFAl/zPHQFAwAAAAAACgkQdZ/s//1SjSya kwgAq3gvk6eAtvm0yCl/mbA9ZBprr5YIvapiRVz1/4m9U5y7spmQb2rvBhAepIEZ84NUIOQZ9/hD EGSufkYviGv4dWZz47vbL3C2DMm1g1pO6c1v/8L7OBVh+M1IcQDu4WCUGnp2xPPR3SInjjt/700d mNhY9CW30E9jIAg3SJVHGA6Rz8pfBicnCPoU5xD3mwIN+JE6YZo4oSSTgvKvvp3MAQC+XPjrhMoi PmKA1Wal1mgrVOwrcKlIdgX2B3005v2R+RiSlV/9IycBiKwg/KSD0AVRXeB0kMGtR2IX8MVZWyL/ ZFZ6x5PNok3MXTrYxVowWVvqLlbdGUWjCKOU6fru1w== =6Kzs -----END PGP SIGNATURE----- --2SISRk4qiywZhQwf4pm653yzA2DEHdFrk--