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

grub2: fix grub-kbdcomp #100078

Merged
merged 1 commit into from Feb 17, 2021
Merged

Conversation

mdevlamynck
Copy link
Contributor

The grub-kbdcomp command was calling ckbcomp directly without patching to provide its path in the nix store. As a result the command was crashing because ckbcomp was not found.

Motivation for this change

This change adds the option kbdcompSupport and fixes grub-kbdcomp:

  • when kbdcompSupport = true the command works correctly
  • when kbdcompSupport = false (default value) the command is replaced with an explanation message (is this a good thing?)

This will also help with #41247 since a possible solution for this issue uses grub-kbdcomp.

The motivation for adding an option is to avoid bringing ckbcomp and its dependencies (some part of x11 as xkeyboardconfig) when we only want to use grub.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@doronbehar
Copy link
Contributor

@GrahamcOfBorg eval

@SuperSandro2000
Copy link
Member

Please rebase this to fix the eval error.

@@ -53,6 +55,13 @@ stdenv.mkDerivation rec {
./fix-bash-completion.patch
];

patchPhase = if kbdcompSupport then ''
Copy link
Contributor

Choose a reason for hiding this comment

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

Overriding patchPhase breaks patches field. Use prePatch or postPatch instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to use postPatch and tested. Thanks for reviewing this :)

@mdevlamynck mdevlamynck force-pushed the fix-grub-kbdcomp branch 2 times, most recently from fe0390d to 8ca9c7f Compare February 2, 2021 17:27
postPatch = if kbdcompSupport then ''
sed -i util/grub-kbdcomp.in -e 's@\bckbcomp\b@${ckbcomp}/bin/ckbcomp@'
'' else ''
echo '#! ${stdenv.shell}' > util/grub-kbdcomp.in
Copy link
Contributor

Choose a reason for hiding this comment

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

Also you might need runtimeShell or something, to work properly with cross-compilation. cc @lopsided98

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, runtimeShell is needed here because this script will need to run on the host platform.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed, I don't know how to test it with cross-compilation though.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fyi @mdevlamynck it's as easy as e.g. pkgsCross.aarch64-multiplatform.grub2. And if you don't have a non-x86 machine for testing you can "cross-compile" to 32-bit and test locally with pkgsCross.gnu32 :)

, zfs ? null
, efiSupport ? false
, zfsSupport ? false
, xenSupport ? false
, kbdcompSupport ? false, ckbcomp ? null
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
, kbdcompSupport ? false, ckbcomp ? null
, kbdcompSupport ? false, ckbcomp

Copy link
Contributor

Choose a reason for hiding this comment

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

Resolved

@@ -37,6 +39,7 @@ in (

assert efiSupport -> canEfi;
assert zfsSupport -> zfs != null;
assert kbdcompSupport -> ckbcomp != null;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
assert kbdcompSupport -> ckbcomp != null;

Copy link
Contributor

Choose a reason for hiding this comment

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

Resolved

The grub-kbdcomp command was calling ckbcomp directly without patching
to provide its path in the nix store.
@bqv
Copy link
Contributor

bqv commented Feb 12, 2021

@jtojnar @SuperSandro2000 merge?

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 100078 run on x86_64-linux 1

1 package blacklisted:
  • tests.nixos-functions.nixosTest-test
6 packages built:
  • grub2 (grub2_full ,grub2_light)
  • grub2_efi
  • grub2_pvgrub_image
  • grub2_xen
  • os-prober
  • woeusb

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

grub2_efi:

A likely typo in grubTarget argument was found, did you mean distTarget?

Near pkgs/tools/misc/grub/2.0x.nix:108:3:

    |
108 |   grubTarget = if efiSupport
    |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/attribute-typo.md
Package does not have a maintainer. Consider adding yourself?

Near pkgs/tools/misc/grub/2.0x.nix:122:3:

    |
122 |   meta = with lib; {
    |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md
libtool is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/tools/misc/grub/2.0x.nix:66:3:

   |
66 |   buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 fuse libtool ]
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
Please add a comment on the line above, explaining the purpose of this patch.
Near pkgs/tools/misc/grub/2.0x.nix:55:5:

   |
55 |     ./fix-bash-completion.patch
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-patch-comment.md

grub2:

A likely typo in grubTarget argument was found, did you mean distTarget?

Near pkgs/tools/misc/grub/2.0x.nix:108:3:

    |
108 |   grubTarget = if efiSupport
    |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/attribute-typo.md
Package does not have a maintainer. Consider adding yourself?

Near pkgs/tools/misc/grub/2.0x.nix:122:3:

    |
122 |   meta = with lib; {
    |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md
libtool is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/tools/misc/grub/2.0x.nix:66:3:

   |
66 |   buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 fuse libtool ]
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
Please add a comment on the line above, explaining the purpose of this patch.
Near pkgs/tools/misc/grub/2.0x.nix:55:5:

   |
55 |     ./fix-bash-completion.patch
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-patch-comment.md

grub2_pvgrub_image:

Package does not have a maintainer. Consider adding yourself?

Near pkgs/tools/misc/grub/pvgrub_image/default.nix:32:3:

   |
32 |   meta = with lib; {
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md
Package is missing a license

Near pkgs/tools/misc/grub/pvgrub_image/default.nix:32:3:

   |
32 |   meta = with lib; {
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/license-missing.md

grub2_xen:

A likely typo in grubTarget argument was found, did you mean distTarget?

Near pkgs/tools/misc/grub/2.0x.nix:108:3:

    |
108 |   grubTarget = if efiSupport
    |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/attribute-typo.md
Package does not have a maintainer. Consider adding yourself?

Near pkgs/tools/misc/grub/2.0x.nix:122:3:

    |
122 |   meta = with lib; {
    |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md
libtool is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/tools/misc/grub/2.0x.nix:66:3:

   |
66 |   buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 fuse libtool ]
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
Please add a comment on the line above, explaining the purpose of this patch.
Near pkgs/tools/misc/grub/2.0x.nix:55:5:

   |
55 |     ./fix-bash-completion.patch
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-patch-comment.md

os-prober:

Please consider this feature to be alpha.

A substituteInPlace with an unmatched pattern got detected:

substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/05efi'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/05efi'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/efi/20microsoft'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/efi/20microsoft'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/efi/20microsoft'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/efi/10elilo'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/efi/10elilo'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/efi/10elilo'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/20microsoft'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/20microsoft'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/20microsoft'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/30utility'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/30utility'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/30utility'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/83haiku'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/83haiku'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/83haiku'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/20macosx'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/20macosx'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/20macosx'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/70hurd'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/70hurd'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/70hurd'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/10freedos'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/10freedos'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/10freedos'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/80minix'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/80minix'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/80minix'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/40lsb'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/40lsb'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/40lsb'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/90solaris'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/90solaris'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/90solaris'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/10qnx'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/10qnx'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/10qnx'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/90linux-distro'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/90linux-distro'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/mounted/90linux-distro'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/50mounted-tests'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/50mounted-tests'
substituteStream(): WARNING: pattern '/usr/share/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/init/10filesystems'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/init/10filesystems'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/init/10filesystems'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/os-probes/init/10filesystems'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/50mounted-tests'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/50mounted-tests'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/40grub2'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/40grub2'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/40grub2'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/90fallback'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/90fallback'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/90fallback'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/50lilo'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/50lilo'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/50lilo'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/40grub'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/40grub'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/lib/linux-boot-probes/mounted/40grub'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/bin/os-prober'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/bin/os-prober'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/bin/linux-boot-prober'
substituteStream(): WARNING: pattern '/usr/lib/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/bin/linux-boot-prober'
substituteStream(): WARNING: pattern '/usr/share/os-prober/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/share/common.sh'
substituteStream(): WARNING: pattern '/usr/lib/os-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/share/common.sh'
substituteStream(): WARNING: pattern '/usr/lib/linux-boot-probes/' doesn't match anything in file '/nix/store/70q22frd5xm9kj4myasmscprmfizisxq-os-prober-1.78/share/common.sh'

Please check the offending substituteInPlace for typos or changes in source.

makeWrapper is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/tools/misc/os-prober/default.nix:24:3:

   |
24 |   buildInputs = [ makeWrapper ];
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md
installPhase should probably contain runHook preInstall and runHook postInstall.

Near pkgs/tools/misc/os-prober/default.nix:25:3:

   |
25 |   installPhase = ''
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-phase-hooks.md

tests.nixos-functions.nixosTest-test:

Package does not have a maintainer. Consider adding yourself?

Near nixos/lib/testing-python.nix:64:7:

   |
64 |       buildCommand =
   |       ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md
Package is missing a license

Near nixos/lib/testing-python.nix:64:7:

   |
64 |       buildCommand =
   |       ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/license-missing.md

woeusb:

gpl3 is a deprecated license, check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.

Near pkgs/tools/misc/woeusb/default.nix:56:5:

   |
56 |     license = licenses.gpl3;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md
Please add a comment on the line above, explaining the purpose of this patch.
Near pkgs/tools/misc/woeusb/default.nix:16:15:

   |
16 |   patches = [ ./remove-workaround.patch ];
   |               ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-patch-comment.md

@SuperSandro2000
Copy link
Member

Does not break cross compile with #112857.

@SuperSandro2000 SuperSandro2000 merged commit b62f1a1 into NixOS:master Feb 17, 2021
@mdevlamynck mdevlamynck deleted the fix-grub-kbdcomp branch May 25, 2021 08:19
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

7 participants