При обновлении портов на FreeBSD ниже 9.x возникают подобные проблемы с xz архивами:

# cd usr/ports/misc/mc
# make
===>  License GPLv3 accepted by the user
===>  Found saved configuration for mc-4.8.1.6
===> Fetching all distfiles required by mc-4.8.1.7 for building
===>  Extracting for mc-4.8.1.7
=> SHA256 Checksum OK for mc-4.8.1.7.tar.xz.
===>   mc-4.8.1.7 depends on file: /usr/local/bin/xz - found
===>   mc-4.8.1.7 depends on file: /usr/local/bin/perl5.14.2 - found
tar: Unrecognized archive format: Inappropriate file type or format
tar: Error exit delayed from previous errors.
*** Error code 1

Stop in /usr/ports/misc/mc.
*** Error code 1

Stop in /usr/ports/misc/mc.

Лечится довольно просто, установкой libarchive и 1 строчкой в /etc/make.conf:

cd /usr/ports/archivers/libarchive
make install clean
echo 'TAR=/usr/local/bin/bsdtar' >> /etc/make.conf

Ссылки по теме:

  1. tar: Unrecognized archive format
  2. Обновление портов и tar.Xz
  3. Исправление ошибки во freebsd tar xz.

Comments

comments powered by Disqus