Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jaak Ristioja
CMake
Commits
051da997
Commit
051da997
authored
3 years ago
by
Russell Greene
Browse files
Options
Downloads
Patches
Plain Diff
CPack/DEB: Add zstd compression for deb packages
parent
6c01bbe1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Help/cpack_gen/deb.rst
+17
-4
17 additions, 4 deletions
Help/cpack_gen/deb.rst
Help/release/dev/cpack-deb-add-zstd-compression.rst
+6
-0
6 additions, 0 deletions
Help/release/dev/cpack-deb-add-zstd-compression.rst
Source/CPack/cmCPackDebGenerator.cxx
+3
-0
3 additions, 0 deletions
Source/CPack/cmCPackDebGenerator.cxx
with
26 additions
and
4 deletions
Help/cpack_gen/deb.rst
+
17
−
4
View file @
051da997
...
...
@@ -274,10 +274,23 @@ List of CPack DEB generator specific variables:
Possible values are:
- lzma
- xz
- bzip2
- gzip
``lzma``
Lempel–Ziv–Markov chain algorithm
``xz``
XZ Utils compression
``bzip2``
bzip2 Burrows–Wheeler algorithm
``gzip``
GNU Gzip compression
``zstd``
.. versionadded:: 3.22
Zstandard compression
.. variable:: CPACK_DEBIAN_PACKAGE_PRIORITY
CPACK_DEBIAN_<COMPONENT>_PACKAGE_PRIORITY
...
...
This diff is collapsed.
Click to expand it.
Help/release/dev/cpack-deb-add-zstd-compression.rst
0 → 100644
+
6
−
0
View file @
051da997
cpack-deb-add-zstd-compression
------------------------------
* The :cpack_gen:`CPack DEB Generator` gained the
option to set :variable:`CPACK_DEBIAN_COMPRESSION_TYPE` to zstd,
which enables Zstandard compression for deb packages.
This diff is collapsed.
Click to expand it.
Source/CPack/cmCPackDebGenerator.cxx
+
3
−
0
View file @
051da997
...
...
@@ -111,6 +111,9 @@ DebGenerator::DebGenerator(
}
else
if
(
!
std
::
strcmp
(
debianCompressionType
,
"gzip"
))
{
this
->
CompressionSuffix
=
".gz"
;
this
->
TarCompressionType
=
cmArchiveWrite
::
CompressGZip
;
}
else
if
(
!
std
::
strcmp
(
debianCompressionType
,
"zstd"
))
{
this
->
CompressionSuffix
=
".zst"
;
this
->
TarCompressionType
=
cmArchiveWrite
::
CompressZstd
;
}
else
if
(
!
std
::
strcmp
(
debianCompressionType
,
"none"
))
{
this
->
CompressionSuffix
.
clear
();
this
->
TarCompressionType
=
cmArchiveWrite
::
CompressNone
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment