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

rkt: libsystemd fix #19658

Merged
merged 1 commit into from
Oct 18, 2016
Merged

rkt: libsystemd fix #19658

merged 1 commit into from
Oct 18, 2016

Conversation

cgonyeo
Copy link
Contributor

@cgonyeo cgonyeo commented Oct 18, 2016

Motivation for this change

rkt was broken, and would fail to start any containers

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
    • OS X
    • 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.

As of systemd 231, the LD_LIBRARY_PATH fix applied in the installPhase of rkt's
build was no longer valid, causing rkt to fail to work. This patch changes the
path to point to the new location of libsystemd, which is in ${systemd.lib}.

As of systemd 231, the LD_LIBRARY_PATH fix applied in the installPhase of rkt's
build was no longer valid, causing rkt to fail to work. This patch changes the
path to point to the new location of libsystemd, which is in ${systemd.lib}.
@mention-bot
Copy link

@dgonyeo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @kragniz, @ragnard and @steveej to be potential reviewers.

@fpletz fpletz added the 0.kind: bug Something is broken label Oct 18, 2016
@fpletz
Copy link
Member

fpletz commented Oct 18, 2016

I guess this is also broken on 16.09?

@fpletz fpletz added the 6.topic: closure size The final size of a derivation, including its dependencies label Oct 18, 2016
@cgonyeo
Copy link
Contributor Author

cgonyeo commented Oct 18, 2016

I believe it is

@fpletz fpletz added this to the 16.09 milestone Oct 18, 2016
@fpletz
Copy link
Member

fpletz commented Oct 18, 2016

Just tested this: Starting a container works on 16.09 as opposed to master, but applying cgroups doesn't work. We should backport this, maybe even the version bumps.

16.09 with rkt 1.12.0:

stage1: warning: libsystemd not found even though systemd is running. Cgroup limits set by the environment (e.g. a systemd service) won't be enforced.
stage1: continuing with per-app isolators disabled: unable to open a handle to the library

master with rkt 1.17.0:

stage1: warning: libsystemd not found even though systemd is running. Cgroup limits set by the environment (e.g. a systemd service) won't be enforced.
stage1: error getting container subcgroup: unable to open a handle to the library

I am building & testing your fix right now, but that should fix it.

@fpletz
Copy link
Member

fpletz commented Oct 18, 2016

Thanks, that fixes rkt on master! 🍻

@fpletz fpletz merged commit a0295e2 into NixOS:master Oct 18, 2016
fpletz pushed a commit that referenced this pull request Oct 18, 2016
As of systemd 231, the LD_LIBRARY_PATH fix applied in the installPhase of rkt's
build was no longer valid, causing rkt to fail to work. This patch changes the
path to point to the new location of libsystemd, which is in ${systemd.lib}.
(cherry picked from commit a0295e2)
@fpletz
Copy link
Member

fpletz commented Oct 18, 2016

Tested that it fixes the warning on 16.09 and pushed to the release-16.09 branch.

adrianpk added a commit to adrianpk/nixpkgs that referenced this pull request May 31, 2024
As of systemd 231, the LD_LIBRARY_PATH fix applied in the installPhase of rkt's
build was no longer valid, causing rkt to fail to work. This patch changes the
path to point to the new location of libsystemd, which is in ${systemd.lib}.
(cherry picked from commit a0295e2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: closure size The final size of a derivation, including its dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants