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

doc: add darwin installCheckTarget example #44248

Merged
merged 1 commit into from Aug 1, 2018

Conversation

LnL7
Copy link
Member

@LnL7 LnL7 commented Jul 30, 2018

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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

The fact that libraries are liked using the absolute paths of their final
installation target can, even tho the <literal>install_name</literal> like
mentioned above is set correctly, sometimes cause problems when running
tests.
Copy link
Member

@Mic92 Mic92 Jul 31, 2018

Choose a reason for hiding this comment

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

This sentence has some spelling issues:
Let me rephrase:

Even so libraries are linked using absolute paths and resolved via their <literal>install_name</literal> on darwin, running tests can cause problems.

This can usually be solved by running the tests after the
<varname>installPhase</varname> or alternatively by using
<varname>DYLD_LIBRARY_PATH</varname>. More information about this variable
can be found in <command>man dyld</command>.
Copy link
Member

Choose a reason for hiding this comment

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

Optional: It seems to be not so common in nixpkgs doc, but docbook also supports linking to manpages: https://github.com/systemd/systemd/blob/master/man/systemd.device.xml#L16

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah nice, I was wondering about that but didn't find an example.

@LnL7 LnL7 force-pushed the doc-darwin-installcheck branch 2 times, most recently from 536daa5 to 423ce9f Compare August 1, 2018 18:55
@xeji
Copy link
Contributor

xeji commented Aug 1, 2018

@GrahamcOfBorg eval

@Mic92 Mic92 merged commit 90e0428 into NixOS:master Aug 1, 2018
@LnL7 LnL7 deleted the doc-darwin-installcheck branch August 14, 2018 21:06
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