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

light: 1.1.2 -> 1.2, use new udev support instead of setuid wrapper. #47554

Merged
merged 4 commits into from Oct 6, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Sep 30, 2018

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

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: light

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: light

Partial log (click to expand)

make[1]: Leaving directory '/build/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2
shrinking /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/bin/light
gzipping man pages under /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/share/man/
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/lib  /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/bin
patching script interpreter paths in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2
checking for references to /build in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2...
/nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: light

Partial log (click to expand)

make[1]: Leaving directory '/build/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2
shrinking /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2/bin/light
gzipping man pages under /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2/share/man/
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2/lib  /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2/bin
patching script interpreter paths in /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2
checking for references to /build in /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2...
/nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2

'';
};
};
};

config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.light ];
security.wrappers.light.source = "${pkgs.light.out}/bin/light";
services.udev.packages = [ pkgs.light ];
Copy link
Member

Choose a reason for hiding this comment

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

Do I need to be in a specific group for that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, updated the documentation comment to mention it. Not sure if there's a best practice for managing this sort of group, but personally I'm happy with "video" as a few projects default to it and I'm not sure there's much need to make this too customizable :). But willing to be convinced otherwise of course.

Copy link
Member

Choose a reason for hiding this comment

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

Ok. I added this to our release notes.

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: light

Partial log (click to expand)

/nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: light

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: light

Partial log (click to expand)

make[1]: Leaving directory '/build/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2
shrinking /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/bin/light
gzipping man pages under /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/share/man/
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/lib  /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/bin
patching script interpreter paths in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2
checking for references to /build in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2...
/nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: light

Partial log (click to expand)

make[1]: Leaving directory '/build/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2
shrinking /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2/bin/light
gzipping man pages under /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2/share/man/
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2/lib  /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2/bin
patching script interpreter paths in /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2
checking for references to /build in /nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2...
/nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: light

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: light

Partial log (click to expand)

/nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2

@dtzWill
Copy link
Member Author

dtzWill commented Oct 1, 2018

Oh, good call! Thanks!!

@@ -105,6 +105,14 @@
<varname>rabbitmq-server</varname>.
</para>
</listitem>
<listitem>
<para>
The <literal>light</literal> module no longer use setuids binary, but
Copy link
Member

Choose a reason for hiding this comment

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

typo I introduced: setuid binaries

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: light

Partial log (click to expand)

/nix/store/dkcqb8rsxi7h2hv4biw193dhqqs02k2g-light-1.2

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: light

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: light

Partial log (click to expand)

make[1]: Leaving directory '/build/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2
shrinking /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/bin/light
gzipping man pages under /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/share/man/
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/lib  /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2/bin
patching script interpreter paths in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2
checking for references to /build in /nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2...
/nix/store/4vkqhc211zy0bj4kmw2xl8r18qp4wnxz-light-1.2

@dtzWill
Copy link
Member Author

dtzWill commented Oct 4, 2018

This is good to go, I think? Just checking :).

@Mic92
Copy link
Member

Mic92 commented Oct 4, 2018

I have not really tested it myself by adding myself to the group, but I suppose you did, so should be good to merge then.

@dtzWill
Copy link
Member Author

dtzWill commented Oct 6, 2018

Yep use it every day :).

@dtzWill dtzWill merged commit 003c20e into NixOS:master Oct 6, 2018
@dtzWill dtzWill deleted the update/light-1.2 branch October 6, 2018 04:15
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

3 participants