Bug 279682 - x11/xscreensaver: Update to 6.09
Summary: x11/xscreensaver: Update to 6.09
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Felix Palmen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-11 14:43 UTC by Anton Saietskii
Modified: 2024-08-27 11:51 UTC (History)
1 user (show)

See Also:
zirias: maintainer-feedback+


Attachments
v0 (completely untested, apply via `git am`) (3.13 KB, patch)
2024-06-11 14:43 UTC, Anton Saietskii
no flags Details | Diff
v1 (apply via `git am`) (8.56 KB, patch)
2024-06-12 15:18 UTC, Anton Saietskii
no flags Details | Diff
poudriere build log (25.09 KB, application/x-xz)
2024-06-12 15:18 UTC, Anton Saietskii
no flags Details
v2 (apply via `git am`) (6.10 KB, patch)
2024-08-27 09:35 UTC, Anton Saietskii
zirias: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Saietskii 2024-06-11 14:43:42 UTC
Created attachment 251398 [details]
v0 (completely untested, apply via `git am`)

Really sorry that I'm posting this 4 days (!) after release, however it seems I'm anyway fastest.
Comment 1 Anton Saietskii 2024-06-12 15:18:12 UTC
Created attachment 251418 [details]
v1 (apply via `git am`)

Sort plist.
Comment 2 Anton Saietskii 2024-06-12 15:18:58 UTC
Created attachment 251419 [details]
poudriere build log
Comment 3 Anton Saietskii 2024-06-25 10:37:52 UTC
Friendly reminder.
Comment 4 Anton Saietskii 2024-06-29 20:16:22 UTC
Maintainer timeout.
Comment 5 Felix Palmen freebsd_committer freebsd_triage 2024-08-27 06:19:29 UTC
(In reply to Anton Saietskii from comment #1)
Hi! Thanks a lot for that work. First of all, I'm really sorry, I've been away for family reasons and after that, my infrastructure was unusable for ports work for many weeks because of upgrade issues (which I think I solved now).

Fixing the plist sorting is certainly a good thing to do, I never got around since adopting the port. But please note it should be sorted according to the *expanded* variables (so e.g. moving the .mo files was not correct).

Do you want to fix that yourself? (If so, ideally make it two commits, to separate stylistic from functional stuff). Otherwise I'd take your commit without sorting and do the sorting again myself...
Comment 6 Anton Saietskii 2024-08-27 09:35:50 UTC
Created attachment 253114 [details]
v2 (apply via `git am`)

Apologies for the delay. Re-done plist sorting.
Comment 7 Anton Saietskii 2024-08-27 10:03:16 UTC
(In reply to Anton Saietskii from comment #6)

Note here: looking at the ports git log, I don't see plist sorting as separate commits when something else being done _at the same time,_ it's (almost?) always 'while here, sort plist'. Which makes sense IMO--we shouldn't create more commits just to create commits, and the plist sorting (along with, for example 'pet portfmt' things) isn't significant enough to deserve it's own commit, it's no-op basically.
Comment 8 Felix Palmen freebsd_committer freebsd_triage 2024-08-27 10:21:26 UTC
(In reply to Anton Saietskii from comment #7)
> looking at the ports git log, I don't see plist sorting as separate commits
> when something else being done _at the same time,_ it's (almost?) always
> 'while here, sort plist'.
Old habits are hard to change. The "while here, do home improvement" pattern made perfect sense before moving to git. In CVS and SVN, you didn't have an easy way to draft a series of commits; if you wanted to separate stuff, it was a lot of manual work while actually committing ... a single larger commit was the safer choice.

> Which makes sense IMO--we shouldn't create more commits just to create commits,
> and the plist sorting (along with, for example 'pet portfmt' things) isn't
> significant enough to deserve it's own commit, it's no-op basically.
Being a no-op is exactly the reason why it *should* be a separate commit. Mixed into functional changes, it just distracts from these when later reading the history. More commits on the other hand don't do any harm, you just skip over the uninteresting ones, while the diffs for the interesting ones are quickly understood.
Comment 9 Anton Saietskii 2024-08-27 10:24:06 UTC
(In reply to Felix Palmen from comment #8)

Could you please point me to something in Porter's Handbook or Commiter's Guide to support the statement? Thanks in advance!
Comment 10 Felix Palmen freebsd_committer freebsd_triage 2024-08-27 10:43:48 UTC
(In reply to Anton Saietskii from comment #9)
If you expect every single detail to be documented in one of the "books", you'll be disappointed quite often.

The porters' handbook arguably doesn't need it, unless we start *expecting* contributors to shape commits (for git-am). Maybe that could be a nice idea.

The committers guide has the generic advice to split up changes. I guess it "goes without saying" not to mix up completely unrelated aspects in a single commit, but yes, it isn't explicitly stated. Neither is "while here, do xxx" of course, this has always been a hack. You could have a look at the commit history of the 'src' repository, there you'll find a LOT more examples of separate non-functional commits ... because the src team seems to have adopted a git workflow quickly and mixing in unrelated stuff is actually criticized in reviews.

Anyways, I want to do the right thing here, so I'll split it up.
Comment 11 Anton Saietskii 2024-08-27 11:08:23 UTC
(In reply to Felix Palmen from comment #10)

This may not work well for ports.
For example, one creates 2 PRs -- a 'no-op plist sorting' one and 'update port' one. One of them got forgotten for some reason, while other being reviewed -- problem here.
Ok, to avoid that, we put 2 patches to single PR -- which order they should be applied in if both touching same files, like plist? That's important because reversed order may lead to merge conflict (separate PRs struggle from this one as well).
So, correct order should be indicated in file names or a comment, which doesn't seem to be a fool-proof way for me.

I don't expect answer to above from you, this is just a couple of most obvious difficulties and rationale for this to be specifically documented, especially while most committers don't ask for separate commits as of now.

> Anyways, I want to do the right thing here, so I'll split it up.
If this would help to land update finally, nice.
Comment 12 Felix Palmen freebsd_committer freebsd_triage 2024-08-27 11:33:28 UTC
Comment on attachment 253114 [details]
v2 (apply via `git am`)

(In reply to Anton Saietskii from comment #11)
So far, we don't expect contributors to shape commits at all (although I personally like seeing a "git patch" to be applied with git am). Officially, it's the committer's job to split the stuff if necessary (among other things like simply writing the commit message, setting the correct author, etc).

But then, if you WANT to do it, just concatenating git patches works. It confuses bugzilla's diff-view a bit ;) but git-am will happily apply the series of commits.

Of course, if you like to contribute "complex" changes (typically more than a single commit), there's also phabricator, anyone can ask for an account there and if you show a reason (contribution work!), you'll get it. There you can both have multiple commits in a single review or have multiple reviews organized in a "stack". There's also "git-arc" helping create and manage the latter, see devel/freebsd-git-devtools and related docs: https://freebsdfoundation.org/wp-content/uploads/2021/11/FreeBSD-Code-Review-with-git-arc.pdf

That all said, I already split your patch (easy enough with a git cherry-pick), I'll push it after a few more test builds, thanks again.
Comment 13 commit-hook freebsd_committer freebsd_triage 2024-08-27 11:49:38 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4eaac6b3f67120ccd465272e22fccf200b96f70c

commit 4eaac6b3f67120ccd465272e22fccf200b96f70c
Author:     Anton Saietskii <vsasjason@gmail.com>
AuthorDate: 2024-06-11 14:36:48 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2024-08-27 11:48:19 +0000

    x11/xscreensaver: Update to 6.09

    New upstream release.

    Changes:
      * New hacks, kallisti and highvoltage.
      * Formal-wear for headroom.

    PR:             279682

 x11/xscreensaver/Makefile  | 3 +--
 x11/xscreensaver/distinfo  | 6 +++---
 x11/xscreensaver/pkg-plist | 8 ++++++++
 3 files changed, 12 insertions(+), 5 deletions(-)
Comment 14 commit-hook freebsd_committer freebsd_triage 2024-08-27 11:49:39 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d3415eeba849378d1111176d67b394309adf012

commit 0d3415eeba849378d1111176d67b394309adf012
Author:     Anton Saietskii <vsasjason@gmail.com>
AuthorDate: 2024-06-11 14:36:21 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2024-08-27 11:48:19 +0000

    x11/xscreensaver: Fix pkg-plist sorting

    PR:             279682

 x11/xscreensaver/pkg-plist | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)
Comment 15 Felix Palmen freebsd_committer freebsd_triage 2024-08-27 11:51:12 UTC
Committed, thanks!

Had to add two new manpages as well, just as a hint, poudriere-testport spots these things.