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

opensmtpd: fix interaction with dovecot-2.3.1 #42139

Merged
merged 1 commit into from Jun 18, 2018

Conversation

Ekleog
Copy link
Member

@Ekleog Ekleog commented Jun 17, 2018

This has been merged upstream at
OpenSMTPD/OpenSMTPD#847

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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.

@Ekleog
Copy link
Member Author

Ekleog commented Jun 17, 2018

cc @obadz @rickynils

For the backport to 18.03, I wonder whether it's best to also backport the 6.0.3p1 update, as it appears to not introduce any backward-incompatibility, and the patch doesn't apply cleanly on 6.0.2p1 (even though it would most likely be easily adapted)

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: opensmtpd

Partial log (click to expand)

shrinking /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/sbin/smtpd
shrinking /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/sbin/smtpctl
shrinking /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/libexec/opensmtpd/mail.local
shrinking /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/libexec/opensmtpd/encrypt
gzipping man pages under /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/share/man/
strip is /nix/store/4mf2xm9p32lzrim927yk92xhx35yaz62-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/libexec  /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/bin  /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/sbin
patching script interpreter paths in /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1
checking for references to /build in /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1...
moving /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/sbin/* to /nix/store/q1rzdyaw6pp301smqy7p1zw2jffypjwv-opensmtpd-6.0.3p1/bin

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: opensmtpd

Partial log (click to expand)

shrinking /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1/libexec/opensmtpd/mail.local
shrinking /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1/sbin/smtpctl
shrinking /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1/sbin/smtpd
gzipping man pages under /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1/share/man/
strip is /nix/store/min150lkigznaayzpwvf8d4jdl1dqvx6-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1/libexec  /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1/bin  /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1/sbin
patching script interpreter paths in /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1
checking for references to /build in /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1...
moving /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1/sbin/* to /nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1/bin
/nix/store/884mpjk83fsq4ayf53jzh39a271dch9l-opensmtpd-6.0.3p1

@@ -23,7 +23,7 @@ else stdenv.mkDerivation rec {
sha256 = "291881862888655565e8bbe3cfb743310f5dc0edb6fd28a889a9a547ad767a81";
};

patches = [ ./proc_path.diff ];
patches = [ ./proc_path.diff ./return-path-fix.diff ];
Copy link
Member

Choose a reason for hiding this comment

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

Can be fetchpatch used here? Then it is more obvious that we can remove this patch in the next version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! I didn't know GitHub provided a .diff URL for fetching commits, grepping for fetchpatch pulled it out. That should be fixed now :)

@Mic92
Copy link
Member

Mic92 commented Jun 18, 2018

A 6.0.3p1 backport should be fine.

@Ekleog
Copy link
Member Author

Ekleog commented Jun 18, 2018

Just opened #42168 that should do the backport of 6.0.3p1 as well as of this fix :)

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: opensmtpd

Partial log (click to expand)

shrinking /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/sbin/smtpd
shrinking /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/sbin/smtpctl
shrinking /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/libexec/opensmtpd/mail.local
shrinking /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/libexec/opensmtpd/encrypt
gzipping man pages under /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/share/man/
strip is /nix/store/4mf2xm9p32lzrim927yk92xhx35yaz62-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/libexec  /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/bin  /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/sbin
patching script interpreter paths in /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1
checking for references to /build in /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1...
moving /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/sbin/* to /nix/store/pcapx63yhnqbl0zp7bbvl6694ksiczsh-opensmtpd-6.0.3p1/bin

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: opensmtpd

Partial log (click to expand)

shrinking /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1/libexec/opensmtpd/mail.local
shrinking /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1/sbin/smtpctl
shrinking /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1/sbin/smtpd
gzipping man pages under /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1/share/man/
strip is /nix/store/min150lkigznaayzpwvf8d4jdl1dqvx6-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1/libexec  /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1/bin  /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1/sbin
patching script interpreter paths in /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1
checking for references to /build in /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1...
moving /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1/sbin/* to /nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1/bin
/nix/store/i8bcdbzh2s88jjj35606694k425a9xiw-opensmtpd-6.0.3p1

@xeji xeji merged commit 20bc7f7 into NixOS:master Jun 18, 2018
@Ekleog
Copy link
Member Author

Ekleog commented Jun 18, 2018

Thanks!

@Ekleog Ekleog deleted the opensmtpd-dovecot-fix branch June 18, 2018 21:45
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.

None yet

4 participants