@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,144 @@
1
+ DOLLY 8
2
+ PACKAGE libevent
3
+ REQUIRES HOST runtime@0
4
+
5
+ # libevent's core from upstream's release archive, unchanged: the event loop
6
+ # over poll, buffers and listeners, for programs the cc package builds
7
+ # (-levent_core). A program that gives it sockets links -ldolly-sockets too.
8
+ FROM /Dollyfile-system-tools 7dc08859cff6c590c9bf42278822be15b530cc9d18438481449469995c2bf8fe
9
+
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL cc
13
+ REQUIRES TOOL cp
14
+ REQUIRES TOOL gzip
15
+ REQUIRES TOOL make
16
+ REQUIRES TOOL mkdir
17
+ REQUIRES TOOL tar
18
+
19
+ SOURCE /dist/static/tmux/libevent-2.1.13-stable.tar.gz f7e9383b8c0baa81b687e5b5eecc01beefaf1b19b64151d95ed61647fe7a315c /tmp/libevent.tar.gz
20
+ SLOP gzip -dc /tmp/libevent.tar.gz | tar -xf - -C /tmp
21
+
22
+ # Slop does not run upstream's configure script, so these say what it would
23
+ # find here. Not claimed: epoll and select (libevent polls), threads,
24
+ # sendfile, and getrandom, which libc declares but does not define.
25
+ FILE /tmp/libevent-2.1.13-stable/evconfig-private.h
26
+ #define _GNU_SOURCE 1
27
+ FILE /tmp/libevent-2.1.13-stable/include/event2/event-config.h
28
+ #ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_
29
+ #define EVENT2_EVENT_CONFIG_H_INCLUDED_
30
+ #define EVENT__NUMERIC_VERSION 0x02010d00
31
+ #define EVENT__PACKAGE_VERSION "2.1.13"
32
+ #define EVENT__VERSION_MAJOR 2
33
+ #define EVENT__VERSION_MINOR 1
34
+ #define EVENT__VERSION_PATCH 13
35
+ #define EVENT__VERSION "2.1.13-stable"
36
+ #define EVENT__PACKAGE "libevent"
37
+ #define EVENT__DISABLE_THREAD_SUPPORT 1
38
+ #define EVENT__HAVE_ARPA_INET_H 1
39
+ #define EVENT__HAVE_CLOCK_GETTIME 1
40
+ #define EVENT__HAVE_ERRNO_H 1
41
+ #define EVENT__HAVE_FCNTL 1
42
+ #define EVENT__HAVE_FCNTL_H 1
43
+ #define EVENT__HAVE_FD_MASK 1
44
+ #define EVENT__HAVE_GETEGID 1
45
+ #define EVENT__HAVE_GETEUID 1
46
+ #define EVENT__HAVE_GETTIMEOFDAY 1
47
+ #define EVENT__HAVE_INTTYPES_H 1
48
+ #define EVENT__HAVE_NANOSLEEP 1
49
+ #define EVENT__HAVE_NETDB_H 1
50
+ #define EVENT__HAVE_NETINET_IN_H 1
51
+ #define EVENT__HAVE_PIPE 1
52
+ #define EVENT__HAVE_PIPE2 1
53
+ #define EVENT__HAVE_POLL 1
54
+ #define EVENT__HAVE_POLL_H 1
55
+ #define EVENT__HAVE_SA_FAMILY_T 1
56
+ #define EVENT__HAVE_SETFD 1
57
+ #define EVENT__HAVE_SIGACTION 1
58
+ #define EVENT__HAVE_SIGNAL 1
59
+ #define EVENT__HAVE_STDARG_H 1
60
+ #define EVENT__HAVE_STDDEF_H 1
61
+ #define EVENT__HAVE_STDINT_H 1
62
+ #define EVENT__HAVE_STDLIB_H 1
63
+ #define EVENT__HAVE_STRING_H 1
64
+ #define EVENT__HAVE_STRLCPY 1
65
+ #define EVENT__HAVE_STRSEP 1
66
+ #define EVENT__HAVE_STRTOK_R 1
67
+ #define EVENT__HAVE_STRTOLL 1
68
+ #define EVENT__HAVE_STRUCT_ADDRINFO 1
69
+ #define EVENT__HAVE_STRUCT_IN6_ADDR 1
70
+ #define EVENT__HAVE_STRUCT_SOCKADDR_IN6 1
71
+ #define EVENT__HAVE_STRUCT_SOCKADDR_STORAGE 1
72
+ #define EVENT__HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
73
+ #define EVENT__HAVE_STRUCT_SOCKADDR_UN 1
74
+ #define EVENT__HAVE_SYS_IOCTL_H 1
75
+ #define EVENT__HAVE_SYS_PARAM_H 1
76
+ #define EVENT__HAVE_SYS_RESOURCE_H 1
77
+ #define EVENT__HAVE_SYS_SOCKET_H 1
78
+ #define EVENT__HAVE_SYS_STAT_H 1
79
+ #define EVENT__HAVE_SYS_TIME_H 1
80
+ #define EVENT__HAVE_SYS_TYPES_H 1
81
+ #define EVENT__HAVE_SYS_UIO_H 1
82
+ #define EVENT__HAVE_SYS_UN_H 1
83
+ #define EVENT__HAVE_SYS_WAIT_H 1
84
+ #define EVENT__HAVE_TIMERADD 1
85
+ #define EVENT__HAVE_TIMERCMP 1
86
+ #define EVENT__HAVE_TIMERISSET 1
87
+ #define EVENT__HAVE_UINT8_T 1
88
+ #define EVENT__HAVE_UINT16_T 1
89
+ #define EVENT__HAVE_UINT32_T 1
90
+ #define EVENT__HAVE_UINT64_T 1
91
+ #define EVENT__HAVE_UINTPTR_T 1
92
+ #define EVENT__HAVE_UNISTD_H 1
93
+ #define EVENT__HAVE_USLEEP 1
94
+ #define EVENT__HAVE_VASPRINTF 1
95
+ #define EVENT__HAVE___func__ 1
96
+ #define EVENT__HAVE___FUNCTION__ 1
97
+ #define EVENT__HAVE_DECL_CTL_KERN 0
98
+ #define EVENT__HAVE_DECL_KERN_ARND 0
99
+ #define EVENT__SIZEOF_INT 4
100
+ #define EVENT__SIZEOF_LONG 8
101
+ #define EVENT__SIZEOF_LONG_LONG 8
102
+ #define EVENT__SIZEOF_OFF_T 8
103
+ #define EVENT__SIZEOF_SSIZE_T 8
104
+ #define EVENT__SIZEOF_SHORT 2
105
+ #define EVENT__SIZEOF_SIZE_T 8
106
+ #define EVENT__SIZEOF_SOCKLEN_T 4
107
+ #define EVENT__SIZEOF_VOID_P 8
108
+ #define EVENT__SIZEOF_TIME_T 8
109
+ #define EVENT__TIME_WITH_SYS_TIME 1
110
+ #define EVENT__inline inline
111
+ #endif
112
+
113
+ FILE /tmp/libevent.mk
114
+ .RECIPEPREFIX := >
115
+ .DELETE_ON_ERROR:
116
+ MAKEFLAGS += -r
117
+ E := /tmp/libevent-2.1.13-stable
118
+ # The core's sources in upstream's CMakeLists.txt without threads, and
119
+ # of the headers upstream installs those that declare them: event2's and
120
+ # the older <event.h> over them, which tmux includes. <event.h> brings
121
+ # event2/tag.h, whose functions are in upstream's extra library with DNS,
122
+ # HTTP and RPC: that one is not built.
123
+ SOURCES := buffer bufferevent bufferevent_filter bufferevent_pair bufferevent_ratelim \
124
+ bufferevent_sock event evmap evutil evutil_rand evutil_time listener log signal \
125
+ strlcpy poll
126
+ HEADERS := event evutil $(addprefix event2/,buffer buffer_compat bufferevent \
127
+ bufferevent_compat bufferevent_struct event event_compat event_struct event-config \
128
+ keyvalq_struct listener tag tag_compat util visibility)
129
+ all: /usr/lib/libevent_core.a $(addprefix /usr/include/,$(addsuffix .h,$(HEADERS)))
130
+ $(E)/%.o: $(E)/%.c
131
+ >cc -O2 -I$(E) -I$(E)/include -I$(E)/compat -c $< -o $@
132
+ /usr/lib/libevent_core.a: $(addprefix $(E)/,$(addsuffix .o,$(SOURCES)))
133
+ >ar rcs $@ $^
134
+ /usr/include/%.h: $(E)/include/%.h
135
+ >cp $< $@
136
+ SLOP mkdir -p /usr/include/event2 /usr/share/licenses/libevent
137
+ SLOP make -j4 -f /tmp/libevent.mk
138
+ SLOP cp /tmp/libevent-2.1.13-stable/LICENSE /usr/share/licenses/libevent/LICENSE
139
+
140
+ EXPORTS LIB event_core /usr/lib/libevent_core.a
141
+ EXPORTS HEADER event2 /usr/include/event2
142
+ EXPORTS HEADER event /usr/include/event.h
143
+ EXPORTS HEADER evutil /usr/include/evutil.h
144
+ FILE /usr/share/licenses/libevent/LICENSE
@@ -0,0 +1,78 @@
1
+ DOLLY 8
2
+ PACKAGE libterminfo
3
+ REQUIRES HOST runtime@0
4
+
5
+ # NetBSD's terminfo library from the netbsd-curses release, two lines fixed, for
6
+ # programs the cc package builds (-lterminfo): <term.h> and <termcap.h> over
7
+ # the terminal descriptions the library holds.
8
+ FROM /Dollyfile-system-tools 7dc08859cff6c590c9bf42278822be15b530cc9d18438481449469995c2bf8fe
9
+
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL awk
13
+ REQUIRES TOOL cat
14
+ REQUIRES TOOL cc
15
+ REQUIRES TOOL cp
16
+ REQUIRES TOOL grep
17
+ REQUIRES TOOL make
18
+ REQUIRES TOOL sed
19
+ REQUIRES TOOL sh
20
+ REQUIRES TOOL tar
21
+
22
+ SOURCE /dist/static/tmux/terminfo.tar 02f16349f246ae130a95a41ef88a78aabf7d5374d6e962ce0520dd216274edbe /tmp/terminfo.tar
23
+ SLOP tar -xf /tmp/terminfo.tar -C /
24
+
25
+ # tparm formats each number with %ld and hands it over as an int: undefined,
26
+ # and on wasm64 the other half of the long is whatever the stack held, so a
27
+ # cursor address came out as 94489280513;94489280515. onum takes the long it
28
+ # is given; the second line fails the build if upstream's text has moved.
29
+ SLOP sed -e 's/const char \*fmt, int num, size_t len/const char *fmt, long num, size_t len/' -e 's/onum(term, fmt, (int)val, olen)/onum(term, fmt, val, olen)/' /tmp/terminfo/libterminfo/tparm.c > /tmp/terminfo/tparm.c
30
+ SLOP cp /tmp/terminfo/tparm.c /tmp/terminfo/libterminfo/tparm.c
31
+ SLOP grep -q 'const char \*fmt, long num, size_t len' /tmp/terminfo/libterminfo/tparm.c && grep -q 'onum(term, fmt, val, olen)' /tmp/terminfo/libterminfo/tparm.c
32
+
33
+ # tputs hands its int (*)(int) to a writer that calls it as int (*)(int, void *):
34
+ # a call through a pointer of another type, which a Wasm call traps on (zsh's
35
+ # prompt). An adapter, beside ospeed, calls it as what it is.
36
+ SLOP sed -e 's/^short ospeed;$/short ospeed; static int _ti_putc_one(int c, void *outc) { return ((int (*)(int))outc)(c); }/' -e 's/(int (\*)(int, void \*))(void \*)outc, NULL/_ti_putc_one, (void *)outc/' -e 's/(int (\*)(int, void \*))(void \*)putchar, NULL/_ti_putc_one, (void *)putchar/' /tmp/terminfo/libterminfo/tputs.c > /tmp/terminfo/tputs.c
37
+ SLOP cp /tmp/terminfo/tputs.c /tmp/terminfo/libterminfo/tputs.c
38
+ SLOP grep -q '_ti_putc_one, (void \*)outc' /tmp/terminfo/libterminfo/tputs.c && grep -q '_ti_putc_one, (void \*)putchar' /tmp/terminfo/libterminfo/tputs.c
39
+
40
+ FILE /tmp/terminfo.mk
41
+ .RECIPEPREFIX := >
42
+ .DELETE_ON_ERROR:
43
+ MAKEFLAGS += -r
44
+ N := /tmp/terminfo
45
+ all: /usr/lib/libterminfo.a /usr/include/term.h /usr/include/termcap.h
46
+
47
+ # libterminfo as its GNUmakefile builds it. nbperf and tic are built
48
+ # first: the library's own scripts run them to write its hash tables
49
+ # and the terminal descriptions it holds (xterm-256color among them).
50
+ # tic needs TERMINFO_COMPAT for _ti_promote, which the release's
51
+ # GNUmakefile leaves out.
52
+ L := $(N)/libterminfo
53
+ $(N)/nbperf/nbperf: $(wildcard $(N)/nbperf/*.c) $(L)/mi_vector_hash.c
54
+ >cc -O1 -I$(N) -I$(N)/nbperf $^ -o $@
55
+ $(L)/hash.c: $(L)/genhash $(L)/term.h $(N)/nbperf/nbperf
56
+ >TOOL_NBPERF=$(N)/nbperf/nbperf sh $(L)/genhash $(L)/term.h > $@
57
+ $(L)/termcap_hash.c: $(L)/genthash $(L)/termcap_map.c $(N)/nbperf/nbperf
58
+ >TOOL_NBPERF=$(N)/nbperf/nbperf sh $(L)/genthash $(L)/termcap_map.c > $@
59
+ $(N)/tic/tic: $(N)/tic/tic.c $(N)/tic/cdbw.c $(L)/compile.c $(L)/mi_vector_hash.c $(L)/hash.c
60
+ >cc -O1 -I$(N) -I$(L) -I$(N)/tic -DTERMINFO_COMPAT $^ -o $@
61
+ $(L)/compiled_terms.c: $(L)/genterms $(N)/terminfo/terminfo $(N)/tic/tic
62
+ >TOOL_TIC=$(N)/tic/tic TERMINFODIR=$(N)/terminfo sh $(L)/genterms > $@
63
+ TI := term ti setupterm curterm tparm tputs compile hash cdbr mi_vector_hash termcap
64
+ $(L)/term.o: $(L)/compiled_terms.c
65
+ $(L)/termcap.o: $(L)/termcap_hash.c
66
+ $(L)/%.o: $(L)/%.c
67
+ >cc -O2 -I$(N) -I$(L) -I$(N)/libcurses '-DINSTALL_PREFIX="/usr"' \
68
+ > -DTERMINFO_COMPILE -DTERMINFO_DB -DTERMINFO_COMPAT -c $< -o $@
69
+ /usr/lib/libterminfo.a: $(addprefix $(L)/,$(addsuffix .o,$(TI)))
70
+ >ar rcs $@ $^
71
+ /usr/include/%.h: $(L)/%.h
72
+ >cp $< $@
73
+ SLOP make -j4 -f /tmp/terminfo.mk
74
+
75
+ EXPORTS LIB terminfo /usr/lib/libterminfo.a
76
+ EXPORTS HEADER term /usr/include/term.h
77
+ EXPORTS HEADER termcap /usr/include/termcap.h
78
+ FILE /usr/share/licenses/netbsd-curses/COPYING
@@ -0,0 +1,102 @@
1
+ DOLLY 8
2
+ PACKAGE tmux
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST pty@0
5
+ REQUIRES HOST sockets@0
6
+
7
+ # tmux from upstream's release archive over the libevent and libterminfo
8
+ # packages. tmux takes Dolly's port (README.md): a patch and its operating
9
+ # system file.
10
+ FROM /demos/tools/Dollyfile-tools-build f848aebbca736e17aa72bca3fb0387176bf8695f829e6c49d1664a4ed6b7868d
11
+ USE /Dollyfile-libdolly-sockets 6b09a69a442e3002873b97f13b5ebef36beea3b660a40b55b3a58f8eddf41af0
12
+ USE /demos/tmux/Dollyfile-libevent 6ea15a4171f91afcc889aa206f6278b0655a054789d35caee34d617f575eda80
13
+ USE /demos/tmux/Dollyfile-libterminfo a4b157eb1b18f3a515322657decddb3bb0a453d55d797188645bf81afc4afbdb
14
+ USE /Dollyfile-libdolly-pty 2dc46dfff7c7fee8075069868c7bbc87077a3eb712bb1865f34264ac0315dbd9
15
+
16
+ REQUIRES HEADER libc
17
+ REQUIRES HEADER event
18
+ REQUIRES HEADER event2
19
+ REQUIRES HEADER term
20
+ REQUIRES LIB event_core
21
+ REQUIRES LIB terminfo
22
+ REQUIRES TOOL cc
23
+ REQUIRES TOOL cp
24
+ REQUIRES TOOL grep
25
+ REQUIRES TOOL gzip
26
+ REQUIRES TOOL make
27
+ REQUIRES TOOL mkdir
28
+ REQUIRES TOOL patch
29
+ REQUIRES TOOL sleep
30
+ REQUIRES TOOL tar
31
+ REQUIRES TOOL text-page
32
+
33
+ SOURCE /dist/static/tmux/tmux-3.8.tar.gz e79c699c7e949dccd0a4a125e17b8d1261e311b16979dbc8eb34542f3966d82e /tmp/tmux.tar.gz
34
+ SOURCE /dist/static/tmux/port.tar cc83eaa1e2ae12ac98e2415ebd136650eef0997e840394ff4eb3dfbcb46e0296 /tmp/tmux-port.tar
35
+ SLOP gzip -dc /tmp/tmux.tar.gz | tar -xf - -C /tmp
36
+ SLOP tar -xf /tmp/tmux-port.tar -C /
37
+ SLOP patch -p1 -d /tmp/tmux-3.8 -i /tmp/tmux-3.8/tmux-dolly.patch
38
+
39
+ # tty.c includes <curses.h> and takes nothing from it. There is no curses
40
+ # here: tmux calls libterminfo, which <term.h> declares.
41
+ FILE /tmp/tmux-3.8/curses.h
42
+ /* No curses library: see the recipe. */
43
+
44
+ FILE /tmp/tmux.mk
45
+ .RECIPEPREFIX := >
46
+ .DELETE_ON_ERROR:
47
+ MAKEFLAGS += -r
48
+ T := /tmp/tmux-3.8
49
+ all: /usr/bin/tmux
50
+
51
+ # tmux: HAVE is what its configure would define here and COMPAT the
52
+ # functions it would replace. Not claimed: SO_PEERCRED, which sockets@0
53
+ # refuses (tmux then answers the one user itself). TMUX_SOCK_PERM is
54
+ # upstream's knob: Dolly has no permission bits to check on /tmp/tmux-0.
55
+ # TMUX_TERM is configure's pick among the names libterminfo knows.
56
+ HAVE := DIRENT_H FCNTL_H INTTYPES_H PATHS_H PTY_H STDINT_H SYS_DIR_H \
57
+ EVENT2_EVENT_H ERR_H DIRFD FLOCK SYSCONF ASPRINTF CFMAKERAW CLOCK_GETTIME \
58
+ EXPLICIT_BZERO GETLINE MEMMEM SETENV STRCASESTR STRLCAT STRLCPY STRNDUP \
59
+ STRNLEN STRSEP FORKPTY TIPARM
60
+ COMPAT := base64 closefrom daemon fdforkpty freezero getdtablecount getdtablesize \
61
+ getopt_long getpeereid getprogname htonll imsg imsg-buffer ntohll recallocarray \
62
+ setproctitle strtonum unvis vis
63
+ SOURCES := $(filter-out $(T)/osdep-%.c $(T)/image.c $(T)/image-sixel.c,$(wildcard $(T)/*.c)) \
64
+ $(T)/osdep-dolly.c $(addprefix $(T)/compat/,$(addsuffix .c,$(COMPAT)))
65
+ CPPFLAGS := -D_GNU_SOURCE $(addprefix -DHAVE_,$(HAVE)) '-DTMUX_VERSION="3.8"' \
66
+ '-DTMUX_CONF="/etc/tmux.conf:~/.tmux.conf:$$XDG_CONFIG_HOME/tmux/tmux.conf:~/.config/tmux/tmux.conf"' \
67
+ '-DTMUX_LOCK_CMD="lock -np"' '-DTMUX_TERM="tmux-256color"' -DTMUX_MOUSE=1 \
68
+ -DTMUX_SOCK_PERM=0 -I$(T)
69
+ $(T)/%.o: $(T)/%.c
70
+ >cc -O2 -std=gnu99 $(CPPFLAGS) -c $< -o $@
71
+ /usr/bin/tmux: $(SOURCES:.c=.o)
72
+ >cc $^ -levent_core -lterminfo -ldolly-sockets -ldolly-pty -o $@
73
+ SLOP make -j4 -f /tmp/tmux.mk
74
+ SLOP mkdir -p /usr/share/licenses/tmux
75
+ SLOP cp /tmp/tmux-3.8/COPYING /usr/share/licenses/tmux/COPYING
76
+ SLOP text-page /tmp/tmux-3.8/tmux.1
77
+
78
+ # The server tmux starts, one pane on a pseudo-terminal, a command typed into
79
+ # its shell, the file that command wrote, and the server's end.
80
+ FILE /tmp/tmux-check.slop
81
+ tmux -S /tmp/tmux-check.sock new-session -d -x 80 -y 24
82
+ tmux -S /tmp/tmux-check.sock send-keys 'echo $((6 * 7)) > /tmp/tmux-check.out' Enter
83
+ for attempt in 1 2 3 4 5 6 7 8 9 10; do test -s /tmp/tmux-check.out || sleep 1; done
84
+ tmux -S /tmp/tmux-check.sock kill-server
85
+ server='running [^ ]*tmux -D -S /tmp/tmux-check.sock$'
86
+ for attempt in 1 2 3 4 5; do ! grep -q "$server" /proc/processes || sleep 1; done
87
+ ! grep -q "$server" /proc/processes
88
+ grep -qx 42 /tmp/tmux-check.out
89
+ SLOP tmux -V | grep -qx 'tmux 3.8'
90
+ SLOP slop -e /tmp/tmux-check.slop
91
+
92
+ # Dolly's termcap programs (less) know one terminal, the display's
93
+ # (/etc/termcap): a pane is that one to them.
94
+ FILE /etc/tmux.conf
95
+ set -g default-terminal xterm-256color
96
+
97
+ EXPORTS TOOL tmux
98
+ FILE /usr/share/licenses/tmux/COPYING
99
+ # tmux links libevent and libterminfo statically and carries their licences.
100
+ FILE /usr/share/licenses/libevent/LICENSE
101
+ FILE /usr/share/licenses/netbsd-curses/COPYING
102
+ FILE /usr/share/man/cat1/tmux.1
@@ -0,0 +1,22 @@
1
+ DOLLY 8
2
+ TOOLCHAIN tools-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
+ # What the packages of this demo are built on: cmake-build, which is
10
+ # system-tools with the CMake that wabt needs, and mandoc with its text-page,
11
+ # which formats upstream's manual pages as text. A package is built FROM it
12
+ # and keeps none of it, so the formatter serves the build and is no row of
13
+ # the package: nothing installs mandoc because a page was formatted with it.
14
+ # (COPY may not write under /tmp, so a package cannot borrow the formatter
15
+ # from another image for its build alone.)
16
+ FROM /demos/cmake/Dollyfile-cmake-build ec172ae8a3b79bf8dcf9ea2b9c070699dcf05b337ea738e2b6657bb1d0fb7004
17
+ INSTALL /Dollyfile-mandoc dbd78781612d0a1e380901d92439cdfa17a919ed6b7f7c316152117382aabdfe
18
+
19
+ REQUIRES TOOL mandoc
20
+ REQUIRES TOOL text-page
21
+
22
+ ENTRY /bin/foreground -i /bin/slop