-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
cmake: add check-pc-files hook to check broken pc files #172347
Conversation
@alexshpilkin please create a issue here with instructions on how to fix and then i'll link to it instead of the pr |
3f01053
to
1dac283
Compare
0f252d6
to
34e69f6
Compare
34e69f6
to
a1c0af8
Compare
@ofborg eval |
9750a12
to
b36f742
Compare
7cad609
to
4f03887
Compare
setupHook = ./setup-hook.sh; | ||
setupHooks = [ | ||
./setup-hook.sh | ||
./check-pc-files.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put everything in the main setup hook? It's much easier to browse all the stdenv magic in one predictable place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can but i want to keep them separate
I've renamed the hook to check-pc-files-hook.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it is a hook and hooks mostly end in -hook.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not the question. Why @Artturin wants a separate file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its a separate hook and there's no reason to keep them in the same file
all hooks can be found with fd --type f "hook.sh"
4f03887
to
c9b34f7
Compare
Bisect claims b1149dc
|
Right, I’m sorry for falling of the face of the Earth and thank you for picking up the work, but that is why the .pc file of a vendored library is relevant: My notes also show |
Then that is a bug in the build script – vendored dependencies should not install .pc files. |
So I at least unblocked |
This was quite impactful. I fixed this in more than a dozen packages myself and others fixed some, too. |
Also check .cmake files #247474 |
see #172150
test by building
seexpr
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes