From owner-freebsd-arch@freebsd.org Tue Oct 20 16:03:04 2020 Return-Path: Delivered-To: freebsd-arch@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 5CBB9434A08 for ; Tue, 20 Oct 2020 16:03:04 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CFz1M2RpLz4SkQ for ; Tue, 20 Oct 2020 16:03:03 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-il1-x143.google.com with SMTP id n5so2956271ile.7 for ; Tue, 20 Oct 2020 09:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gL8y1j++KyKtUKGk4c6jh0qEka86CRQVfmHi7ZJi8II=; b=KMD/cshBjtDMJcOrfXl3ravitvMrp3Y4lQEcVLWIk19ZhhVvW0Di1ddfFb66u9XbSs l5XRmB/cjYOeJVDvdtWeRgWxnLo9BSDAHhl45BzLEj9v/8SODSC9kO+ycU/1VPE9DL+F z3i1jgz/F7EIblp9lBrTeyRty7L7GHIW6T4udQO6yPhmdNv0QJpd3CA/JAMzZGhBleSi Dr1wZCAZWgDLwBw4Dmi/KDbcOgqX2sFwxUvWGOqWlMtZ6rfz3emEikGH/fPbuOdE4/v0 LbbDZnYSniwG+xXwtQCU5ehuwgFb37P/mnpqDiIIF9RFFEvs/5Kbiun/alXFhLl6QAhJ muqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gL8y1j++KyKtUKGk4c6jh0qEka86CRQVfmHi7ZJi8II=; b=Y0a352ohUhjg6vqODEsf0j0IvG4tD6bQd+cBYwwDkHwaWHB5262dr7a3R4+3VczR3w zBqvMDaDYBpjj/eKXzV9B6zfMLiulGz2xD7BTUeuFt76raTLBx12I0SNYboGsOdY4BMy /MvtPd8IqkaL9d9+Uct4k0Aq/MkWjqPhgejtquuWt6mErmjRrSK1NN8WveIPUDFKlvaa MACg51xx2IPqNDer3WQco68tGyb71p5rGg/euy4lopb1Uh/y4gM+gkQpriJSrU0P+304 xnFOj+/x9VnV5d7RJe1VPEbMPb0DjYKpMqBBuz7ti5z3eL00tL5IIcwzzw5ievb+MnHi 8wXA== X-Gm-Message-State: AOAM531Cnt6dNr4Y67djOKYCwRa+RU14SmeNy1AQXsLCYIcryhGailzl p+gKOHxI4CW7GN+hjBg3PG2ESw== X-Google-Smtp-Source: ABdhPJzthRna1qM7WZhfiCimy2Ki1Bhv6B4YePsGKzuBuX9JYS6sW0v+yU+BdZvL97coNwPDoDXusg== X-Received: by 2002:a92:3650:: with SMTP id d16mr2520832ilf.29.1603209781977; Tue, 20 Oct 2020 09:03:01 -0700 (PDT) Received: from mutt-hbsd (pool-100-16-222-53.bltmmd.fios.verizon.net. [100.16.222.53]) by smtp.gmail.com with ESMTPSA id u8sm2385588ilc.59.2020.10.20.09.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Oct 2020 09:03:00 -0700 (PDT) Date: Tue, 20 Oct 2020 12:02:59 -0400 From: Shawn Webb To: Warner Losh Cc: Greg 'groggy' Lehey , freebsd-arch@freebsd.org Subject: Re: Modernizing calendar(1) (was: svn commit: r365984 - head/usr.bin/calendar/calendars) Message-ID: <20201020160259.aha7xzw73ipndgco@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 13.0-CURRENT-HBSD FreeBSD 13.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0xFF2E67A277F8E1FA References: <20200923134334.czblcl2ppyxjnigs@mutt-hbsd> <20201020035420.GA59361@eureka.lemis.com> <20201020122844.terxqb75dyvb4zqc@mutt-hbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="siqln3ognil72mfm" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4CFz1M2RpLz4SkQ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=KMD/cshB; dmarc=none; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::143 as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org X-Spamd-Result: default: False [-4.32 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.995]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; NEURAL_HAM_LONG(-1.00)[-1.001]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; NEURAL_HAM_SHORT(-0.22)[-0.219]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::143:from]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arch]; RECEIVED_SPAMHAUS_PBL(0.00)[100.16.222.53:received] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2020 16:03:04 -0000 --siqln3ognil72mfm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 20, 2020 at 10:00:06AM -0600, Warner Losh wrote: > On Tue, Oct 20, 2020, 6:28 AM Shawn Webb wro= te: >=20 > > On Mon, Oct 19, 2020 at 10:46:56PM -0600, Warner Losh wrote: > > > On Mon, Oct 19, 2020 at 9:54 PM Greg 'groggy' Lehey > > > wrote: > > > > > > > This discussion, from a month ago, seems to have died a death. Fir= st > > I'll > > > > summarize what imp@ says: > > > > > > > > On Wednesday, 23 September 2020 at 9:18:27 -0600, Warner Losh wrot= e: > > > > > > > > > > 1. I'll do for calendar what I did for CTM. We'll split it out in= to > > its > > > > own > > > > > git repo. git filter-patch is straight-forward to use, but has a > > number > > > > of > > > > > caveats with the imperfect github mirror we have. I'll do it agai= nst > > the > > > > > beta cgit mirror and write up the process since I'm pretty sure > > people > > > > will > > > > > want to replicate it in the future. > > > > > 2. Delete the contentious bits (details to follow) > > > > > 3. Adjust the build (since calendar uses cpp to build up its > > databases) > > > > > 4. Prune the new repo to just the contentious bits into that repo > > (likely > > > > > under github.com/freebsd/calendar, like we've done for CTM and ot= her > > > > things) > > > > > 5. Create a port you can optionally install > > > > > 6. Adjust calendar to work when things are there (or not there) > > > > > 7. Remove the contentious bits from FreeBSD... > > > > > > > > This shows the procedural approach. But what do we really want? I > > > > think that we should agree that we don't want to remove functionali= ty, > > > > just bring things into the 21st century. As I see it, there are th= ree > > > > approaches: > > > > > > > > 1. Nobody cares enough about it, so leave it as it is. > > > > > > > > Given the lack of input on the subject, this might be the best > > > > choice. It's certainly the easiest. But it leaves a lot of dead > > > > wood and unbalanced and incorrect content. > > > > > > > > > > Nah, people want the crusty old files of it gone. Trust me. > > > > > > > > > > 2. Move the non-FreeBSD related stuff into a port. This is imp@'s > > > > approach above. As you can see, it's rather involved, and it se= ems > > > > to me that we shouldn't be doing this sort of thing until we've > > > > moved the project to git and the dust has settled. It also > > > > complicates maintenance, and it doesn't address the dead wood and > > > > dubious content. > > > > > > > > > > It's actually not all that involved. I've done it before for CTM and = it's > > > about 1/2 hour of work to pull all the history along. 0 hours of work= if > > > you don't care about the history. It actually goes hand in hand with = #3 > > > below. > > > > > > > > > > 3. Create a separate port that sucks in and maintains suitable > > > > calendar entries from *somewhere* and maintain a directory > > > > hierarchy, say /usr/local/calendar, in the same form as the curr= ent > > > > /usr/share/calendar. Modify the calendar(1) in the tree to look= at > > > > this hierarchy as well. /usr/share/calendar should remain for t= he > > > > few FreeBSD-related files (as far as I can tell, only > > > > calendar.freebsd). > > > > > > > > > > Yea, I think you're right. The FreeBSD one is the interesting bit to = the > > > project, and there's enough people that have .calendar files to make = it > > > interesting to stay in base. Were it not for this FreeBSD connection, > > maybe > > > it could just live entirely in ports. Calendar has been around since = 7th > > > Edition Unix, so there's history there as well, though that seems less > > > important these days. > > > > Note that the history of the calendar files is retained in the src > > repo, so nothing there is lost with regards to tracing the history > > to "back in old country." > > >=20 > It's trivial to extract, though... so there's no need to argue to have the > best of both worlds. >=20 > But the bigger point I'm making is that the calendar.freebsd file is more > central to the project and there has been a large desire expressed to keep > that bit in base. Yup yup. Agreed on all parts. :) --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD GPG Key ID: 0xFF2E67A277F8E1FA GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9 3633 C85B 0AF8 AB23 0FB2 https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Sha= wn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --siqln3ognil72mfm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAl+PCi8ACgkQ/y5nonf4 4fqX+Q//cBE3WeR9ZKBAlGpUHn2qdmhd3HIOq4LYjWmOHm1yq73dXcjtHkBlt8CR RDY43ynLb0IGGNxWhQUwuaWwNTgJfsy32uapZODyR45trR8nstAgQKXPq0gieLk9 ZJE6h3B2GvAijnpJtywqZ7X7mOm4Ux6e+NiVeDQkGAuFdJO0Wp534Wfe1Le6fRPo PL2b8pMrmG0AeSkukx1WAuaOwuGl0WB8Ysez1rbi1Md0NLycJgufcqIPesWCqYUJ 34JeSpbYSONsqz6C+Jxpqdh4e75jZG8yW3YQHCp9awdzi5BtenUzPDbd8jHaVJ3x uqM7tcGuMC1DlbPwBfE3LyAdFXSTK9sZVSJG4sFNJzrb67P//AH4w77ws1KoCel6 pV6haDgmROAUqblcv9yqrKP8YswQQF6jJUQBPAANMyA/dvEUjI7knQqpSxNzGyDn qEaNVrWGvLzdW3gutAZ+fsuPiMpRqfhy9zr62PPQdV+1ySnPksiDGrdgX4UW4B+7 j4Hj7UnVa+SXlNX0MG0vYps+ZRkHQ7TRS6WqJjSxg0h+XNnV+Vy+qlFgZG9MnhGr 5kLgEnysXPPAsfuBWAKlGlChrhSgEpJBMzT9801vbmMUgAkGvx26qJo4uGMDTO/N QJk04C1F4kHzPSNSQHHNWjj/4pndy/wNK9z75cQ8S9z39PXdFfg= =Hucw -----END PGP SIGNATURE----- --siqln3ognil72mfm--