This means you will only be able to run pkgadd/pkginfo on gzipped tarballs
but not on tarballs that were compressed with eg bzip2 or xz.
CXXFLAGS += -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" \
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-LDFLAGS += -static -larchive -lz -lbz2
+LDFLAGS += -static -larchive -lz
OBJECTS = main.o pkgutil.o pkgadd.o pkgrm.o pkginfo.o
#include <archive_entry.h>
#define INIT_ARCHIVE(ar) \
- archive_read_support_compression_all((ar)); \
- archive_read_support_format_all((ar))
+ archive_read_support_compression_gzip((ar)); \
+ archive_read_support_format_tar((ar))
using __gnu_cxx::stdio_filebuf;