build: fix pkgconfig files#1913
Conversation
| # This module provides function for joining paths | ||
| # known from most languages | ||
| # | ||
| # SPDX-License-Identifier: (MIT OR CC0-1.0) |
There was a problem hiding this comment.
A note for reference: Here's a link to the CC0-1.0 license: https://creativecommons.org/publicdomain/zero/1.0/
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1913 +/- ##
=======================================
Coverage 78.50% 78.50%
=======================================
Files 585 585
Lines 99681 99681
Branches 14265 14273 +8
=======================================
+ Hits 78257 78258 +1
Misses 20788 20788
+ Partials 636 635 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hello @theoparis -- thanks for the PR! Is there an easy way to test this in our CI, so we can avoid a regression in the future? |
|
Hmm, I'm not sure what the best way of testing this kind of change would be. I made a Nix derivation here. Maybe it could be tested via a Nix github action? Nix is what reported the broken pkg-config paths. |
### Description of changes: Currently the pkgconfig files are broken when aws-lc is built with Nix. See https://github.com/jtojnar/cmake-snips?tab=readme-ov-file#concatenating-paths-when-building-pkg-config-files, and the PR made to libfmt fmtlib/fmt#1657 ### Call-outs: I'm not sure if bumping the minimum required CMake version is preferred. The alternative would be to add https://github.com/jtojnar/cmake-snips/blob/master/CMakeScripts/JoinPaths.cmake to the `cmake/` directory in the repository. However, most linux distributions have at least CMake 3.20, if not 3.25 so I don't see why this would be a problem. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license. (cherry picked from commit f146851)
Description of changes:
Currently the pkgconfig files are broken when aws-lc is built with Nix.
See https://github.com/jtojnar/cmake-snips?tab=readme-ov-file#concatenating-paths-when-building-pkg-config-files, and the PR made to libfmt fmtlib/fmt#1657
Call-outs:
I'm not sure if bumping the minimum required CMake version is preferred. The alternative would be to add https://github.com/jtojnar/cmake-snips/blob/master/CMakeScripts/JoinPaths.cmake to the
cmake/directory in the repository. However, most linux distributions have at least CMake 3.20, if not 3.25 so I don't see why this would be a problem.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.