-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While here, remove a stale patch (upstreamed in CMake 3.10 or so) and repair the CPack FreeBSD pkg generator. Prepared by lbartoletti@ Exp-runs by antoine@ PR: 267872, 267894
- Loading branch information
Adriaan de Groot
authored and
Adriaan de Groot
committed
Jan 8, 2023
1 parent
28eaeb1
commit efaecf6
Showing
8 changed files
with
99 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1667324304 | ||
SHA256 (cmake-3.24.3.tar.gz) = b53aa10fa82bff84ccdb59065927b72d3bee49f4d86261249fc0984b3b367291 | ||
SIZE (cmake-3.24.3.tar.gz) = 10399876 | ||
TIMESTAMP = 1672089061 | ||
SHA256 (cmake-3.25.1.tar.gz) = 1c511d09516af493694ed9baf13c55947a36389674d657a2d5e0ccedc6b291d8 | ||
SIZE (cmake-3.25.1.tar.gz) = 10561054 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
devel/cmake-core/files/patch-Modules_Platform_FreeBSD-CXX.cmake
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
devel/cmake-core/files/patch-Source_CPack_cmCPackFreeBSDGenerator.cxx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git Source/CPack/cmCPackFreeBSDGenerator.cxx Source/CPack/cmCPackFreeBSDGenerator.cxx | ||
index 162dfc7346..206f2d06a0 100644 | ||
--- Source/CPack/cmCPackFreeBSDGenerator.cxx | ||
+++ Source/CPack/cmCPackFreeBSDGenerator.cxx | ||
@@ -245,8 +245,15 @@ public: | ||
void write_value(cmGeneratedFileStream& s) const override | ||
{ | ||
s << "{\n"; | ||
- for (std::string const& elem : value) { | ||
- s << " \"" << elem << R"(": {"origin": ")" << elem << "\"},\n"; | ||
+ for (std::string const& origin : value) { | ||
+ // Split the origin into its category and name components. | ||
+ // Treat it like a path (which it sort-of is, in the ports tree). | ||
+ // Because it is a "cat/name" style relative path, it gets split | ||
+ // into "" "cat" and "name" parts. | ||
+ std::vector<std::string> originComponents; | ||
+ cmSystemTools::SplitPath(origin, originComponents); | ||
+ const std::string name = (originComponents.size() == 3) ? originComponents[2] : origin; | ||
+ s << " \"" << name << R"(": {"origin": ")" << origin << "\"},\n"; | ||
} | ||
s << '}'; | ||
} |
Oops, something went wrong.