-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
Leftover -I${efivar}/include/efivar CFLAGS #35011
Labels
Comments
This was fixed in #32751. |
We should probably remove the hacks now: $ rg include/efivar
pkgs/tools/system/efibootmgr/default.nix
18: NIX_CFLAGS_COMPILE = "-I${efivar}/include/efivar";
pkgs/os-specific/linux/firmware/fwupdate/default.nix
31: export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gnu-efi}/include/efi -I${efivar}/include/efivar -I${gnu-efi}/include/efi/$arch" |
My apologies. I tested this with a checkout of |
Actually, I should leave this open because of the need for cleanup that was mentioned. |
Fixed in #35065 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Issue description
efivar.pc
uses a prefix of/usr/include
Steps to reproduce
It doesn't have to be
efibootmgr
: any package that usesefivar
will do.I'm trying to package a utility (
mokutil
) that usesefivar
viapkg-config
and it can't find<efivar.h>
becausepkg-config --cflags efivar
returns-I/usr/include/efivar
.efibootmgr
builds because its derivation doesn't rely on usingpkg-config
. It usesNIX_CFLAGS_COMPILE = "-I${efivar}/include/efivar";
.I've added this attribute to my derivation for
mokutil
and it now builds, but it shouldn't be necessary to add this.Technical details
"x86_64-linux"
Linux 4.9.80, NixOS, 17.09.3008.c831224528c (Hummingbird)
yes
no
nix-env (Nix) 1.11.16
""
"nixos-17.09.3008.c831224528c, unstable-18.03pre126508.8ecadc12502"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
The text was updated successfully, but these errors were encountered: