@daugasauron/dolly-package-tmux 0.0.0-stage → 0.1.8

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 (53) hide show
  1. package/Dollyfile-cc +29 -0
  2. package/Dollyfile-curl +57 -0
  3. package/Dollyfile-display +34 -0
  4. package/Dollyfile-ghostty-build +185 -0
  5. package/Dollyfile-git +155 -0
  6. package/Dollyfile-gzip +19 -0
  7. package/Dollyfile-libdolly-display +24 -0
  8. package/Dollyfile-libdolly-input +24 -0
  9. package/Dollyfile-libdolly-pty +24 -0
  10. package/Dollyfile-libdolly-sockets +24 -0
  11. package/Dollyfile-make +11 -0
  12. package/Dollyfile-mandoc +131 -0
  13. package/Dollyfile-system-build +364 -0
  14. package/Dollyfile-system-tools +205 -0
  15. package/Dollyfile-vi +67 -0
  16. package/Dollyfile-zig-build +154 -0
  17. package/Dollyfile-zlib +48 -0
  18. package/README.md +11 -2
  19. package/amy-index.txt +1 -0
  20. package/demos/cmake/Dollyfile-cmake +80 -0
  21. package/demos/cmake/Dollyfile-cmake-build +15 -0
  22. package/demos/cmake/Dollyfile-libuv +44 -0
  23. package/demos/tmux/Dollyfile-libevent +144 -0
  24. package/demos/tmux/Dollyfile-libterminfo +78 -0
  25. package/demos/tmux/Dollyfile-tmux +102 -0
  26. package/demos/tools/Dollyfile-tools-build +22 -0
  27. package/dist/dolly-cc-system-snapshot.json +1918 -0
  28. package/dist/dolly-cmake-build-system-snapshot.json +6588 -0
  29. package/dist/dolly-cmake-system-snapshot.json +4434 -0
  30. package/dist/dolly-curl-system-snapshot.json +73 -0
  31. package/dist/dolly-display-system-snapshot.json +111 -0
  32. package/dist/dolly-ghostty-build-system-snapshot.json +3541 -0
  33. package/dist/dolly-git-system-snapshot.json +137 -0
  34. package/dist/dolly-gzip-system-snapshot.json +69 -0
  35. package/dist/dolly-images.json +871 -0
  36. package/dist/dolly-libdolly-display-system-snapshot.json +57 -0
  37. package/dist/dolly-libdolly-input-system-snapshot.json +57 -0
  38. package/dist/dolly-libdolly-pty-system-snapshot.json +57 -0
  39. package/dist/dolly-libdolly-sockets-system-snapshot.json +57 -0
  40. package/dist/dolly-libevent-system-snapshot.json +164 -0
  41. package/dist/dolly-libterminfo-system-snapshot.json +148 -0
  42. package/dist/dolly-libuv-system-snapshot.json +162 -0
  43. package/dist/dolly-make-system-snapshot.json +57 -0
  44. package/dist/dolly-mandoc-system-snapshot.json +152 -0
  45. package/dist/dolly-system-build-system-snapshot.json +1947 -0
  46. package/dist/dolly-system-tools-system-snapshot.json +2275 -0
  47. package/dist/dolly-tmux-system-snapshot.json +276 -0
  48. package/dist/dolly-tools-build-system-snapshot.json +6609 -0
  49. package/dist/dolly-vi-system-snapshot.json +82 -0
  50. package/dist/dolly-zig-build-system-snapshot.json +3417 -0
  51. package/dist/dolly-zlib-system-snapshot.json +59 -0
  52. package/dist/packs/7026f8e001e3e0a68dd389200dfd417a548c0852a31a29558d3f02b44d4d8393.snapshot.gz +0 -0
  53. package/package.json +12 -4
@@ -0,0 +1,205 @@
1
+ DOLLY 8
2
+ TOOLCHAIN system-tools
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST display@0
5
+ REQUIRES HOST input@0
6
+ REQUIRES HOST threads@0
7
+
8
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
9
+ # Unchanged upstream sbase commands, built by sbase's own Makefile.
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL cc
13
+ REQUIRES TOOL make
14
+ REQUIRES TOOL mv
15
+ REQUIRES TOOL rm
16
+ REQUIRES TOOL tar
17
+
18
+ SOURCE /dist/static/default/sbase.tar 23daa7bd6d5169ba5ad4a9801fe039ba28b103e3dbb74583fccb48f3333253eb /tmp/sbase.tar
19
+ SLOP tar \
20
+ -xf /tmp/sbase.tar \
21
+ -C /
22
+
23
+ FILE /tmp/sbase/dolly.mk
24
+ TOOLS = basename cksum cmp comm cut date dd dirname expand expr false fold \
25
+ grep head join kill ln md5sum mktemp nl od paste pathchk \
26
+ printenv readlink rmdir sed seq sha256sum sort split \
27
+ strings tail tee tr true \
28
+ tsort uname unexpand uniq wc which
29
+ .RECIPEPREFIX := >
30
+ dolly-bin: $(TOOLS)
31
+ >mv $(TOOLS) /bin
32
+ >mv $(TOOLS:=.1) /usr/share/man/man1
33
+ .RECIPEPREFIX :=
34
+ include Makefile
35
+ SLOP make \
36
+ -C /tmp/sbase \
37
+ -f dolly.mk \
38
+ CFLAGS=-O2 \
39
+ ARFLAGS=rc \
40
+ RANLIB=:
41
+
42
+ EXPORTS TOOL basename
43
+ EXPORTS TOOL cksum
44
+ EXPORTS TOOL cmp
45
+ EXPORTS TOOL comm
46
+ EXPORTS TOOL cut
47
+ EXPORTS TOOL date
48
+ EXPORTS TOOL dd
49
+ EXPORTS TOOL dirname
50
+ EXPORTS TOOL expand
51
+ EXPORTS TOOL expr
52
+ EXPORTS TOOL false
53
+ EXPORTS TOOL fold
54
+ EXPORTS TOOL grep
55
+ EXPORTS TOOL head
56
+ EXPORTS TOOL join
57
+ EXPORTS TOOL kill
58
+ EXPORTS TOOL ln
59
+ EXPORTS TOOL md5sum
60
+ EXPORTS TOOL mktemp
61
+ EXPORTS TOOL nl
62
+ EXPORTS TOOL od
63
+ EXPORTS TOOL paste
64
+ EXPORTS TOOL pathchk
65
+ EXPORTS TOOL printenv
66
+ EXPORTS TOOL readlink
67
+ EXPORTS TOOL rmdir
68
+ EXPORTS TOOL sed
69
+ EXPORTS TOOL seq
70
+ EXPORTS TOOL sha256sum
71
+ EXPORTS TOOL sort
72
+ EXPORTS TOOL split
73
+ EXPORTS TOOL strings
74
+ EXPORTS TOOL tail
75
+ EXPORTS TOOL tee
76
+ EXPORTS TOOL tr
77
+ EXPORTS TOOL true
78
+ EXPORTS TOOL tsort
79
+ EXPORTS TOOL uname
80
+ EXPORTS TOOL unexpand
81
+ EXPORTS TOOL uniq
82
+ EXPORTS TOOL wc
83
+ EXPORTS TOOL which
84
+
85
+ FILE /usr/share/licenses/sbase/LICENSE
86
+
87
+ SLOP rm \
88
+ -rf \
89
+ /tmp/sbase \
90
+ /tmp/sbase.tar
91
+ # Samurai, a compact Ninja-compatible executor, unchanged: its jobs start
92
+ # through posix_spawn.
93
+ REQUIRES HEADER runtime
94
+
95
+ SOURCE /dist/static/default/samurai.tar df4d14af0e48a206d1ccc175f134c3c81b6601b3d243b24561b1927ecd0afc45 /tmp/ninja/samurai.tar
96
+
97
+ SLOP tar \
98
+ -xf /tmp/ninja/samurai.tar \
99
+ -C /
100
+ SLOP CWD /tmp/ninja/source cc -O1 -std=c99 -D_POSIX_C_SOURCE=200809L -I /tmp/ninja/source \
101
+ build.c deps.c env.c graph.c htab.c log.c parse.c samu.c scan.c tool.c tree.c util.c os-posix.c -o /usr/bin/ninja
102
+
103
+ EXPORTS TOOL ninja
104
+
105
+ SLOP ninja \
106
+ --version
107
+ SLOP cp /tmp/ninja/source/samu.1 /usr/share/man/man1/ninja.1
108
+
109
+ FILE /usr/share/licenses/samurai/LICENSE
110
+
111
+ SLOP rm \
112
+ -rf \
113
+ /tmp/ninja
114
+ # zlib and gzip for builds, and Git, which Dolly's patch and diff run.
115
+ INSTALL /Dollyfile-zlib acf8f8daaba24468b5b521bbb4d4ba3e034fe28d7a2d92fc680d2e39a1cea971
116
+ INSTALL /Dollyfile-gzip cef69a22c3b9f73889f4c819fcfaee2fb4487474ea4efa364117b8796465d1a4
117
+ INSTALL /Dollyfile-git beec0dcd0aadae135004bdad2dc5ca42ae35cbf06eb67475d0c57e9185bd4f76
118
+ SOURCE /dist/static/default/awk.tar f28cae177fa60793a70066d10667e8d06775d979f2262be1c48f8eb941090015 /tmp/awk.tar
119
+ SLOP tar \
120
+ -xf /tmp/awk.tar \
121
+ -C /
122
+
123
+ FILE /tmp/awk/Makefile
124
+ .RECIPEPREFIX := >
125
+ SOURCES := /usr/src/awk/awkgram.tab.c /usr/src/awk/b.c /usr/src/awk/main.c /usr/src/awk/parse.c /usr/src/awk/proctab.c /usr/src/awk/tran.c /usr/src/awk/lib.c /usr/src/awk/run.c /usr/src/awk/lex.c
126
+ all: /bin/awk
127
+ /usr/libexec/dolly/awk-maketab: /usr/src/awk/maketab.c
128
+ >cc -std=gnu99 -I /usr/src/awk -DNDEBUG $< -o $@
129
+ /usr/src/awk/proctab.c: /usr/libexec/dolly/awk-maketab /usr/src/awk/awkgram.tab.h
130
+ >/usr/libexec/dolly/awk-maketab /usr/src/awk/awkgram.tab.h > $@
131
+ /bin/awk: $(SOURCES)
132
+ >cc -std=gnu99 -fno-builtin -I /usr/src/awk -D_DEFAULT_SOURCE -DNDEBUG $^ -o $@
133
+ SLOP CWD /usr/src/awk make \
134
+ -f /tmp/awk/Makefile
135
+
136
+ EXPORTS TOOL awk
137
+ FILE /usr/share/licenses/awk/LICENSE
138
+
139
+ SLOP awk \
140
+ --version
141
+
142
+ SLOP rm \
143
+ -rf \
144
+ /tmp/awk \
145
+ /tmp/awk.tar \
146
+ /usr/libexec/dolly/awk-maketab \
147
+ /usr/src/awk
148
+ # Dolly's own commands beside sbase's, from programs/commands.
149
+ SOURCE /dist/static/default/commands/run-program.h e73415ba149e8dcb9944313c36d8d2319202d699c810e02a26d5a94caa8f3a9f /tmp/agent-tools/run-program.h
150
+ SOURCE /dist/static/default/commands/path.h 48c3a1e853aa273106234c8cdbbcae7d54c2f68f477373e0712d5e4748a9b788 /tmp/agent-tools/path.h
151
+ SOURCE /dist/static/default/commands/install.c 3948856ced1cb979eba94360d8b726b0a4ab785f21fc6508181e6fddce6d861e /tmp/agent-tools/install.c
152
+ SOURCE /dist/static/default/commands/du.c e2c54482b13af2a7af18c5a7ff9695816443e8fd9197c8b2e4891a645cd2723a /tmp/agent-tools/du.c
153
+ SOURCE /dist/static/default/commands/rev.c 3539529d49f26629a6518437dc76631f113bcc5822ff5dbc8aa26481933f3d05 /tmp/agent-tools/rev.c
154
+ SOURCE /dist/static/default/commands/command.c a84673243407a37f42b1a82a47fab4123c165b383761642874ba2ec081938bd3 /tmp/agent-tools/command.c
155
+ SOURCE /dist/static/default/commands/xargs.c 13a9340a4f6539e2434ef257bb2d4c5d871f4b33deeb2627002fca6752d29034 /tmp/agent-tools/xargs.c
156
+ SOURCE /dist/static/default/commands/find.c 737d431d57cd50f769cbc1a4e36076af1033590a8cc51053bcc5672f48545f59 /tmp/agent-tools/find.c
157
+ SOURCE /dist/static/default/commands/env.c 62c71b67f4623f7b2f253c5474ff8745ed335325ed0392b992e4adc8653a6902 /tmp/agent-tools/env.c
158
+ SOURCE /dist/static/default/commands/time.c bb49a29e708e9e32716e2d5bf4b4b4e662b07093d0e3731588ef7d41a53ad733 /tmp/agent-tools/time.c
159
+ SOURCE /dist/static/default/commands/timeout.c 29469d957ff5fb2e2f0deb5a62c8cbe84aa46a9e7afbb964690f5a9819cb9b83 /tmp/agent-tools/timeout.c
160
+ SOURCE /dist/static/default/commands/realpath.c 6ec82439ecf3ab1d21a40293ab7e585972c523d8c8e4573a60a7cef86af08250 /tmp/agent-tools/realpath.c
161
+ SOURCE /dist/static/default/commands/hostname.c 14a20a493c8559d8b28f221a6edd9b6f89f893f3e3067093b44d7235b4ae060f /tmp/agent-tools/hostname.c
162
+ SOURCE /dist/static/default/commands/tty.c c51c9598e8245d5f651ade70995f2b03fb936c42a0e99c4c81c83749c5714c7e /tmp/agent-tools/tty.c
163
+ SOURCE /dist/static/default/commands/nproc.c 462121be10de74053f49d96a96ea9fdf37c9b11d0ca5cbcf3bc786468b675c8e /tmp/agent-tools/nproc.c
164
+
165
+ FILE /tmp/agent-tools/Makefile
166
+ .RECIPEPREFIX := >
167
+ NAMES := install du rev command xargs find env time timeout realpath hostname tty nproc
168
+ TOOLS := $(addprefix /bin/,$(NAMES))
169
+ all: $(TOOLS) $(NAMES:%=/usr/share/man/cat1/%.1)
170
+ /bin/%: /tmp/agent-tools/%.c /tmp/agent-tools/run-program.h /tmp/agent-tools/path.h
171
+ >cc -O2 $< -o $@
172
+ /usr/share/man/cat1/%.1: /bin/%
173
+ >$< --help > $@
174
+ SLOP make \
175
+ -f /tmp/agent-tools/Makefile
176
+
177
+ EXPORTS TOOL install
178
+ EXPORTS TOOL du
179
+ EXPORTS TOOL rev
180
+ EXPORTS TOOL command
181
+ EXPORTS TOOL xargs
182
+ EXPORTS TOOL find
183
+ EXPORTS TOOL env
184
+ EXPORTS TOOL time
185
+ EXPORTS TOOL timeout
186
+ EXPORTS TOOL realpath
187
+ EXPORTS TOOL hostname
188
+ EXPORTS TOOL tty
189
+ EXPORTS TOOL nproc
190
+
191
+ SLOP rm \
192
+ -rf \
193
+ /tmp/agent-tools
194
+ # Conventional pathname for upstream scripts; the implementation is Slop.
195
+ REQUIRES TOOL ln
196
+ SLOP ln -s slop /bin/sh
197
+ EXPORTS TOOL sh
198
+ # And env's, which upstream scripts name in #!/usr/bin/env: an image's files are executable.
199
+ SLOP ln -s /bin/env /usr/bin/env
200
+ FILE /usr/bin/env
201
+ SLOP cp /usr/share/man/cat1/slop.1 /usr/share/man/cat1/sh.1
202
+ FOLDER /usr/share/man
203
+ INSTALL /Dollyfile-display a03812d93e51c6338e43063f954fb9492ee0535f94a39e5c377d504a3d9eedb8
204
+
205
+ ENTRY /bin/foreground -i /bin/slop
package/Dollyfile-vi ADDED
@@ -0,0 +1,67 @@
1
+ DOLLY 8
2
+ PACKAGE vi
3
+ REQUIRES HOST runtime@0
4
+
5
+ # Neatvi, a small vi and ex, from the files of upstream's tagged archive,
6
+ # unchanged, by the rules of its Makefile. It draws with escape sequences of
7
+ # its own and reads no terminal database. Its ! commands and language servers
8
+ # start by fork, which fails here, and it says so. It is Git's editor, so it
9
+ # is built where Git is, without the tools Git comes with: ex is vi -e.
10
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
11
+ USE /Dollyfile-gzip cef69a22c3b9f73889f4c819fcfaee2fb4487474ea4efa364117b8796465d1a4
12
+
13
+ REQUIRES HEADER libc
14
+ REQUIRES TOOL cat
15
+ REQUIRES TOOL cc
16
+ REQUIRES TOOL cp
17
+ REQUIRES TOOL gzip
18
+ REQUIRES TOOL make
19
+ REQUIRES TOOL mkdir
20
+ REQUIRES TOOL mv
21
+ REQUIRES TOOL printf
22
+ REQUIRES TOOL tar
23
+ REQUIRES TOOL test
24
+
25
+ SOURCE /dist/static/default/neatvi-20.tar.gz e1d9a89d770aa5bb60da472be1a526eb1d99be9267c4d6067fc625f10efc8fe5 /tmp/neatvi.tar.gz
26
+ SLOP gzip -dc /tmp/neatvi.tar.gz | tar -xf - -C /tmp && mv /tmp/neatvi-20 /tmp/neatvi
27
+
28
+ FILE /tmp/vi.mk
29
+ .RECIPEPREFIX := >
30
+ S := /tmp/neatvi
31
+ BIN := /usr/bin
32
+ NAMES := vi ex lbuf mot sbuf ren dir syn reg led uc term rset rstr regex cmd tag conf lsp json
33
+ $(BIN)/vi: $(addprefix $S/,$(addsuffix .o,$(NAMES)))
34
+ >cc $^ -o $@
35
+ $S/%.o: $S/%.c $S/vi.h $S/conf.h $S/kmap.h
36
+ >cc -O2 -c $< -o $@
37
+ SLOP make -j4 -f /tmp/vi.mk
38
+ FILE /usr/bin/ex
39
+ #!/bin/slop
40
+ exec vi -e "$@"
41
+ # Neatvi ships no licence file or manual page: its sources open with the
42
+ # licence, which ex writes out, and its README is the manual.
43
+ SLOP mkdir -p /usr/share/licenses/vi /usr/share/doc/vi && cp /tmp/neatvi/README /usr/share/doc/vi/README
44
+ SLOP printf '%s\n' '2,16w /usr/share/licenses/vi/LICENSE' 'q' | ex -s /tmp/neatvi/vi.c > /dev/null
45
+
46
+ SLOP printf 'one\ntwo\n' > /tmp/vi-check && printf '%s\n' '%s/two/2/' 'w' 'q' | ex -s /tmp/vi-check > /dev/null && test "$(cat /tmp/vi-check)" = "$(printf 'one\n2')"
47
+
48
+ EXPORTS TOOL vi
49
+ EXPORTS TOOL ex
50
+ FILE /usr/share/licenses/vi/LICENSE
51
+ FILE /usr/share/doc/vi/README
52
+ # Neatvi has no --help, so its page begins with a title, as upstream's pages do.
53
+ FILE /usr/share/man/cat1/vi.1
54
+ VI(1), EX(1)
55
+
56
+ vi, ex: Neatvi, a small vi with an ex mode, from upstream's files unchanged.
57
+
58
+ vi FILE... edits the files
59
+ ex FILE... edits them in ex mode
60
+ :wq writes and leaves; :q! leaves without writing.
61
+
62
+ It draws with escape sequences of its own and needs no terminal database.
63
+ What starts another program (:!, a filter through a command, a language
64
+ server) needs fork, which Dolly does not have: it fails and says so.
65
+ Upstream's README lists the commands and options: /usr/share/doc/vi/README.
66
+ SLOP cp /usr/share/man/cat1/vi.1 /usr/share/man/cat1/ex.1
67
+ FILE /usr/share/man/cat1/ex.1
@@ -0,0 +1,154 @@
1
+ DOLLY 8
2
+ TOOLCHAIN zig-build
3
+ REQUIRES HOST runtime@0
4
+
5
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
6
+
7
+ # Zig from its source archive with only Dolly's cc, following upstream
8
+ # bootstrap.c with two substitutions. WAMR runs the zig1.wasm seed instead of
9
+ # wasm2c + cc, whose code overflows a browser Worker's native stack. zig2 keeps
10
+ # only the C backend (/tmp/zig/config.zig), the one that yields Dolly objects
11
+ # without LLVM: this zig emits C for cc and has no `zig build` or `zig cc`.
12
+ REQUIRES HEADER libc
13
+ REQUIRES TOOL cc
14
+ REQUIRES TOOL tar
15
+
16
+ SOURCE /dist/static/default/zig.tar 4cec52ed75d44c9fcbf52f9c61594c7be1f7ae5dd48b1c74d8c64fb773c670d8 /tmp/zig.tar
17
+ SOURCE /dist/static/default/wamr.tar d35ec64a48e61f6a65397d3d9f13823735a94623a9dcd007b093279e5e0e3615 /tmp/wamr.tar
18
+ SLOP tar \
19
+ -xf /tmp/zig.tar \
20
+ -C /
21
+ SLOP tar \
22
+ -xf /tmp/wamr.tar \
23
+ -C /
24
+
25
+ # WAMR's target is WebAssembly (config/wamr-dolly.patch), which has no native
26
+ # calling convention: only raw natives can be called, and zig1 binds only those.
27
+ SLOP CWD /tmp/wamr/core cc \
28
+ -O2 \
29
+ -std=gnu99 \
30
+ -fno-strict-aliasing \
31
+ -w \
32
+ -D_PLATFORM_WASI_TYPES_H \
33
+ -DBH_PLATFORM_DOLLY \
34
+ -DBH_MALLOC=wasm_runtime_malloc \
35
+ -DBH_FREE=wasm_runtime_free \
36
+ -DWA_MALLOC=wasm_runtime_malloc \
37
+ -DWA_FREE=wasm_runtime_free \
38
+ -DWASM_ENABLE_INTERP=1 \
39
+ -DWASM_ENABLE_FAST_INTERP=1 \
40
+ -DWASM_ENABLE_LABELS_AS_VALUES=0 \
41
+ -DWASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS=0 \
42
+ -DWASM_ENABLE_BULK_MEMORY=1 \
43
+ -DWASM_ENABLE_BULK_MEMORY_OPT=1 \
44
+ -DWASM_ENABLE_SHRUNK_MEMORY=1 \
45
+ -DWASM_DISABLE_HW_BOUND_CHECK=1 \
46
+ -DWASM_DISABLE_STACK_HW_BOUND_CHECK=1 \
47
+ -DWASM_DISABLE_WRITE_GS_BASE=1 \
48
+ -DWASM_DISABLE_WAKEUP_BLOCKING_OP=1 \
49
+ -DWASM_ENABLE_SHARED_MEMORY=0 \
50
+ -DWASM_ENABLE_MULTI_MODULE=0 \
51
+ -DWASM_ENABLE_MINI_LOADER=0 \
52
+ -DWASM_ENABLE_REF_TYPES=0 \
53
+ -DWASM_ENABLE_SIMD=0 \
54
+ -DWASM_ENABLE_EXTENDED_CONST_EXPR=0 \
55
+ -DWASM_ENABLE_MEMORY64=0 \
56
+ -I /tmp/wamr \
57
+ -I /tmp/zig/stage1 \
58
+ -I shared/platform/include \
59
+ -I shared/utils \
60
+ -I shared/mem-alloc \
61
+ -I iwasm/include \
62
+ -I iwasm/common \
63
+ -I iwasm/interpreter \
64
+ /tmp/wamr/zig1.c \
65
+ /tmp/wamr/wamr-platform.c \
66
+ shared/mem-alloc/mem_alloc.c \
67
+ shared/mem-alloc/ems/ems_alloc.c \
68
+ shared/mem-alloc/ems/ems_gc.c \
69
+ shared/mem-alloc/ems/ems_hmu.c \
70
+ shared/mem-alloc/ems/ems_kfc.c \
71
+ shared/utils/bh_assert.c \
72
+ shared/utils/bh_bitmap.c \
73
+ shared/utils/bh_common.c \
74
+ shared/utils/bh_hashmap.c \
75
+ shared/utils/bh_leb128.c \
76
+ shared/utils/bh_list.c \
77
+ shared/utils/bh_log.c \
78
+ shared/utils/bh_queue.c \
79
+ shared/utils/bh_vector.c \
80
+ shared/utils/runtime_timer.c \
81
+ iwasm/common/wasm_application.c \
82
+ iwasm/common/wasm_blocking_op.c \
83
+ iwasm/common/wasm_c_api.c \
84
+ iwasm/common/wasm_exec_env.c \
85
+ iwasm/common/wasm_loader_common.c \
86
+ iwasm/common/wasm_memory.c \
87
+ iwasm/common/wasm_native.c \
88
+ iwasm/common/wasm_runtime_common.c \
89
+ iwasm/common/wasm_shared_memory.c \
90
+ iwasm/interpreter/wasm_interp_fast.c \
91
+ iwasm/interpreter/wasm_loader.c \
92
+ iwasm/interpreter/wasm_runtime.c \
93
+ -o /tmp/zig/zig1
94
+
95
+ # zig1's WASI adapter reaches only its working directory and lib argument.
96
+ SLOP CWD / /tmp/zig/zig1 \
97
+ /tmp/zig/stage1/zig1.wasm \
98
+ /usr/lib/zig \
99
+ build-exe \
100
+ -target wasm64-emscripten \
101
+ -mcpu=generic+atomics \
102
+ -fsingle-threaded \
103
+ -OReleaseSmall \
104
+ -ofmt=c \
105
+ -lc \
106
+ --name zig2 \
107
+ -femit-bin=tmp/zig/zig2.c \
108
+ --dep build_options \
109
+ -Mroot=tmp/zig/src/main.zig \
110
+ -Mbuild_options=tmp/zig/config.zig
111
+ SLOP CWD / /tmp/zig/zig1 \
112
+ /tmp/zig/stage1/zig1.wasm \
113
+ /usr/lib/zig \
114
+ build-obj \
115
+ -target wasm64-emscripten \
116
+ -mcpu=generic+atomics \
117
+ -fsingle-threaded \
118
+ -OReleaseSmall \
119
+ -ofmt=c \
120
+ --name compiler_rt \
121
+ -femit-bin=tmp/zig/compiler_rt.c \
122
+ -Mroot=usr/lib/zig/compiler_rt.zig
123
+
124
+ # zig.h passes usize (unsigned long) as uint64_t * (unsigned long long *) and,
125
+ # not recognizing Clang's wasm memory builtins, names an undefined
126
+ # zig_unimplemented().
127
+ SLOP CWD /tmp/zig cc \
128
+ -c \
129
+ -O2 \
130
+ -std=c99 \
131
+ -fno-strict-aliasing \
132
+ -Wno-incompatible-pointer-types \
133
+ '-Dzig_unimplemented()=(__builtin_trap(),0)' \
134
+ -I /usr/lib/zig \
135
+ -o zig2.o \
136
+ zig2.c
137
+ SLOP CWD /tmp/zig cc \
138
+ -c \
139
+ -O2 \
140
+ -std=c99 \
141
+ -fno-strict-aliasing \
142
+ -Wno-incompatible-pointer-types \
143
+ -I /usr/lib/zig \
144
+ -o compiler_rt.o \
145
+ compiler_rt.c
146
+ SLOP CWD /tmp/zig cc \
147
+ -o /usr/bin/zig \
148
+ zig2.o \
149
+ compiler_rt.o
150
+
151
+ EXPORTS TOOL zig
152
+ EXPORTS FOLDER zig-lib /usr/lib/zig
153
+ EXPORTS ENV ZIG_LIB_DIR /usr/lib/zig
154
+ FILE /usr/share/licenses/zig/LICENSE
package/Dollyfile-zlib ADDED
@@ -0,0 +1,48 @@
1
+ DOLLY 8
2
+ PACKAGE zlib
3
+ REQUIRES HOST runtime@0
4
+
5
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
6
+
7
+ REQUIRES HEADER libc
8
+ REQUIRES TOOL ar
9
+ REQUIRES TOOL cc
10
+ REQUIRES TOOL make
11
+ REQUIRES TOOL rm
12
+ REQUIRES TOOL tar
13
+
14
+ SOURCE /dist/static/default/zlib.tar 3ff2e65dc35be0baa91250384dbe2b0d7c16aa73496dc20eeca86221588ead73 /tmp/zlib.tar
15
+ SLOP tar \
16
+ -xf /tmp/zlib.tar \
17
+ -C /
18
+
19
+ FILE /tmp/zlib/Makefile
20
+ .RECIPEPREFIX := >
21
+ CC := cc
22
+ AR := ar
23
+ NAMES := adler32 compress crc32 deflate gzclose gzlib gzread gzwrite infback inffast inflate inftrees trees uncompr zutil
24
+ OBJECTS := $(addprefix /tmp/zlib/,$(addsuffix .o,$(NAMES)))
25
+ all: /usr/lib/libz.a
26
+ /tmp/zlib/%.o: /usr/src/zlib/%.c
27
+ >$(CC) -std=c17 -O2 -I /usr/src/zlib -DZ_HAVE_UNISTD_H -c $< -o $@
28
+ /usr/lib/libz.a: $(OBJECTS)
29
+ >$(AR) rcs $@ $^
30
+ SLOP CWD /usr/src/zlib make \
31
+ -f /tmp/zlib/Makefile
32
+
33
+ EXPORTS LIB z /usr/lib/libz.a
34
+ EXPORTS HEADER zlib /usr/include/zlib.h
35
+ EXPORTS HEADER zconf /usr/include/zconf.h
36
+ FILE /usr/share/licenses/zlib/LICENSE
37
+ # What pkg-config tells a build that asks for zlib.
38
+ FILE /usr/lib/pkgconfig/zlib.pc
39
+ Name: zlib
40
+ Description: zlib compression library
41
+ Version: 1.3.2
42
+ Libs: -lz
43
+
44
+ SLOP rm \
45
+ -rf \
46
+ /tmp/zlib \
47
+ /tmp/zlib.tar \
48
+ /usr/src/zlib
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
- # Temporary Holding Version
1
+ # @daugasauron/dolly-package-tmux
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Dolly's `tmux` package, for an image of your own. tmux, the terminal multiplexer.
4
+ `npx dolly-build init NAME tmux` writes a project whose recipe `INSTALL`s it with Pi's packages, and
5
+ `npx dolly-build add NAME tmux` adds it to a project's recipe (@daugasauron/dolly-build's README). Either
6
+ installs this package, the packages it installs and the host modules it declares, at
7
+ `dolly-build`'s version.
8
+
9
+ The image holds programs built inside Dolly from their upstream sources, each under its own
10
+ licence: their licence texts are in the image under `/usr/share/licenses` (a Python library's in
11
+ its `.dist-info`), and Dolly's `docs/licences.md` lists every upstream
12
+ (https://github.com/daugasauron/dolly).
package/amy-index.txt ADDED
@@ -0,0 +1 @@
1
+ tmux /demos/tmux/Dollyfile-tmux 2c7ca6ad4397645fddb2a52a021939a1d83a76a480e559c4f0b51a6b0208df7f tmux, the terminal multiplexer.
@@ -0,0 +1,80 @@
1
+ DOLLY 8
2
+ PACKAGE cmake
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST http@0
5
+
6
+ # CMake bootstrapped from upstream's source inside Dolly, on the libuv package,
7
+ # which it links statically (USE); cmake-build installs it for the CMake builds
8
+ # that start from it.
9
+ FROM /Dollyfile-system-tools 7dc08859cff6c590c9bf42278822be15b530cc9d18438481449469995c2bf8fe
10
+ USE /Dollyfile-curl bce8c6fafa9e15aa65c9804fc4fec07a309e6174c8e1cb80b7396ac6e458431e
11
+ USE /demos/cmake/Dollyfile-libuv 03fe69ffa4ef7957cfb55b00d5514bd1b1868a8dc5ca8f87d4d74efa987fa95e
12
+ # Configuring runs the C compiler and building runs make.
13
+ INSTALL /Dollyfile-cc 3c50048026aec1c0c21ac6c0b74d93f53b5c0a3fa83b5c9930d86924a3b59eaa
14
+ REQUIRES HEADER libc
15
+ REQUIRES HEADER runtime
16
+ REQUIRES HEADER cpp
17
+ REQUIRES HEADER uv
18
+ REQUIRES LIB c++
19
+ REQUIRES LIB c++abi
20
+ REQUIRES LIB uv
21
+ REQUIRES LIB curl
22
+ REQUIRES LIB z
23
+ REQUIRES TOOL cc
24
+ REQUIRES TOOL c++
25
+ REQUIRES TOOL ar
26
+ REQUIRES TOOL make
27
+ REQUIRES TOOL cp
28
+ REQUIRES TOOL tar
29
+ REQUIRES TOOL rm
30
+ REQUIRES TOOL sh
31
+ REQUIRES TOOL gzip
32
+ REQUIRES TOOL mkdir
33
+ REQUIRES TOOL cat
34
+ REQUIRES TOOL dirname
35
+ REQUIRES TOOL diff
36
+ REQUIRES TOOL echo
37
+ REQUIRES TOOL false
38
+ REQUIRES TOOL grep
39
+ REQUIRES TOOL printf
40
+ REQUIRES TOOL pwd
41
+ REQUIRES TOOL sed
42
+ REQUIRES TOOL test
43
+ REQUIRES TOOL tr
44
+ REQUIRES TOOL true
45
+ REQUIRES TOOL uname
46
+ REQUIRES TOOL which
47
+
48
+ SOURCE /dist/static/cmake/cmake.tar.gz e49a4a2cd7ed5ff7fb2b8a7bf3a0ce1a61b7dd444b20604075e2152f158c4a41 /tmp/cmake/source.tar.gz
49
+ SLOP gzip -dc /tmp/cmake/source.tar.gz | tar -xf - -C /
50
+
51
+ FILE /tmp/cmake/build.slop
52
+ set -ex
53
+ cd /tmp/cmake/source
54
+ CC=cc CXX=c++ CFLAGS=-O2 CXXFLAGS='-O2 -std=c++17' slop bootstrap \
55
+ --prefix=/usr --parallel=4 --bootstrap-system-libuv \
56
+ --system-libuv --system-curl --system-zlib --no-qt-gui --no-debugger \
57
+ -- -DBUILD_TESTING=OFF -DBUILD_CursesDialog=OFF -DCMAKE_USE_OPENSSL=OFF \
58
+ -DCMake_INSTALL_COMPONENTS=ON \
59
+ -DCMAKE_BUILD_TYPE=Release
60
+ make -j4 cmake
61
+ ./bin/cmake --install . --component cmake
62
+ ./bin/cmake --install . --component Unspecified
63
+ cmake --version
64
+ SLOP slop -e /tmp/cmake/build.slop
65
+ SLOP rm -rf /tmp/cmake
66
+
67
+ EXPORTS TOOL cmake
68
+ EXPORTS FOLDER cmake-data /usr/share/cmake-4.4
69
+ FILE /usr/share/licenses/cmake/LICENSE.rst
70
+ FILE /usr/share/licenses/libuv/LICENSE
71
+ FILE /usr/share/man/cat1/cmake.1
72
+ cmake: CMake bootstrapped from upstream's source inside Dolly, with the cc
73
+ package it configures and builds with.
74
+
75
+ cmake -S . -B build configures, for Unix Makefiles
76
+ cmake --build build builds through make
77
+ cmake --help every option
78
+
79
+ The platform is Dolly's (Platform/Dolly.cmake): CMAKE_SYSTEM_NAME is Dolly.
80
+ Upstream's documentation: https://cmake.org/cmake/help/latest/
@@ -0,0 +1,15 @@
1
+ DOLLY 8
2
+ TOOLCHAIN cmake-build
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST display@0
5
+ REQUIRES HOST input@0
6
+ REQUIRES HOST http@0
7
+ REQUIRES HOST threads@0
8
+
9
+ # The base of CMake builds: the system's tools, libuv and the cmake package,
10
+ # which holds CMake's own build.
11
+ FROM /Dollyfile-system-tools 7dc08859cff6c590c9bf42278822be15b530cc9d18438481449469995c2bf8fe
12
+ INSTALL /demos/cmake/Dollyfile-libuv 03fe69ffa4ef7957cfb55b00d5514bd1b1868a8dc5ca8f87d4d74efa987fa95e
13
+ INSTALL /demos/cmake/Dollyfile-cmake 938a1ddde5d6fec99b30881f0487dbe96128d70c7c7f6a6676e6c3eea0764dcc
14
+
15
+ ENTRY /bin/foreground -i /bin/slop
@@ -0,0 +1,44 @@
1
+ DOLLY 8
2
+ PACKAGE libuv
3
+ REQUIRES HOST runtime@0
4
+
5
+ # libuv's sources from upstream's release with Dolly's port (libuv/, see
6
+ # README.md), built by libuv-dolly.mk: CMake and Neovim are built on it, and
7
+ # programs the cc package builds link it.
8
+ FROM /Dollyfile-system-tools 7dc08859cff6c590c9bf42278822be15b530cc9d18438481449469995c2bf8fe
9
+ REQUIRES HEADER libc
10
+ REQUIRES TOOL cc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL make
13
+ REQUIRES TOOL cp
14
+ REQUIRES TOOL tar
15
+ REQUIRES TOOL rm
16
+
17
+ SOURCE /dist/static/cmake/libuv.tar 857fd4de59b9d4bbbba20798d6b2e922bbc9773a07e9d563ad0363a3033c9fd1 /tmp/libuv/source.tar
18
+ SLOP tar -xf /tmp/libuv/source.tar -C /
19
+ SLOP make -C /tmp/libuv
20
+ SLOP cp /tmp/libuv/libuv.a /usr/lib/libuv.a
21
+ SLOP cp -R /tmp/libuv/source/include/. /usr/include
22
+
23
+ FILE /tmp/libuv/check.c
24
+ #include <uv.h>
25
+ #include <assert.h>
26
+ static int completed;
27
+ static void done(uv_timer_t* timer) { completed = 1; uv_close((uv_handle_t*)timer, 0); }
28
+ int main(void) {
29
+ uv_loop_t loop; uv_timer_t timer;
30
+ assert(uv_get_total_memory() == 0);
31
+ assert(uv_loop_init(&loop) == 0 && uv_timer_init(&loop, &timer) == 0);
32
+ assert(uv_timer_start(&timer, done, 1, 0) == 0);
33
+ assert(uv_run(&loop, UV_RUN_DEFAULT) == 0 && completed);
34
+ return uv_loop_close(&loop);
35
+ }
36
+ SLOP cc -O0 /tmp/libuv/check.c -luv -o /tmp/libuv/check
37
+ SLOP /tmp/libuv/check
38
+
39
+ EXPORTS LIB uv /usr/lib/libuv.a
40
+ EXPORTS HEADER uv /usr/include/uv.h
41
+ EXPORTS HEADER uv-platform /usr/include/uv
42
+ FILE /usr/share/licenses/libuv/LICENSE
43
+
44
+ SLOP rm -rf /tmp/libuv