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

upstart: wrap binaries and patch hard-coded paths #22410

Merged
merged 1 commit into from Apr 30, 2017

Conversation

adnelson
Copy link
Contributor

@adnelson adnelson commented Feb 3, 2017

Motivation for this change

I wanted to be able to use init-checkconf to validate upstart config files during a nix build. Unfortunately, the init-checkconf binary wasn't usable due to PATH issues, hard-coded binary paths, and not having executable permissions. A few patches got things working though. In addition, init-checkconf requires a dbus session to be available; I adapted a script which makes this possible into a nix expression.

Unfortunately, since I'm not actually running upstart, it's pretty much impossible for me to actually check that all binaries work. However, since the only changes are to auxiliary scripts, I think this is pretty safe.

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

@mention-bot
Copy link

@adnelson, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @robberer and @MarcWeber to be potential reviewers.

@edolstra
Copy link
Member

edolstra commented Feb 4, 2017

I'm somewhat surprised we still have upstart in Nixpkgs. IMHO, since we're no longer using it, it might be better to remove it altogether.

@cstrahan
Copy link
Contributor

cstrahan commented Feb 5, 2017

I don't suppose it hurts to keep upstart around, since it apparently still has uses -- like in this case.

@adnelson
Copy link
Contributor Author

@edolstra @cstrahan any more thoughts on this?

@edolstra
Copy link
Member

Well, this adds a non-trivial amount of code for a package that we don't maintain anymore. So I'm not super enthusiastic...

@7c6f434c 7c6f434c merged commit 929eed3 into NixOS:master Apr 30, 2017
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