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

[Backport 2.19-maintenance] libexpr: add missing dependency on 'flake/call-flake.nix.gen.hh' #9473

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

github-actions[bot]
Copy link

Automatic backport to 2.19-maintenance, triggered by a label in #9462.

trofi and others added 2 commits November 27, 2023 16:26
Without the change build for `eval.o` fails occasionally as:

    $ make src/libexpr/eval.o
      GEN    Makefile.config
      GEN    src/libexpr/primops/derivation.nix.gen.hh
      GEN    src/libexpr/fetchurl.nix.gen.hh
      GEN    src/libexpr/parser-tab.cc
      GEN    src/libexpr/lexer-tab.cc
    src/libexpr/lexer.l:314: warning, -s option given but default rule can be matched
      CXX    src/libexpr/eval.o
    src/libexpr/eval.cc:519:18: fatal error: flake/call-flake.nix.gen.hh: No such file or directory
      519 |         #include "flake/call-flake.nix.gen.hh"
          |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [mk/patterns.mk:3: src/libexpr/eval.o] Error 1

Noticed in NixOS/nixpkgs#269439

(cherry picked from commit 75134b7)
Dependency is now entirely through the eval.cc rule.
All gen.hh deps are now there.

(cherry picked from commit 68c4875)
@roberth roberth closed this Nov 27, 2023
@roberth roberth reopened this Nov 27, 2023
@Ericson2314 Ericson2314 merged commit 50f8f1c into 2.19-maintenance Nov 27, 2023
3 checks passed
PedroHLC pushed a commit to PedroHLC/nix that referenced this pull request Dec 7, 2023
…nance

[Backport 2.19-maintenance] libexpr: add missing dependency on 'flake/call-flake.nix.gen.hh'
@edolstra edolstra deleted the backport-9462-to-2.19-maintenance branch March 29, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants