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

nixos/postfix: allow dollar parameters in lists #30612

Merged
merged 1 commit into from Oct 23, 2017

Conversation

rhendric
Copy link
Member

@rhendric rhendric commented Oct 20, 2017

Motivation for this change

Fixes #30521.

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.

@bjornfor
Copy link
Contributor

This may need an entry in the release notes for NixOS 18.03 (backward incompatibility).

@rhendric rhendric changed the title nixos/postfix: allow dollar variables in lists nixos/postfix: allow dollar parameters in lists Oct 22, 2017
@rhendric
Copy link
Member Author

Okay, added release note.

Is @qknight the right maintainer to nudge?

@qknight
Copy link
Member

qknight commented Oct 23, 2017

@uwap could you have a look at this please?

@uwap
Copy link
Contributor

uwap commented Oct 23, 2017

Looks alright to me!

@qknight qknight merged commit c522aaa into NixOS:master Oct 23, 2017
@qknight
Copy link
Member

qknight commented Oct 23, 2017

@bjornfor shall we also integrate it into 17.09?

@bjornfor
Copy link
Contributor

@qknight: Won't that break some users configs? Can it be considered a bugfix? I don't know :-)

@rhendric
Copy link
Member Author

I would vote for calling this a bugfix, since the inconsistency I described in #30521 is pretty clearly buggy IMO. Looking at the list of supported options, I don't actually think there are any list-of-string options that could reasonably want a literal dollar sign in them—networks and domain names can't contain them—so unless I'm missing something, someone would have to be doing some weird stuff if this broke their config.

@bjornfor
Copy link
Contributor

Undo the 18.03 release note then then, and pick both commits to release-17.09?

@tylerjl
Copy link
Contributor

tylerjl commented Nov 23, 2017

+1 to get this into a bugfix earlier than 18.03, as it currently stands, this just straight-up breaks postfix for most configurations. I'm just a user but wanted to mention that this caused postfix to simply break upon upgrading to 17.09 (note that the service starts normally but parses incorrect destinations, so the failure is hard to catch operationally).

@qknight
Copy link
Member

qknight commented Nov 23, 2017

so any wish what we should do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

postfix: $variables inconsistently available in config values
6 participants