1DOLLY 72PACKAGE xz3REQUIRES HOST runtime@045# XZ Utils from upstream's release archive, unchanged: the xz program and6# liblzma. unxz and xzcat are xz under the names it looks for.7FROM /v0.1.4/demos/tools/Dollyfile-tools-build 81e1c1bc8b06c83b1daead6c8f09bc8b1382e8fe165f896a98109396b58bb30589REQUIRES HEADER libc10REQUIRES TOOL   ar11REQUIRES TOOL   cc12REQUIRES TOOL   cmp13REQUIRES TOOL   cp14REQUIRES TOOL   gzip15REQUIRES TOOL   ln16REQUIRES TOOL   make17REQUIRES TOOL   mkdir18REQUIRES TOOL   tar19REQUIRES TOOL   text-page2021SOURCE /v0.1.4/dist/static/tools/xz-5.8.4.tar.gz 0014c7886930454fe8bd4228665b51af55eeae560ea135c9c4cd33f55b2591d9 /tmp/xz.tar.gz22SLOP gzip -dc /tmp/xz.tar.gz | tar -xf - -C /tmp2324# Slop does not run upstream's configure, so this says what it would find25# here, as for --disable-threads --disable-nls: a -pthread liblzma would need26# threads@0 in every program that links it, and no message catalogue is27# installed. Every filter, check and match finder is built.28FILE /tmp/xz-5.8.4/config.h29    #define _GNU_SOURCE 130    #define ASSUME_RAM 12831    #define HAVE_CHECK_CRC32 132    #define HAVE_CHECK_CRC64 133    #define HAVE_CHECK_SHA256 134    #define HAVE_CLOCK_GETTIME 135    #define HAVE_CLOCK_MONOTONIC 136    #define HAVE_DECODERS 137    #define HAVE_DECODER_ARM 138    #define HAVE_DECODER_ARM64 139    #define HAVE_DECODER_ARMTHUMB 140    #define HAVE_DECODER_DELTA 141    #define HAVE_DECODER_IA64 142    #define HAVE_DECODER_LZMA1 143    #define HAVE_DECODER_LZMA2 144    #define HAVE_DECODER_POWERPC 145    #define HAVE_DECODER_RISCV 146    #define HAVE_DECODER_SPARC 147    #define HAVE_DECODER_X86 148    #define HAVE_ENCODERS 149    #define HAVE_ENCODER_ARM 150    #define HAVE_ENCODER_ARM64 151    #define HAVE_ENCODER_ARMTHUMB 152    #define HAVE_ENCODER_DELTA 153    #define HAVE_ENCODER_IA64 154    #define HAVE_ENCODER_LZMA1 155    #define HAVE_ENCODER_LZMA2 156    #define HAVE_ENCODER_POWERPC 157    #define HAVE_ENCODER_RISCV 158    #define HAVE_ENCODER_SPARC 159    #define HAVE_ENCODER_X86 160    #define HAVE_FUTIMENS 161    #define HAVE_GETOPT_H 162    #define HAVE_GETOPT_LONG 163    #define HAVE_INTTYPES_H 164    #define HAVE_LZIP_DECODER 165    #define HAVE_MBRTOWC 166    #define HAVE_MF_BT2 167    #define HAVE_MF_BT3 168    #define HAVE_MF_BT4 169    #define HAVE_MF_HC3 170    #define HAVE_MF_HC4 171    #define HAVE_STDBOOL_H 172    #define HAVE_STDINT_H 173    #define HAVE_STDLIB_H 174    #define HAVE_STRINGS_H 175    #define HAVE_STRING_H 176    #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 177    #define HAVE_SYS_STAT_H 178    #define HAVE_SYS_TYPES_H 179    #define HAVE_UINTPTR_T 180    #define HAVE_UNISTD_H 181    #define HAVE_WCHAR_H 182    #define HAVE_WCWIDTH 183    #define HAVE___BUILTIN_ASSUME_ALIGNED 184    #define HAVE___BUILTIN_BSWAPXX 185    #define NDEBUG 186    #define PACKAGE_BUGREPORT "xz@tukaani.org"87    #define PACKAGE_NAME "XZ Utils"88    #define PACKAGE_URL "https://tukaani.org/xz/"89    #define SIZEOF_SIZE_T 890    #define STDC_HEADERS 191    #define TUKLIB_PHYSMEM_SYSCONF 192FILE /tmp/xz.mk93    .RECIPEPREFIX := >94    S := /tmp/xz-5.8.495    BIN := /usr/bin96    LIB := /usr/lib97    L := $S/src/liblzma98    # Left out, as upstream's Makefiles do: the programs that generate its99    # tables, the small variants of the checks, and the threaded coders.100    LIBRARY := $(filter-out %_tablegen.c %_small.c %_gen.c %_mt.c %/outqueue.c %/hardware_cputhreads.c, \101      $(wildcard $(addprefix $L/,check/*.c common/*.c delta/*.c lz/*.c lzma/*.c rangecoder/*.c simple/*.c))) \102      $S/src/common/tuklib_physmem.c103    PROGRAM := $(wildcard $S/src/xz/*.c) $(addprefix $S/src/common/tuklib_,exit.c mbstr_fw.c \104      mbstr_nonprint.c mbstr_width.c mbstr_wrap.c open_stdxxx.c progname.c)105    CPPFLAGS := -DHAVE_CONFIG_H -I $S -I $S/src/common -I $L/api106    all: $(BIN)/xz107    # Upstream gives a Wasm target that is not Emscripten no call that masks108    # signals; here it is sigprocmask, as on every other Unix.109    $(PROGRAM:.c=.o): CPPFLAGS += -Dmythread_sigmask=sigprocmask110    $(LIBRARY:.c=.o): CPPFLAGS += -DTUKLIB_SYMBOL_PREFIX=lzma_ $(addprefix -I $L/,common check lz rangecoder lzma delta simple)111    $S/%.o: $S/%.c $S/config.h112    >cc -O2 $(CPPFLAGS) -c $< -o $@113    $(LIB)/liblzma.a: $(LIBRARY:.c=.o)114    >ar rcs $@ $^115    $(BIN)/xz: $(PROGRAM:.c=.o) $(LIB)/liblzma.a116    >cc $^ -o $@117SLOP make -j4 -f /tmp/xz.mk118SLOP ln -s xz /usr/bin/unxz119SLOP ln -s xz /usr/bin/xzcat120SLOP cp -r /tmp/xz-5.8.4/src/liblzma/api/lzma.h /tmp/xz-5.8.4/src/liblzma/api/lzma /usr/include121SLOP mkdir -p /usr/share/licenses/xz122SLOP cp /tmp/xz-5.8.4/COPYING /tmp/xz-5.8.4/COPYING.0BSD /usr/share/licenses/xz123SLOP text-page /tmp/xz-5.8.4/src/xz/xz.1124125SLOP xz -9e -c /tmp/xz-5.8.4/NEWS | unxz | cmp - /tmp/xz-5.8.4/NEWS126SLOP xz -k /tmp/xz-5.8.4/NEWS && xz -t /tmp/xz-5.8.4/NEWS.xz && xzcat /tmp/xz-5.8.4/NEWS.xz | cmp - /tmp/xz-5.8.4/NEWS127# The archive's own test files, as its test suite reads them.128SLOP CWD /tmp/xz-5.8.4/tests/files xz -t good-1-check-sha256.xz good-1-lzma2-5.xz good-1-arm64-lzma2-1.xz good-1-delta-lzma2.tiff.xz129SLOP CWD /tmp/xz-5.8.4/tests/files ! xz -t bad-1-check-crc64.xz 2> /dev/null130131EXPORTS TOOL   xz132EXPORTS TOOL   unxz133EXPORTS TOOL   xzcat134EXPORTS LIB    lzma /usr/lib/liblzma.a135EXPORTS HEADER lzma /usr/include/lzma.h136EXPORTS FOLDER lzma-headers /usr/include/lzma137FILE /usr/share/licenses/xz/COPYING138FILE /usr/share/licenses/xz/COPYING.0BSD139FILE /usr/share/man/cat1/xz.1140