jordansissel/fpm · error · ArgumentError
Pacman compression value of '#{value}' is invalid. Must be o
Error message
Pacman compression value of '#{value}' is invalid. Must be one of #{COMPRESSION_TYPES.join(", ")} What it means
Error "Pacman compression value of '#{value}' is invalid. Must be one of #{COMPRESSION_TYPES.join(", ")}" thrown in jordansissel/fpm.
Source
Thrown at lib/fpm/package/pacman.rb:26
class FPM::Package::Pacman < FPM::Package
option "--optional-depends", "PACKAGE",
"Add an optional dependency to the pacman package.", :multivalued => true
option "--use-file-permissions", :flag,
"Use existing file permissions when defining ownership and modes"
option "--user", "USER", "The owner of files in this package", :default => 'root'
option "--group", "GROUP", "The group owner of files in this package", :default => 'root'
# The list of supported compression types. Default is xz (LZMA2)
COMPRESSION_TYPES = [ "gz", "bzip2", "xz", "zstd", "none" ]
option "--compression", "COMPRESSION", "The compression type to use, must " \
"be one of #{COMPRESSION_TYPES.join(", ")}.", :default => "zstd" do |value|
if !COMPRESSION_TYPES.include?(value)
raise ArgumentError, "Pacman compression value of '#{value}' is invalid. " \
"Must be one of #{COMPRESSION_TYPES.join(", ")}"
end
value
end
def initialize(*args)
super(*args)
attributes[:pacman_optional_depends] = []
end # def initialize
def architecture
case @architecture
when nil
return %x{uname -m}.chomp # default to current arch
when "amd64" # Debian uses amd64
return "x86_64" # Arch Linux uses x86_64
when "arm64" # Debian uses arm64
return "aarch64" # Arch Linux ARM uses aarch64View on GitHub (pinned to b6d77ba72a)
When it happens
Trigger: Thrown at lib/fpm/package/pacman.rb:26 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jordansissel/fpm@b6d77ba72a (2026-08-21).
Data as JSON: /api/errors/ed8a9265ddb8c243.
Report an issue: GitHub.