It seems like safesystem assumes that whatever shell a system is using is bash-like. I think the only issue here is the way the environment variable LANG=C is set.
A workaround for this is to manually set the shell variable to point to bash before building. In the case of fish:
I thought I had this issue as well, but the issue was actually that I didn't have bsdtar installed. The error message is the same for both cases. I resolved my issue with apt install libarchive-tools.
I encountered this while building an AUR package using this library:
Which I've traced down to this line: https://github.com/jordansissel/fpm/blob/0c1ef4e106ecf9581db5bc6bd6d51eae56cd83dd/lib/fpm/package/pacman.rb#L325
It seems like
safesystem
assumes that whatever shell a system is using is bash-like. I think the only issue here is the way the environment variableLANG=C
is set.A workaround for this is to manually set the shell variable to point to bash before building. In the case of fish: