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

mailutils: 2.2 -> 3.2 #27595

Merged
merged 3 commits into from Jul 26, 2017
Merged

mailutils: 2.2 -> 3.2 #27595

merged 3 commits into from Jul 26, 2017

Conversation

orivej
Copy link
Contributor

@orivej orivej commented Jul 23, 2017

Motivation for this change

This is a simpler alternative to #27580.

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
    • Linux
  • 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.

@Mic92
Copy link
Member

Mic92 commented Jul 23, 2017

Some tests fail on my system:

  2: MDA mode
 FAILED (mda.at:20)
  3: MDA mode, explicit envelope
 FAILED (mda.at:38)
  4: LMTP mode
 FAILED (lmtp.at:23)
  5: URL mode
 ok
  6: forwarding support
 ok

Do they require dns resolving perhaps?

@orivej
Copy link
Contributor Author

orivej commented Jul 23, 2017

I have checked that the tests pass even without internet. (However, they depend on the system state: I had to include a patch for the test that reads /etc/group and /etc/passwd.) Could you run nix-build with -K --no-build-hook and check the contents of maidag/tests/testsuite.log for some clues? (maidag/tests/testsuite.dir/ will also have scripts to run individual failing tests.)

@Mic92
Copy link
Member

Mic92 commented Jul 24, 2017

Here is the failing testcase: https://dl.thalheim.io/Z_TTsDyj594E0QzDXlR7LA/testsuite.log

@orivej
Copy link
Contributor Author

orivej commented Jul 25, 2017

Tests fail with the message error: root: no such user. May it be that you don't have root in /etc/passwd? I have disabled the test if this is the case. (grep -qo '^root:' /etc/passwd || echo > maidag/tests/mda.at)

@globin globin self-assigned this Jul 26, 2017
@globin globin merged commit 4a787b2 into NixOS:master Jul 26, 2017
mv readmsg/tests/*-$f readmsg/tests/$f
done
# Disable comsat tests that fail without tty in the sandbox.
tty -s || echo > comsat/tests/testsuite.at
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be possible to use script here so we can run the tests?

There are several tasks for which I use something like the following:

# shell quote the given arguments.
function quote {
  # quote each argument, interposing a space each time
  local quoted="$(printf "%q " "$@")"
  # nuke the trailing space
  quoted="${quoted%?}"
  printf "%s" "$quoted"
}

# use `script` to run the given command under a new tty.
function faketty {
  if [[ "$(uname)" == "Darwin" ]]; then
    script -q /dev/null "$@"
  else
    script -qefc "$(quote "$@")" /dev/null
  fi
}

Dunno if it's worth it or not for these tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

... unless the problem is that a pty can't be allocated in our sandbox :).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this would work, thank you for sharing this! However, I do not plan to update mailutils definition soon.

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

4 participants