nix-community / nix-environments

Repository to maintain out-of-tree shell.nix files (maintainer=@mic92)
MIT License
186 stars 33 forks source link

yocto environment doesn't work anymore #31

Closed wucke13 closed 1 year ago

wucke13 commented 1 year ago

this line causes the following error:

ERROR: Variable BB_ENV_EXTRAWHITE has been renamed to BB_ENV_PASSTHROUGH_ADDITIONS
ERROR: Variable BB_ENV_EXTRAWHITE from the shell environment has been renamed to BB_ENV_PASSTHROUGH_ADDITIONS
ERROR: Exiting to allow enviroment variables to be corrected
Mic92 commented 1 year ago

See also https://github.com/nix-community/nix-environments/pull/26 No one has finished a fix yet - I personally do not use yocto

jhol commented 1 year ago

A new version of the fix is provided here: #39 .

To repeat my observations attached to #26 from my testing with OE4T (OpenEmbedded for Tegra) Demo Distro:

There is an issue with the shadow recipe trying to pick up libcrypt from glibc. However, libcrypt has been removed from glibc in recent releases, and a replacement library is available: libxcrypt. For some reason, although libxcrypt is supported in the project, autotools is still trying to pick up the glibc version. As a hack I replaced DEPENDS = "virtual/crypt" with DEPENDS = "libxcrypt" in repos/poky/meta/recipes-extended/shadow/shadow.inc. I don't know why this is necessary, because to my understanding virtual/crypt should be set as an alias of libxcrypt.

More investigation is required. I don't know exactly what's going wrong here. I guess the system version of libcrypt leaks on Ubuntu etc., but on Nix it can't be accessed?

Mic92 commented 1 year ago

fixed in https://github.com/nix-community/nix-environments/pull/39