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

ckb-next: from 0.2.9 0 -> 0.3.1 #47597

Closed
wants to merge 3 commits into from
Closed

Conversation

mvnetbiz
Copy link
Contributor

@mvnetbiz mvnetbiz commented Oct 1, 2018

Update to new release. Changed to cmake. Added udev rules for
/dev/input/by-id/ to give keyboard consistent name (for VM input, etc.)

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.

Update to new release. Changed to cmake. Added udev rules for
/dev/input/by-id/ to give keyboard consistent name (for VM input, etc.)
(substituteAll {
name = "ckb-modprobe.patch";
src = ./ckb-modprobe.patch;
inherit kmod;
})
./daemon.patch
Copy link
Member

Choose a reason for hiding this comment

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

Are you able to document these patches and submit them upstream if possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are these comments sufficient? The part that calls modprobe could be fixed to just load the module directly in C, and the cmake files could be changed to take some options for installation directories instead of hardcoding, but these are needed as it is now.

Copy link
Member

Choose a reason for hiding this comment

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

Have you submitted an upstream issue for that?

];

doCheck = false;

installPhase = ''
runHook preInstall
#installPhase = ''
Copy link
Member

Choose a reason for hiding this comment

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

Why did you comment this out?

name = "udev_rules.patch";
src = ./udev_rules.patch;
inherit gnused;
})
];

doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice to document why checks are disabled.

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 don't know why that was put there before but it is fine without for me.

Copy link
Member

Choose a reason for hiding this comment

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

That is because false is actually the default. What happens if you set it to true?

Copy link
Member

Choose a reason for hiding this comment

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

That is because false is actually the default. What happens if you set it to true explicitly?

@@ -23,33 +23,33 @@ stdenv.mkDerivation rec {
];

patches = [

# ckb daemon loads a kernel module by calling the actual modprobe binary
Copy link
Member

Choose a reason for hiding this comment

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

Whats wrong about the "actual modprobe binary"?

(substituteAll {
name = "ckb-modprobe.patch";
src = ./ckb-modprobe.patch;
inherit kmod;
})
./daemon.patch
Copy link
Member

Choose a reason for hiding this comment

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

Have you submitted an upstream issue for that?

./dev_name.patch
#Update udev rules for /dev/input/by-id. remove on next ckb release.

./dev_name.patch # add correct device alias (mouse vs keyboard)
Copy link
Member

Choose a reason for hiding this comment

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

What does that mean?


./dev_name.patch # add correct device alias (mouse vs keyboard)

# ckb's udev rule runs sed on device name for some reason
Copy link
Member

Choose a reason for hiding this comment

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

And this patch reverts that behaviour? Why?

name = "udev_rules.patch";
src = ./udev_rules.patch;
inherit gnused;
})
];

doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

That is because false is actually the default. What happens if you set it to true explicitly?

@kierdavis
Copy link
Contributor

Please note that #40043 already exists (although it was outdated at the time this PR was created). Are the udev rule changes required for the package upgrade, or are they a separate change?

@c0bw3b
Copy link
Contributor

c0bw3b commented Nov 25, 2018

Closing since #40043 got merged

@c0bw3b c0bw3b closed this Nov 25, 2018
@mvnetbiz mvnetbiz deleted the ckb-next branch November 28, 2020 03:20
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

5 participants