@daugasauron/dolly-package-janis 0.0.0-stage → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/Dollyfile-curl +57 -0
  2. package/Dollyfile-display +34 -0
  3. package/Dollyfile-ghostty-build +186 -0
  4. package/Dollyfile-git +175 -0
  5. package/Dollyfile-gzip +19 -0
  6. package/Dollyfile-libdolly-display +24 -0
  7. package/Dollyfile-libdolly-download +24 -0
  8. package/Dollyfile-libdolly-input +24 -0
  9. package/Dollyfile-system-build +365 -0
  10. package/Dollyfile-system-tools +204 -0
  11. package/Dollyfile-zig-build +155 -0
  12. package/Dollyfile-zlib +48 -0
  13. package/README.md +11 -2
  14. package/amy-index.txt +3 -0
  15. package/demos/javascript/Dollyfile-janis +42 -0
  16. package/demos/javascript/Dollyfile-quickjs +48 -0
  17. package/dist/dolly-curl-system-snapshot.json +73 -0
  18. package/dist/dolly-display-system-snapshot.json +111 -0
  19. package/dist/dolly-ghostty-build-system-snapshot.json +3540 -0
  20. package/dist/dolly-git-system-snapshot.json +131 -0
  21. package/dist/dolly-gzip-system-snapshot.json +69 -0
  22. package/dist/dolly-images.json +511 -0
  23. package/dist/dolly-janis-system-snapshot.json +179 -0
  24. package/dist/dolly-libdolly-display-system-snapshot.json +57 -0
  25. package/dist/dolly-libdolly-download-system-snapshot.json +57 -0
  26. package/dist/dolly-libdolly-input-system-snapshot.json +57 -0
  27. package/dist/dolly-quickjs-system-snapshot.json +149 -0
  28. package/dist/dolly-system-build-system-snapshot.json +1948 -0
  29. package/dist/dolly-system-tools-system-snapshot.json +2289 -0
  30. package/dist/dolly-zig-build-system-snapshot.json +3418 -0
  31. package/dist/dolly-zlib-system-snapshot.json +59 -0
  32. package/dist/packs/5f1993833560c66eed04324f0a19cd7de870713cc95e3838168cfab783fdf5de.snapshot.gz +0 -0
  33. package/package.json +14 -4
package/Dollyfile-curl ADDED
@@ -0,0 +1,57 @@
1
+ DOLLY 7
2
+ PACKAGE curl
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST http@0
5
+
6
+ FROM /v0.1.6/Dollyfile-system-build 2b3dacf451ba777ad3724b819014df4e705b024aa73c51c60125d8b5e45c9b57
7
+
8
+ REQUIRES HEADER libc
9
+ REQUIRES TOOL ar
10
+ REQUIRES TOOL cc
11
+ REQUIRES TOOL make
12
+ REQUIRES TOOL rm
13
+ REQUIRES TOOL tar
14
+
15
+ SOURCE /v0.1.6/dist/static/default/curl-headers.tar 346a0298fcbdafbad7d0c0259a2d7b8539ca46c39222797c01dcac213564bf30 /tmp/curl-headers.tar
16
+ SOURCE /v0.1.6/host/http/libcurl.c bdf44cc786ba51355b4fe4b9e9621341a0d71e88710ba3ab653153bdf00aa4e0 /usr/src/dolly/libcurl-fetch.c
17
+ SOURCE /v0.1.6/dist/static/default/commands/curl.c 27025bd6aa514801c5592bd616a3e62e9ebe436c5d1092eafc31fd0c43f50bed /usr/src/dolly/commands/curl.c
18
+ SLOP tar \
19
+ -xf /tmp/curl-headers.tar \
20
+ -C /
21
+
22
+ FILE /tmp/curl/Makefile
23
+ .RECIPEPREFIX := >
24
+ all: /usr/lib/libcurl.a /usr/bin/curl
25
+ /tmp/libcurl-fetch.o: /usr/src/dolly/libcurl-fetch.c
26
+ >cc \
27
+ > -c $< \
28
+ > -o $@
29
+ /usr/lib/libcurl.a: /tmp/libcurl-fetch.o
30
+ >ar rcs $@ $^
31
+ /usr/bin/curl: /usr/src/dolly/commands/curl.c /usr/lib/libcurl.a
32
+ >cc \
33
+ > -O2 \
34
+ > $< \
35
+ > -lcurl \
36
+ > -o $@
37
+ SLOP CWD / make \
38
+ -f /tmp/curl/Makefile
39
+
40
+ EXPORTS TOOL curl
41
+
42
+ SLOP curl \
43
+ --version
44
+ SLOP curl --help > /usr/share/man/cat1/curl.1
45
+ FILE /usr/share/man/cat1/curl.1
46
+
47
+ EXPORTS LIB curl /usr/lib/libcurl.a
48
+ EXPORTS HEADER curl /usr/include/curl
49
+ FILE /usr/share/licenses/curl/COPYING
50
+
51
+ SLOP rm \
52
+ -rf \
53
+ /tmp/curl \
54
+ /tmp/curl-headers.tar \
55
+ /tmp/libcurl-fetch.o \
56
+ /usr/src/dolly/commands/curl.c \
57
+ /usr/src/dolly/libcurl-fetch.c
@@ -0,0 +1,34 @@
1
+ DOLLY 7
2
+ PACKAGE display
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST display@0
5
+
6
+ COPY /v0.1.6/Dollyfile-ghostty-build 2ce6bdb97cc414bc2d1c772e67f2cd674d938cd2c82b26585e8ba15b850a7d1c /usr/lib/libdisplay.so /usr/lib/libdisplay.so
7
+ COPY /v0.1.6/Dollyfile-ghostty-build 2ce6bdb97cc414bc2d1c772e67f2cd674d938cd2c82b26585e8ba15b850a7d1c /usr/share/fonts/IosevkaTerm-SemiBold.ttf /usr/share/fonts/IosevkaTerm-SemiBold.ttf
8
+ COPY /v0.1.6/Dollyfile-ghostty-build 2ce6bdb97cc414bc2d1c772e67f2cd674d938cd2c82b26585e8ba15b850a7d1c /usr/share/licenses/ghostty /usr/share/licenses/ghostty
9
+ COPY /v0.1.6/Dollyfile-ghostty-build 2ce6bdb97cc414bc2d1c772e67f2cd674d938cd2c82b26585e8ba15b850a7d1c /usr/share/licenses/uucode /usr/share/licenses/uucode
10
+ COPY /v0.1.6/Dollyfile-ghostty-build 2ce6bdb97cc414bc2d1c772e67f2cd674d938cd2c82b26585e8ba15b850a7d1c /usr/share/fonts/DroidSansFallback.ttf /usr/share/fonts/DroidSansFallback.ttf
11
+ COPY /v0.1.6/Dollyfile-ghostty-build 2ce6bdb97cc414bc2d1c772e67f2cd674d938cd2c82b26585e8ba15b850a7d1c /usr/share/fonts/NotoEmoji-Regular.ttf /usr/share/fonts/NotoEmoji-Regular.ttf
12
+ COPY /v0.1.6/Dollyfile-ghostty-build 2ce6bdb97cc414bc2d1c772e67f2cd674d938cd2c82b26585e8ba15b850a7d1c /usr/share/licenses/droid-fonts /usr/share/licenses/droid-fonts
13
+ COPY /v0.1.6/Dollyfile-ghostty-build 2ce6bdb97cc414bc2d1c772e67f2cd674d938cd2c82b26585e8ba15b850a7d1c /usr/share/licenses/noto-emoji /usr/share/licenses/noto-emoji
14
+ # The terminal as termcap describes it, for programs that link a termcap
15
+ # library (less, Emacs): TERM is xterm-256color.
16
+ FILE /etc/termcap
17
+ xterm-256color|xterm|Dolly terminal:\
18
+ :am:bs:km:mi:ms:xn:co#80:it#8:li#24:Co#256:pa#32767:\
19
+ :AB=\E[48;5;%dm:AF=\E[38;5;%dm:op=\E[39;49m:\
20
+ :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
21
+ :LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
22
+ :ae=\E(B:al=\E[L:as=\E(0:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:\
23
+ :cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=\r:cs=\E[%i%d;%dr:ct=\E[3g:\
24
+ :dc=\E[P:dl=\E[M:do=\n:ec=\E[%dX:ei=\E[4l:ho=\E[H:im=\E[4h:\
25
+ :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\
26
+ :k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:\
27
+ :kP=\E[5~:kb=\177:kd=\EOB:ke=\E[?1l\E>:kh=\EOH:kl=\EOD:@7=\EOF:\
28
+ :kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:\
29
+ :me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[27m:\
30
+ :sf=\n:so=\E[7m:sr=\EM:st=\EH:ta=^I:te=\E[?1049l:ti=\E[?1049h:\
31
+ :ue=\E[24m:up=\E[A:us=\E[4m:ve=\E[?12l\E[?25h:vi=\E[?25l:\
32
+ :vs=\E[?12;25h:
33
+ EXPORTS LIB display /usr/lib/libdisplay.so
34
+ EXPORTS ENV DISPLAY /usr/lib/libdisplay.so
@@ -0,0 +1,186 @@
1
+ DOLLY 7
2
+ TOOLCHAIN ghostty-build
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST display@0
5
+ REQUIRES HOST input@0
6
+ REQUIRES HOST http@0
7
+
8
+ FROM /v0.1.6/Dollyfile-zig-build 90061764772376d61f11f5cad358d6346f544a95d20c960b5cebb6cbf50f3ec1
9
+ INSTALL /v0.1.6/Dollyfile-libdolly-display c4f8ea64af9ad51300b9b48369558e17493bccb9be1b7db853cda0e1d7d66a48
10
+ INSTALL /v0.1.6/Dollyfile-libdolly-input 45202588e489298ba6fe352129e992fca0c7a45e13bf45cde85976c931a981e4
11
+
12
+ REQUIRES HEADER libc
13
+ REQUIRES HEADER display
14
+ REQUIRES HEADER input
15
+ REQUIRES TOOL ar
16
+ REQUIRES TOOL cc
17
+ REQUIRES TOOL make
18
+ REQUIRES TOOL rm
19
+ REQUIRES TOOL tar
20
+ REQUIRES TOOL zig
21
+
22
+ SOURCE /v0.1.6/dist/static/default/ghostty.tar 74835c10f3034c328c097e85cb164071a9f53af21a44688dabf0b06a6f7334cf /tmp/ghostty.tar
23
+ SOURCE /v0.1.6/dist/static/default/uucode.tar be9d52ab9c0f49deb5fd8baa54b4b14f490f8e29e200d044e908d7adad54e3d0 /tmp/uucode.tar
24
+ SOURCE /v0.1.6/dist/static/default/ghostty/display.c 6bbea55d7e863e812802ac6e7f2169c95494828f547084ae425733f38405624b /usr/src/dolly/ghostty/display.c
25
+ SOURCE /v0.1.6/dist/static/default/stb_truetype.h ecd30b05e0dd4fea3a13c26810dd9e1992dc379049482c393d5a19e6b5090aab /tmp/ghostty/stb_truetype.h
26
+ SOURCE /v0.1.6/dist/static/default/stb_image.h 594c2fe35d49488b4382dbfaec8f98366defca819d916ac95becf3e75f4200b3 /tmp/ghostty/stb_image.h
27
+ SOURCE /v0.1.6/dist/static/default/IosevkaTerm-SemiBold.ttf cb3fd282d86c0e7cc2829f848df5a58973db98c8369a20427a9b3d06727e5aaa /usr/share/fonts/IosevkaTerm-SemiBold.ttf
28
+ # What IosevkaTerm has no glyph for: Chinese, Japanese and Korean, then emoji.
29
+ SOURCE /v0.1.6/dist/static/default/DroidSansFallback.ttf 56d3edfb377a8bc3c4b77f4476405c770173c0e31221ad7c77d0a8e1f3039a3e /usr/share/fonts/DroidSansFallback.ttf
30
+ SOURCE /v0.1.6/dist/static/default/droid-fonts-NOTICE 38751245389e1e23f73e6f5384b5cbe7fa972cc4410c5adc9c04b082a0b9561a /usr/share/licenses/droid-fonts/NOTICE
31
+ SOURCE /v0.1.6/dist/static/default/NotoEmoji-Regular.ttf cd07743a4c93d8da929afdd28c1d368f11da478a1093146a13610081c2a58440 /usr/share/fonts/NotoEmoji-Regular.ttf
32
+ SOURCE /v0.1.6/dist/static/default/noto-emoji-OFL.txt fb755fa3280d1d215a20df2e64fe6a0f75f8208439b11671978214aae60d2997 /usr/share/licenses/noto-emoji/OFL.txt
33
+ SLOP tar \
34
+ -xf /tmp/ghostty.tar \
35
+ -C /
36
+ SLOP tar \
37
+ -xf /tmp/uucode.tar \
38
+ -C /
39
+
40
+ # The Unicode tables' generators run as programs of this Zig: Zig's page
41
+ # allocator on WebAssembly grows the memory itself, behind libc's sbrk, so
42
+ # their root gives them libc's.
43
+ FILE /tmp/ghostty/generator.zig
44
+ const std = @import("std");
45
+ pub const os = struct {
46
+ pub const heap = struct {
47
+ pub const page_allocator = std.heap.c_allocator;
48
+ };
49
+ };
50
+ pub const main = @import("generate").main;
51
+
52
+ # Zig emits Ghostty VT and compiler_rt as C; cc compiles them. zig.h passes
53
+ # usize as uint64_t *, and @returnAddress would import an Emscripten helper.
54
+ # The Unicode tables are generated first, as Ghostty's build does
55
+ # (src/build/UnicodeTables.zig, uucode's build.zig): uucode's generator reads
56
+ # the UCD and writes its tables, over which Ghostty's two print theirs.
57
+ FILE /tmp/ghostty/Makefile
58
+ .RECIPEPREFIX := >
59
+ ZIGFLAGS := -OReleaseSmall -target wasm64-emscripten -mcpu=generic+atomics -fsingle-threaded -ofmt=c
60
+ CFLAGS := -O2 -std=c99 -fno-strict-aliasing -Wno-incompatible-pointer-types -I /usr/lib/zig
61
+ UUCODE_CONFIG := --dep storage.zig -Mconfig.zig=/usr/src/uucode/src/config.zig \
62
+ --dep config.zig -Mstorage.zig=/usr/src/uucode/src/storage.zig \
63
+ --dep config.zig --dep storage.zig -Mbuild_config=/usr/src/ghostty/src/build/uucode_config.zig
64
+ GENERATORS := /tmp/ghostty/uucode-generate /tmp/ghostty/props-generate /tmp/ghostty/symbols-generate
65
+ all: /usr/lib/libghostty-vt.a /usr/lib/libdisplay.so
66
+ /tmp/ghostty/uucode-generate.c:
67
+ >zig build-exe $(ZIGFLAGS) -lc --name uucode-generate --dep generate -Mroot=/tmp/ghostty/generator.zig \
68
+ > --dep config.zig --dep storage.zig --dep build_config -Mgenerate=/usr/src/uucode/src/generate.zig \
69
+ > $(UUCODE_CONFIG) -femit-bin=$@
70
+ /tmp/ghostty/props-generate.c /tmp/ghostty/symbols-generate.c: /tmp/ghostty/uucode-tables.zig
71
+ >zig build-exe $(ZIGFLAGS) -lc --name $(basename $(@F)) --dep generate -Mroot=/tmp/ghostty/generator.zig \
72
+ > --dep uucode -Mgenerate=/usr/src/ghostty/src/unicode/$(subst -generate.c,_uucode.zig,$(@F)) \
73
+ > --dep types.zig --dep config.zig --dep tables -Muucode=/usr/src/uucode/src/root.zig \
74
+ > -Mtypes.zig=/usr/src/uucode/src/types.zig \
75
+ > --dep types.zig $(UUCODE_CONFIG) \
76
+ > --dep config.zig --dep storage.zig --dep build_config -Mtables=/tmp/ghostty/uucode-tables.zig -femit-bin=$@
77
+ $(GENERATORS): %: %.c /tmp/ghostty/compiler_rt.o
78
+ >cc $(CFLAGS) '-D__builtin_return_address(level)=0' -o $@ $^
79
+ /tmp/ghostty/uucode-tables.zig: /tmp/ghostty/uucode-generate
80
+ >cd /usr/src/uucode && $< $@
81
+ /tmp/ghostty/unicode-props.zig /tmp/ghostty/unicode-symbols.zig: /tmp/ghostty/unicode-%.zig: /tmp/ghostty/%-generate
82
+ >$< > $@
83
+ /tmp/ghostty/ghostty-vt.c: /tmp/ghostty/uucode-tables.zig /tmp/ghostty/unicode-props.zig /tmp/ghostty/unicode-symbols.zig
84
+ >zig build-obj \
85
+ > $(ZIGFLAGS) \
86
+ > -lc \
87
+ > --name ghostty-vt \
88
+ > --dep build_options \
89
+ > --dep terminal_options \
90
+ > --dep wuffs \
91
+ > --dep unicode_tables \
92
+ > --dep symbols_tables \
93
+ > --dep uucode \
94
+ > -Mroot=/usr/src/ghostty/src/lib_vt.zig \
95
+ > -Mbuild_options=/usr/src/ghostty/generated/build-options.zig \
96
+ > -Mterminal_options=/usr/src/ghostty/generated/terminal-options.zig \
97
+ > -Municode_tables=/tmp/ghostty/unicode-props.zig \
98
+ > -Msymbols_tables=/tmp/ghostty/unicode-symbols.zig \
99
+ > -ODebug \
100
+ > --dep types.zig \
101
+ > --dep config.zig \
102
+ > --dep tables \
103
+ > -Muucode=/usr/src/uucode/src/root.zig \
104
+ > -ODebug \
105
+ > -Mtypes.zig=/usr/src/uucode/src/types.zig \
106
+ > -ODebug \
107
+ > --dep types.zig \
108
+ > --dep storage.zig \
109
+ > -Mconfig.zig=/usr/src/uucode/src/config.zig \
110
+ > -ODebug \
111
+ > --dep config.zig \
112
+ > --dep storage.zig \
113
+ > --dep build_config \
114
+ > -Mtables=/tmp/ghostty/uucode-tables.zig \
115
+ > -ODebug \
116
+ > --dep config.zig \
117
+ > -Mstorage.zig=/usr/src/uucode/src/storage.zig \
118
+ > --dep config.zig \
119
+ > --dep storage.zig \
120
+ > -Mbuild_config=/usr/src/ghostty/src/build/uucode_config.zig \
121
+ > -OReleaseSmall \
122
+ > --dep wuffs_c \
123
+ > -Mwuffs=/usr/src/ghostty/pkg/wuffs/src/main.zig \
124
+ > --dep c_builtins \
125
+ > --dep helpers \
126
+ > -Mwuffs_c=/usr/src/ghostty/generated/wuffs-c.zig \
127
+ > -Mc_builtins=/usr/src/translate_c/lib/c_builtins.zig \
128
+ > -Mhelpers=/usr/src/translate_c/lib/helpers.zig \
129
+ > -femit-bin=$@
130
+ /tmp/ghostty/compiler_rt.c:
131
+ >zig build-obj $(ZIGFLAGS) --name compiler_rt -Mroot=/usr/lib/zig/compiler_rt.zig -femit-bin=$@
132
+ /tmp/ghostty/ghostty-vt.o: /tmp/ghostty/ghostty-vt.c
133
+ >cc -c $(CFLAGS) '-D__builtin_return_address(level)=0' -o $@ $<
134
+ /tmp/ghostty/compiler_rt.o: /tmp/ghostty/compiler_rt.c
135
+ >cc -c $(CFLAGS) -o $@ $<
136
+ # Wuffs as Ghostty's pkg/wuffs/build.zig builds it, for kitty graphics;
137
+ # hidden, as the plugin's own code: its vtables name its functions.
138
+ /tmp/ghostty/wuffs.o: /usr/src/wuffs/wuffs-v0.4.c
139
+ >cc -c -O2 -fvisibility=hidden -DWUFFS_IMPLEMENTATION -DWUFFS_CONFIG__MODULES -DWUFFS_CONFIG__MODULE__AUX__BASE \
140
+ > -DWUFFS_CONFIG__MODULE__AUX__IMAGE -DWUFFS_CONFIG__MODULE__BASE -DWUFFS_CONFIG__MODULE__ADLER32 \
141
+ > -DWUFFS_CONFIG__MODULE__CRC32 -DWUFFS_CONFIG__MODULE__DEFLATE -DWUFFS_CONFIG__MODULE__JPEG \
142
+ > -DWUFFS_CONFIG__MODULE__PNG -DWUFFS_CONFIG__MODULE__ZLIB -o $@ $<
143
+ /usr/lib/libghostty-vt.a: /tmp/ghostty/ghostty-vt.o /tmp/ghostty/compiler_rt.o /tmp/ghostty/wuffs.o
144
+ >ar rcs $@ $^
145
+ /usr/lib/libdisplay.so: /usr/src/dolly/ghostty/display.c /usr/lib/libghostty-vt.a
146
+ >cc \
147
+ > -shared \
148
+ > --dolly-kernel-plugin \
149
+ > -O2 \
150
+ > -I /tmp/ghostty \
151
+ > -I /usr/include \
152
+ > $< \
153
+ > -lghostty-vt \
154
+ > -o $@
155
+ SLOP CWD /usr/src/ghostty make \
156
+ -f /tmp/ghostty/Makefile
157
+
158
+ FILE /usr/share/fonts/IosevkaTerm-SemiBold.ttf
159
+ FILE /usr/share/fonts/DroidSansFallback.ttf
160
+ FILE /usr/share/fonts/NotoEmoji-Regular.ttf
161
+ FILE /usr/share/licenses/droid-fonts/NOTICE
162
+ FILE /usr/share/licenses/noto-emoji/OFL.txt
163
+ FILE /usr/share/licenses/ghostty/LICENSE
164
+ FILE /usr/share/licenses/uucode/LICENSE.md
165
+ FILE /usr/share/licenses/uucode/LICENSE_unicode
166
+ FILE /usr/share/licenses/wuffs/LICENSE-APACHE
167
+ FILE /usr/share/licenses/wuffs/LICENSE-MIT
168
+ FILE /usr/share/licenses/translate-c/LICENSE
169
+
170
+ EXPORTS LIB ghostty-vt /usr/lib/libghostty-vt.a
171
+ EXPORTS LIB display /usr/lib/libdisplay.so
172
+ EXPORTS HEADER ghostty-vt /usr/include/ghostty
173
+
174
+ SLOP rm \
175
+ -rf \
176
+ /tmp/ghostty \
177
+ /tmp/ghostty.tar \
178
+ /tmp/uucode.tar \
179
+ /usr/src/dolly/ghostty \
180
+ /usr/src/ghostty \
181
+ /usr/src/uucode
182
+
183
+ # Opened, the image runs the display library it just built.
184
+ EXPORTS ENV DISPLAY /usr/lib/libdisplay.so
185
+
186
+ ENTRY /bin/foreground -i /bin/slop
package/Dollyfile-git ADDED
@@ -0,0 +1,175 @@
1
+ DOLLY 7
2
+ PACKAGE git
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST http@0
5
+ REQUIRES HOST threads@0
6
+
7
+ # Git with its HTTP helpers, and Dolly's diff and patch, which run it. Git
8
+ # links zlib and its helpers libcurl too; both serve the build and are not
9
+ # installed with it. Git runs its asyncs, a side band's reader among them, as
10
+ # threads; without threads it would fork them.
11
+ FROM /v0.1.6/Dollyfile-system-build 2b3dacf451ba777ad3724b819014df4e705b024aa73c51c60125d8b5e45c9b57
12
+ USE /v0.1.6/Dollyfile-zlib 48ee0a5552eada81c0324749ba5ce9a7d2a2505a91f3ffcaf51f81c36a641f82
13
+ USE /v0.1.6/Dollyfile-curl 084ff066ff997321eb771ee8a29503b8e5eb6ff877cb6407df761bcb5173655b
14
+ REQUIRES HEADER libc
15
+ REQUIRES HEADER runtime
16
+ REQUIRES HEADER curl
17
+ REQUIRES HEADER zlib
18
+ REQUIRES LIB curl
19
+ REQUIRES LIB z
20
+ REQUIRES TOOL ar
21
+ REQUIRES TOOL cc
22
+ REQUIRES TOOL make
23
+ REQUIRES TOOL mkdir
24
+ REQUIRES TOOL rm
25
+ REQUIRES TOOL tar
26
+
27
+ SOURCE /v0.1.6/dist/static/default/git.tar 5c190c2a9301f54afab080b85341a8cd683bee1995b2d911e0bdea93f5eb845a /tmp/git.tar
28
+ SLOP tar \
29
+ -xf /tmp/git.tar \
30
+ -C /
31
+
32
+ # Automatic maintenance forks; the system configuration turns it off.
33
+ FILE /etc/gitconfig
34
+ [maintenance]
35
+ auto = false
36
+ FILE /home/dolly/.gitconfig
37
+ [user]
38
+ name = Dolly
39
+ email = dolly@example.invalid
40
+ FILE /tmp/git/Makefile
41
+ .RECIPEPREFIX := >
42
+ SOURCES := $(file </usr/src/git/dolly-sources.txt)
43
+ OBJECTS := $(addprefix /tmp/git/objects/,$(SOURCES:.c=.o))
44
+ # NO_REGEX takes Git's regex, with GAWK and NO_MBSUPPORT as its Makefile
45
+ # sets them: the sysroot's regex.h has no REG_STARTEND.
46
+ # Git ends with status 128 when its pager cannot start, so the default one
47
+ # is a command for Slop: less when it is installed, cat otherwise.
48
+ CPPFLAGS := \
49
+ -O2 \
50
+ -std=gnu99 \
51
+ -Wno-ignored-attributes \
52
+ -D_DEFAULT_SOURCE \
53
+ -DNO_GETTEXT \
54
+ -DNO_ICONV \
55
+ -DNO_EXPAT \
56
+ -pthread \
57
+ -DNO_UNIX_SOCKETS \
58
+ -DNO_OPENSSL \
59
+ -DNO_PERL \
60
+ -DNO_PYTHON \
61
+ -DNO_IPV6 \
62
+ -DNO_MMAP \
63
+ -DNO_REGEX \
64
+ -DGAWK \
65
+ -DNO_MBSUPPORT \
66
+ -DNO_STRLCPY \
67
+ -DSHA1_BLK \
68
+ -DSHA256_BLK \
69
+ -DHAVE_ALLOCA_H \
70
+ -DHAVE_STRINGS_H \
71
+ -DHAVE_CLOCK_GETTIME \
72
+ -DHAVE_GETRANDOM \
73
+ '-DGIT_VERSION_H="version-def.h"' \
74
+ '-DBINDIR="/usr/bin"' \
75
+ '-DGIT_EXEC_PATH="/usr/libexec/dolly"' \
76
+ '-DDEFAULT_GIT_TEMPLATE_DIR="/usr/share/git-core/templates"' \
77
+ '-DFALLBACK_RUNTIME_PREFIX="/usr"' \
78
+ '-DGIT_HOST_CPU="wasm64"' \
79
+ '-DGIT_LOCALE_PATH="/usr/share/locale"' \
80
+ '-DSHELL_PATH="/bin/slop"' \
81
+ '-DDEFAULT_PAGER="$$(command -v less || command -v cat)"' \
82
+ '-DPAGER_ENV="LESS=FRX LV=-c"' \
83
+ '-DETC_GITCONFIG="/etc/gitconfig"' \
84
+ '-DETC_GITATTRIBUTES="/etc/gitattributes"' \
85
+ '-DGIT_HTML_PATH="/usr/share/doc/git/html"' \
86
+ '-DGIT_MAN_PATH="/usr/share/man"' \
87
+ '-DGIT_INFO_PATH="/usr/share/info"' \
88
+ -I /usr/src/git/compat/regex \
89
+ -I /usr/src/git \
90
+ -include dolly/runtime.h
91
+ all: /usr/bin/git /usr/libexec/dolly/git-remote-http
92
+ /tmp/git/objects/%.o: /usr/src/git/%.c
93
+ >mkdir -p $(dir $@)
94
+ >cc \
95
+ > $(CPPFLAGS) \
96
+ > -c $< \
97
+ > -o $@
98
+ /usr/lib/libgit.a: $(OBJECTS)
99
+ >ar rcs $@ $^
100
+ /usr/bin/git: /usr/src/git/common-main.c /usr/src/git/git.c /usr/lib/libgit.a
101
+ >cc \
102
+ > $(CPPFLAGS) \
103
+ > /usr/src/git/common-main.c \
104
+ > /usr/src/git/git.c \
105
+ > -lgit \
106
+ > -lz \
107
+ > -o $@
108
+ /usr/libexec/dolly:
109
+ >mkdir -p $@
110
+ /usr/libexec/dolly/git-remote-http: /usr/src/git/common-main.c /usr/src/git/remote-curl.c /usr/src/git/http.c /usr/src/git/http-walker.c /usr/lib/libgit.a | /usr/libexec/dolly
111
+ >cc \
112
+ > $(CPPFLAGS) \
113
+ > /usr/src/git/common-main.c \
114
+ > /usr/src/git/remote-curl.c \
115
+ > /usr/src/git/http.c \
116
+ > /usr/src/git/http-walker.c \
117
+ > -lgit \
118
+ > -lcurl \
119
+ > -lz \
120
+ > -o $@
121
+ SLOP CWD /usr/src/git make \
122
+ -f /tmp/git/Makefile
123
+
124
+ EXPORTS TOOL git
125
+
126
+ SLOP git \
127
+ --version
128
+ # The builtins a local transport runs by their dashed names (git clone PATH
129
+ # runs git-upload-pack on its other side), as upstream installs them, and
130
+ # the HTTPS helper, which upstream links to the HTTP one.
131
+ FILE /usr/libexec/dolly/git-upload-pack
132
+ #!/bin/slop
133
+ exec git upload-pack "$@"
134
+ FILE /usr/libexec/dolly/git-receive-pack
135
+ #!/bin/slop
136
+ exec git receive-pack "$@"
137
+ FILE /usr/libexec/dolly/git-upload-archive
138
+ #!/bin/slop
139
+ exec git upload-archive "$@"
140
+ FILE /usr/libexec/dolly/git-remote-https
141
+ #!/bin/slop
142
+ exec /usr/libexec/dolly/git-remote-http "$@"
143
+ SLOP git init -q /tmp/git-check/origin && git -C /tmp/git-check/origin commit -q --allow-empty -m one && \
144
+ git clone -q /tmp/git-check/origin /tmp/git-check/clone && test "$(git -C /tmp/git-check/clone log --format=%s)" = one && \
145
+ git -C /tmp/git-check/clone commit -q --allow-empty -m two && git -C /tmp/git-check/clone push -q origin HEAD:pushed && \
146
+ test "$(git -C /tmp/git-check/origin log -1 --format=%s pushed)" = two
147
+ SLOP git --help > /usr/share/man/cat1/git.1
148
+
149
+ FILE /usr/libexec/dolly/git-remote-http
150
+ FOLDER /usr/share/git-core/templates
151
+ FILE /usr/share/licenses/git/COPYING
152
+ # git links libcurl statically and carries its licence.
153
+ FILE /usr/share/licenses/curl/COPYING
154
+ FILE /usr/share/man/cat1/git.1
155
+
156
+ # Dolly's diff and patch: git diff --no-index and git apply, for programs and
157
+ # build systems that run them.
158
+ SOURCE /v0.1.6/dist/static/default/commands/run-program.h e73415ba149e8dcb9944313c36d8d2319202d699c810e02a26d5a94caa8f3a9f /tmp/git-tools/run-program.h
159
+ SOURCE /v0.1.6/dist/static/default/commands/diff.c cda06a2a94c9d7c5f1ccab54f847011e35379f7cc452b7d4a0d7046ae61b7de9 /tmp/git-tools/diff.c
160
+ SOURCE /v0.1.6/dist/static/default/commands/patch.c 7ba7566bff1486b706ff2d9d8863ddfeff4e17cdc0501c648dc41b96ff72dfb0 /tmp/git-tools/patch.c
161
+ SLOP cc -O2 /tmp/git-tools/diff.c -o /bin/diff
162
+ SLOP cc -O2 /tmp/git-tools/patch.c -o /bin/patch
163
+ EXPORTS TOOL diff
164
+ EXPORTS TOOL patch
165
+ SLOP diff --help > /usr/share/man/cat1/diff.1
166
+ SLOP patch --help > /usr/share/man/cat1/patch.1
167
+ FILE /usr/share/man/cat1/diff.1
168
+ FILE /usr/share/man/cat1/patch.1
169
+
170
+ SLOP rm \
171
+ -rf \
172
+ /tmp/git \
173
+ /tmp/git.tar \
174
+ /tmp/git-tools \
175
+ /usr/src/git
package/Dollyfile-gzip ADDED
@@ -0,0 +1,19 @@
1
+ DOLLY 7
2
+ PACKAGE gzip
3
+ REQUIRES HOST runtime@0
4
+
5
+ FROM /v0.1.6/Dollyfile-system-build 2b3dacf451ba777ad3724b819014df4e705b024aa73c51c60125d8b5e45c9b57
6
+ USE /v0.1.6/Dollyfile-zlib 48ee0a5552eada81c0324749ba5ce9a7d2a2505a91f3ffcaf51f81c36a641f82
7
+
8
+ REQUIRES HEADER libc
9
+ REQUIRES HEADER zlib
10
+ REQUIRES LIB z
11
+ REQUIRES TOOL cc
12
+ REQUIRES TOOL rm
13
+
14
+ SOURCE /v0.1.6/dist/static/default/commands/gzip.c 265a07fe3b66241718ed0f97fb9d72bee27da29109a55e1640f5f1d5be29a626 /tmp/gzip.c
15
+ SLOP cc /tmp/gzip.c -lz -o /bin/gzip
16
+ SLOP rm /tmp/gzip.c
17
+ EXPORTS TOOL gzip
18
+ SLOP gzip --help > /usr/share/man/cat1/gzip.1
19
+ FILE /usr/share/man/cat1/gzip.1
@@ -0,0 +1,24 @@
1
+ DOLLY 7
2
+ PACKAGE libdolly-display
3
+ REQUIRES HOST runtime@0
4
+
5
+ # The display@0 module's header and client (the terminal's surface and a
6
+ # program's frames), for programs the cc package builds: cc links every client
7
+ # archive in /usr/lib/dolly/process, and a program records display@0 only when
8
+ # it calls the client.
9
+ FROM /v0.1.6/Dollyfile-system-build 2b3dacf451ba777ad3724b819014df4e705b024aa73c51c60125d8b5e45c9b57
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL cc
13
+ REQUIRES TOOL rm
14
+
15
+ SOURCE /v0.1.6/host/display/display.h 0288b4510090e22243582c37a8f701bd460a31f4bb64db1aff85d8fa058b82ce /usr/include/dolly/display.h
16
+ SOURCE /v0.1.6/host/display/display-abi.h 0429ac498ead0219e509426e5df6293fca6007494b4e54f5f48f43193ddae2f2 /usr/include/dolly/display-abi.h
17
+ SOURCE /v0.1.6/host/display/client.c 8ebb4b6346302ee24fc6fd60c97a3e5ba8039b5bbd6764b60641087564387d02 /tmp/libdolly-display/client.c
18
+ SLOP cc -O1 -c /tmp/libdolly-display/client.c -o /tmp/libdolly-display/client.o
19
+ SLOP ar rcs /usr/lib/dolly/process/libdolly-display.a /tmp/libdolly-display/client.o
20
+
21
+ EXPORTS HEADER display /usr/include/dolly/display.h
22
+ EXPORTS HEADER display-abi /usr/include/dolly/display-abi.h
23
+ EXPORTS LIB dolly-display /usr/lib/dolly/process/libdolly-display.a
24
+ SLOP rm -rf /tmp/libdolly-display
@@ -0,0 +1,24 @@
1
+ DOLLY 7
2
+ PACKAGE libdolly-download
3
+ REQUIRES HOST runtime@0
4
+
5
+ # The download@0 module's header and client (offer a file to save), for
6
+ # programs the cc package builds: cc links every client archive in
7
+ # /usr/lib/dolly/process, and a program records download@0 only when it calls
8
+ # the client.
9
+ FROM /v0.1.6/Dollyfile-system-build 2b3dacf451ba777ad3724b819014df4e705b024aa73c51c60125d8b5e45c9b57
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL cc
13
+ REQUIRES TOOL rm
14
+
15
+ SOURCE /v0.1.6/host/download/download.h 666bca4fba5da7bf1e998c6486f56dce24cdbc82f1126f9be59067eb03b03bfa /usr/include/dolly/download.h
16
+ SOURCE /v0.1.6/host/download/download-abi.h 6252f84477c990f9df2ffc5905c0717a94c9f4e557fccccbbf593ac02198dbc2 /usr/include/dolly/download-abi.h
17
+ SOURCE /v0.1.6/host/download/client.c 420b5ae0b6d2108a5e991cdf156f8b9781f1260cf5a748f38336066a7343a16e /tmp/libdolly-download/client.c
18
+ SLOP cc -O1 -c /tmp/libdolly-download/client.c -o /tmp/libdolly-download/client.o
19
+ SLOP ar rcs /usr/lib/dolly/process/libdolly-download.a /tmp/libdolly-download/client.o
20
+
21
+ EXPORTS HEADER download /usr/include/dolly/download.h
22
+ EXPORTS HEADER download-abi /usr/include/dolly/download-abi.h
23
+ EXPORTS LIB dolly-download /usr/lib/dolly/process/libdolly-download.a
24
+ SLOP rm -rf /tmp/libdolly-download
@@ -0,0 +1,24 @@
1
+ DOLLY 7
2
+ PACKAGE libdolly-input
3
+ REQUIRES HOST runtime@0
4
+
5
+ # The input@0 module's header and client (keys, text, paste, pointer and
6
+ # wheel), for programs the cc package builds: cc links every client archive in
7
+ # /usr/lib/dolly/process, and a program records input@0 only when it calls the
8
+ # client.
9
+ FROM /v0.1.6/Dollyfile-system-build 2b3dacf451ba777ad3724b819014df4e705b024aa73c51c60125d8b5e45c9b57
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL cc
13
+ REQUIRES TOOL rm
14
+
15
+ SOURCE /v0.1.6/host/input/input.h 80fefe0139ef63fc5745b7e41662892f0c4b7fb2b4d09a42789de3c693685227 /usr/include/dolly/input.h
16
+ SOURCE /v0.1.6/host/input/input-abi.h f9f2ce405bd06d0a3b29c942dec8dc78f97f6280302690903d49fada36b2f8d1 /usr/include/dolly/input-abi.h
17
+ SOURCE /v0.1.6/host/input/client.c 384c287c684156febe5d144f7d072df437bdfd0ce0f0f435e531918f1cdc2651 /tmp/libdolly-input/client.c
18
+ SLOP cc -O1 -c /tmp/libdolly-input/client.c -o /tmp/libdolly-input/client.o
19
+ SLOP ar rcs /usr/lib/dolly/process/libdolly-input.a /tmp/libdolly-input/client.o
20
+
21
+ EXPORTS HEADER input /usr/include/dolly/input.h
22
+ EXPORTS HEADER input-abi /usr/include/dolly/input-abi.h
23
+ EXPORTS LIB dolly-input /usr/lib/dolly/process/libdolly-input.a
24
+ SLOP rm -rf /tmp/libdolly-input