package command: Enable zstd compression by default.

Note that zstd-compressed packages cannot be installed unless the
running system can already read them, even as part of a system
update transaction. This has been possible for some months now,
but if one has an older EFI bootloader, you may need to upgrade it.

Change-Id: I9e561459477723e498a871ee5c5caad560861b79
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4663
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Augustin Cavalier
2023-01-03 10:01:37 +00:00
committed by Adrien Destugues
parent 17889a8c70
commit 0fae96c5a3
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -2,6 +2,10 @@ SubDir HAIKU_TOP src bin package ;
UsePrivateHeaders kernel libroot shared storage support ;
if [ FIsBuildFeatureEnabled zstd ] {
SubDirC++Flags -DZSTD_DEFAULT ;
}
BinCommand package :
command_add.cpp
command_checksum.cpp
+4
View File
@@ -131,7 +131,11 @@ parse_compression_argument(const char* arg)
{
if (arg == NULL) {
// Default compression method.
#ifdef ZSTD_DEFAULT
return BPackageKit::BHPKG::B_HPKG_COMPRESSION_ZSTD;
#else
return BPackageKit::BHPKG::B_HPKG_COMPRESSION_ZLIB;
#endif
}
if (strcmp(arg, "zstd") == 0) {
+4
View File
@@ -6,6 +6,10 @@ SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin package ] ;
USES_BE_API on <build>package = true ;
if [ FIsBuildFeatureEnabled zstd ] {
SubDirC++Flags -DZSTD_DEFAULT ;
}
BuildPlatformMain <build>package :
command_add.cpp
command_checksum.cpp