1DOLLY 72PACKAGE jq3REQUIRES HOST runtime@045# jq from the files of upstream's release archive, unchanged, with the6# Oniguruma and decNumber it vendors and the parser it ships generated.7FROM /v0.1.4/demos/tools/Dollyfile-tools-build 81e1c1bc8b06c83b1daead6c8f09bc8b1382e8fe165f896a98109396b58bb30589REQUIRES HEADER libc10REQUIRES TOOL   cc11REQUIRES TOOL   echo12REQUIRES TOOL   make13REQUIRES TOOL   tar14REQUIRES TOOL   test15REQUIRES TOOL   text-page1617SOURCE /v0.1.4/dist/static/tools/jq.tar 691ae56938eaee12dd4ef955033579c456f4d5327423bf06f2f0f43e2d18a2e6 /tmp/jq.tar18SLOP tar -xf /tmp/jq.tar -C /1920# Slop does not run the two configure scripts, so these say what they would21# find here. Oniguruma reads its answers from config.h.22FILE /tmp/jq/vendor/oniguruma/src/config.h23    #define HAVE_ALLOCA 124    #define HAVE_ALLOCA_H 125    #define HAVE_INTTYPES_H 126    #define HAVE_STDINT_H 127    #define HAVE_STDIO_H 128    #define HAVE_STDLIB_H 129    #define HAVE_STRINGS_H 130    #define HAVE_STRING_H 131    #define HAVE_SYS_STAT_H 132    #define HAVE_SYS_TIMES_H 133    #define HAVE_SYS_TIME_H 134    #define HAVE_SYS_TYPES_H 135    #define HAVE_UNISTD_H 136    #define SIZEOF_INT 437    #define SIZEOF_LONG 838    #define SIZEOF_LONG_LONG 839    #define SIZEOF_VOIDP 840    #define STDC_HEADERS 141FILE /tmp/jq/src/config_opts.inc42    #define JQ_CONFIG "--with-oniguruma=builtin"43# jq compiles its library of definitions in as a C array. Upstream's rule44# writes it with od -t o1 and sed; sbase's od stops at -t o1.45FILE /tmp/jq/bytes.c46    #include <stdio.h>47    int main(void) {48      for (int byte; (byte = getchar()) != EOF;) printf("%d,\n", byte);49      return 0;50    }51FILE /tmp/jq.mk52    .RECIPEPREFIX := >53    # The lexer and parser ship generated: no rule remakes them with lex and yacc.54    MAKEFLAGS += -r55    S := /tmp/jq56    BIN := /usr/bin57    # Not claimed: gamma and arc4random, which libc lacks, and __thread58    # storage, in whose place jq keeps a thread's data under pthread keys.59    MATH := ACOS ACOSH ASIN ASINH ATAN2 ATAN ATANH CBRT CEIL COPYSIGN COS COSH DREM ERF ERFC EXP10 \60      EXP2 EXP EXPM1 FABS FDIM FLOOR FMA FMAX FMIN FMOD FREXP HYPOT J0 J1 JN LDEXP LGAMMA LOG10 \61      LOG1P LOG2 LOG LOGB MODF LGAMMA_R NEARBYINT NEXTAFTER NEXTTOWARD POW REMAINDER RINT ROUND \62      SCALB SCALBLN SIGNIFICAND SCALBN ILOGB SIN SINH SQRT TAN TANH TGAMMA TRUNC Y0 Y1 YN63    HAVE := $(MATH) ALLOCA_H ATEXIT GETENTROPY GETTIMEOFDAY GMTIME GMTIME_R ISATTY LIBONIG \64      LOCALTIME LOCALTIME_R MEMMEM PTHREAD_KEY_CREATE PTHREAD_ONCE SETENV SETLOCALE STRFTIME \65      STRPTIME TIMEGM TM_TM_GMT_OFF66    # _GNU_SOURCE as AC_USE_SYSTEM_EXTENSIONS defines it.67    CPPFLAGS := $(addprefix -DHAVE_,$(HAVE)) -D_GNU_SOURCE=1 -DIEEE_8087=1 -DUSE_DECNUM=1 \68      -I $S -I $S/src -I $S/vendor -I $S/vendor/oniguruma/src69    # The sources of upstream's Makefile.am: libjq, its lexer and parser, jq.70    NAMES := builtin bytecode compile execute jq_test jv jv_alloc jv_aux jv_dtoa jv_file jv_parse \71      jv_print jv_unicode linker locfile util jv_dtoa_tsd lexer parser main72    # Oniguruma's, without its POSIX API.73    ONIG := regparse regcomp regexec regenc regerror regext regsyntax regtrav regversion st reggnu \74      unicode unicode_unfold_key unicode_fold1_key unicode_fold2_key unicode_fold3_key ascii utf8 \75      utf16_be utf16_le utf32_be utf32_le euc_jp euc_jp_prop sjis sjis_prop iso8859_1 iso8859_2 \76      iso8859_3 iso8859_4 iso8859_5 iso8859_6 iso8859_7 iso8859_8 iso8859_9 iso8859_10 iso8859_11 \77      iso8859_13 iso8859_14 iso8859_15 iso8859_16 euc_tw euc_kr big5 gb18030 koi8_r cp1251 onig_init78    OBJECTS := $(addprefix $S/src/,$(addsuffix .o,$(NAMES))) \79      $(addprefix $S/vendor/decNumber/,decContext.o decNumber.o) \80      $(addprefix $S/vendor/oniguruma/src/,$(addsuffix .o,$(ONIG)))81    $(BIN)/jq: $(OBJECTS)82    >cc $^ -lm -o $@83    $S/bytes: $S/bytes.c84    >cc $< -o $@85    $S/src/builtin.inc: $S/src/builtin.jq $S/bytes86    >$S/bytes < $< > $@87    $S/src/builtin.o: $S/src/builtin.inc88    $S/%.o: $S/%.c89    >cc -O2 $(CPPFLAGS) -c $< -o $@90SLOP make -j4 -f /tmp/jq.mk9192SLOP test "$(echo '{"a": [1, 20, 21], "b": "2026-10-13T00:00:00Z"}' | jq -c '[(.a | add), (.b | fromdate | todate | test("^2026-10")), ("x" | ascii_upcase)]')" = '[42,true,"X"]'9394EXPORTS TOOL jq95FILE /usr/share/licenses/jq/COPYING96FILE /usr/share/licenses/oniguruma/COPYING97SLOP text-page /usr/share/man/man1/jq.198FILE /usr/share/man/cat1/jq.199