trofi / nix-guix-gentoo

Gentoo overlay for nix and guix functional package managers.
110 stars 9 forks source link

sys-apps/nix: user CXXFLAGS are not respected #26

Closed 0n-s closed 1 year ago

0n-s commented 1 year ago

sys-apps/nix (tested: 2.12.0) builds without any of the user's CXXFLAGS as specified in /etc/portage/make.conf.

Rather funny because the ebuild's removal of the package's implicit optimization CXXFLAGS results in the package being built without any optimizations because of this bug. Definitely not the worst package that could be hit by this issue, but it's nonetheless amusing.

trofi commented 1 year ago

Can you post your build.log and emerge --info? I wonder if it's obvious from the log why flags do not apply.

trofi commented 1 year ago

Reproduced locally. Probably came back with https://github.com/NixOS/nix/commit/f5b7991e59d8c9ae38fb4c9074a5847942caab73 revert.

trofi commented 1 year ago

Give https://github.com/trofi/nix-guix-gentoo/commit/099fc5424337306e2ad84a75c9d35dd21b15128f a try. In a light build test it does seem to do the right thing.

0n-s commented 1 year ago

Yup, does the job. Thanks!

trofi commented 1 year ago

Proposed the fix upstream as https://github.com/NixOS/nix/pull/7476