Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neomutt: minor cleanup changes #30401

Merged
merged 1 commit into from Oct 27, 2017
Merged

neomutt: minor cleanup changes #30401

merged 1 commit into from Oct 27, 2017

Conversation

peterhoeg
Copy link
Member

@peterhoeg peterhoeg commented Oct 14, 2017

A few other minor changes:

  • neomutt has changed the binary name so we enable "mutt" via a wrapper script with a warning
  • we don't have to manually run the prepare.sh script as autoreconfHook handles
    everything for us
  • doc generation was previously trying to fetch DTDs from the net

Cc: @cstrahan @erikryb @jfrankenau @vrthra

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@gebner
Copy link
Member

gebner commented Oct 14, 2017

Looks like the update was already merged in PR #30394.

@peterhoeg
Copy link
Member Author

Indeed. I'll change this into a cleanup PR then instead. Thanks for noticing @gebner !

@peterhoeg peterhoeg changed the title neomutt: 20170912 -> 20171013 neomutt: minor cleanup changes Oct 14, 2017

enableParallelBuilding = true;
postInstall = ''
ln -s $out/bin/neomutt $out/bin/mutt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this decision intentionally? Any other linux distribution making this symlink?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it was done intentionally by me! ;-)

I have no idea if others are doing it, but if we apply the principle of least surprise we shouldn't just break calling mutt.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renaming mutt to neomutt was done intentionally, voted for and and announced on ML and changelogs. It's really not mutt anymore, and wants to stand apart from Mutt.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that surprise is bad in this case. I am not yet convinced of a situation where I will be using mutt and neomutt on the same machine and thus would not want that symlink... Neomutt should be pretty much capable of doing whatever mutt does (more or less).
While I prefer having the compatibility (for now) how would you go about this in the long term?
As far as I can see ArchLinux (AUR) is still lacking any kind of action regarding the latest release. Gentoo has been moving the neomutt naming for a while now (https://gitweb.gentoo.org/repo/gentoo.git/tree/mail-client/neomutt). As far as I can tell they do not maintain any backwards compatibility in this case.

I think introducing neomutt as the name of the binary early is a good thing. (As has been done here since it is just a symlink)
Keeping mutt as an alias around on the long run is debatable. For the purpose of keeping legacy craft small dropping it (at some point) is probably good.

Is there any kind of deprecation warning we can produce when someone is calling mutt instead of neomutt? Making the mutt (binary / script) a wrapper around neomutt that spits out a warning?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Archlinux now has a package in community-testing (before, only a PKGBUILD in AUR).
They also don't add a symlink or wrapper for bin/mutt there.

I'd agree a wrapper issuing a deprecation warning might be something useful for 17.09, but simply a symlink is not enough IMHO, as users don't know they need to upgrade to the new name.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the patch doesn't apply cleanly anymore :-/

Also, is there a reason you removed enableParallelBuilding = true;?

Additionally, neomutt recently added an Autosetup-based build system. Maybe we should also move to using this? (in a followup PR probably)…

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, is there a reason you removed enableParallelBuilding = true;?
I didn't remove it - just moved it together with the other "build" options.

I'll rebase tonight against master.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right - found it. Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is everybody OK with the wrapper?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

 - neomutt has changed the binary name so we enable "mutt" via a wrapper script
   with a warning
 - we don't have to manually run the prepare.sh script as autoreconfHook handles
   everything for us
 - doc generation was previously trying to fetch DTDs from the net
@peterhoeg peterhoeg merged commit 2542944 into NixOS:master Oct 27, 2017
@peterhoeg peterhoeg deleted the u/mutt branch October 27, 2017 07:02
@peterhoeg peterhoeg restored the u/mutt branch October 27, 2017 07:31
@peterhoeg peterhoeg deleted the u/mutt branch October 28, 2017 03:25
@peterhoeg peterhoeg restored the u/mutt branch October 30, 2017 02:34
@peterhoeg peterhoeg deleted the u/mutt branch November 1, 2017 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants