summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorzorz <zorz@opentux.org>2026-03-30 15:14:49 +0300
committerzorz <zorz@opentux.org>2026-03-30 15:14:49 +0300
commitfee55ccfd2f733c1c53615d16a389489970825fd (patch)
treec7eefd85e225cac084818860b0c7a7ce796b54cd /rust
parentc1acac9dda5766718fefe4c9f0271eae9926ff22 (diff)
downloadbootstrap-fee55ccfd2f733c1c53615d16a389489970825fd.tar.gz
bootstrap-fee55ccfd2f733c1c53615d16a389489970825fd.tar.xz
Diffstat (limited to 'rust')
-rw-r--r--rust/.footprint130
-rw-r--r--rust/.signature11
-rw-r--r--rust/MAKEPKG93
3 files changed, 234 insertions, 0 deletions
diff --git a/rust/.footprint b/rust/.footprint
new file mode 100644
index 0000000..311b613
--- /dev/null
+++ b/rust/.footprint
@@ -0,0 +1,130 @@
1drwxr-xr-x root/root etc/
2-rw-r--r-- root/root etc/target-spec-json-schema.json
3drwxr-xr-x root/root etc/bash_completion.d/
4-rw-r--r-- root/root etc/bash_completion.d/cargo
5drwxr-xr-x root/root usr/
6drwxr-xr-x root/root usr/bin/
7-rwxr-xr-x root/root usr/bin/cargo
8-rwxr-xr-x root/root usr/bin/cargo-clippy
9-rwxr-xr-x root/root usr/bin/cargo-fmt
10-rwxr-xr-x root/root usr/bin/clippy-driver
11-rwxr-xr-x root/root usr/bin/rust-analyzer
12-rwxr-xr-x root/root usr/bin/rust-gdb
13-rwxr-xr-x root/root usr/bin/rust-gdbgui
14-rwxr-xr-x root/root usr/bin/rust-lldb
15-rwxr-xr-x root/root usr/bin/rustc
16-rwxr-xr-x root/root usr/bin/rustfmt
17drwxr-xr-x root/root usr/lib/
18-rw-r--r-- root/root usr/lib/librustc_driver-aa0a29ed32c02150.so
19drwxr-xr-x root/root usr/lib/rustlib/
20drwxr-xr-x root/root usr/lib/rustlib/etc/
21-rw-r--r-- root/root usr/lib/rustlib/etc/gdb_load_rust_pretty_printers.py
22-rw-r--r-- root/root usr/lib/rustlib/etc/gdb_lookup.py
23-rw-r--r-- root/root usr/lib/rustlib/etc/gdb_providers.py
24-rw-r--r-- root/root usr/lib/rustlib/etc/lldb_commands
25-rw-r--r-- root/root usr/lib/rustlib/etc/lldb_lookup.py
26-rw-r--r-- root/root usr/lib/rustlib/etc/lldb_providers.py
27-rw-r--r-- root/root usr/lib/rustlib/etc/rust_types.py
28drwxr-xr-x root/root usr/lib/rustlib/x86_64-unknown-linux-musl/
29drwxr-xr-x root/root usr/lib/rustlib/x86_64-unknown-linux-musl/bin/
30-rwxr-xr-x root/root usr/lib/rustlib/x86_64-unknown-linux-musl/bin/rust-objcopy
31drwxr-xr-x root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/
32-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libaddr2line-8c6bb8b8f8fe6e1c.rlib
33-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libaddr2line-8c6bb8b8f8fe6e1c.rmeta
34-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libadler2-36e005d731593e51.rlib
35-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libadler2-36e005d731593e51.rmeta
36-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-c3a92ebfe864e022.rlib
37-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-c3a92ebfe864e022.rmeta
38-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libcfg_if-012930ca15a249a5.rlib
39-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libcfg_if-012930ca15a249a5.rmeta
40-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-1e5a9a5d75ea0650.rlib
41-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-1e5a9a5d75ea0650.rmeta
42-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-151ec1967a15bdef.rlib
43-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-151ec1967a15bdef.rmeta
44-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libgetopts-fd4c4dba1ead8b07.rlib
45-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libgetopts-fd4c4dba1ead8b07.rmeta
46-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libgimli-f82c2178d2267ccd.rlib
47-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libgimli-f82c2178d2267ccd.rmeta
48-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown-3c0732f2d828ca9a.rlib
49-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown-3c0732f2d828ca9a.rmeta
50-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-494145db12c21ee0.rlib
51-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-494145db12c21ee0.rmeta
52-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libmemchr-c0012bce3f81b6e9.rlib
53-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libmemchr-c0012bce3f81b6e9.rmeta
54-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libminiz_oxide-784176efd8758c8e.rlib
55-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libminiz_oxide-784176efd8758c8e.rmeta
56-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libobject-6bab346d7a459132.rlib
57-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libobject-6bab346d7a459132.rmeta
58-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_abort-c1a3b32379588ab9.rlib
59-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_abort-c1a3b32379588ab9.rmeta
60-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-4a82560cf1a4c8ff.rlib
61-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-4a82560cf1a4c8ff.rmeta
62-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libproc_macro-1f8b330e1168109c.rlib
63-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libproc_macro-1f8b330e1168109c.rmeta
64-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-93dccbf5084f9fb9.rlib
65-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-93dccbf5084f9fb9.rmeta
66-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_literal_escaper-e79b94113568fbb2.rlib
67-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_literal_escaper-e79b94113568fbb2.rmeta
68-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_alloc-323b4307fef6e15e.rlib
69-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_alloc-323b4307fef6e15e.rmeta
70-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-a7870d1bb713bc35.rlib
71-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-a7870d1bb713bc35.rmeta
72-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_std-e38a15c4d4873866.rlib
73-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_std-e38a15c4d4873866.rmeta
74-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-ea726ce8a3e3ddd4.rlib
75-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-ea726ce8a3e3ddd4.rmeta
76-rwxr-xr-x root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-ea726ce8a3e3ddd4.so
77-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd_detect-efddde2d1bc34548.rlib
78-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd_detect-efddde2d1bc34548.rmeta
79-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libsysroot-2a44ce2feb706f0c.rlib
80-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libsysroot-2a44ce2feb706f0c.rmeta
81-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libtest-41e21da85e733f9c.rlib
82-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libtest-41e21da85e733f9c.rmeta
83-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-918d6d7da23c61e6.rlib
84-rw-r--r-- root/root usr/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-918d6d7da23c61e6.rmeta
85drwxr-xr-x root/root usr/libexec/
86-rwxr-xr-x root/root usr/libexec/rust-analyzer-proc-macro-srv
87drwxr-xr-x root/root usr/share/
88drwxr-xr-x root/root usr/share/man/
89drwxr-xr-x root/root usr/share/man/man1/
90-rw-r--r-- root/root usr/share/man/man1/cargo-add.1.gz
91-rw-r--r-- root/root usr/share/man/man1/cargo-bench.1.gz
92-rw-r--r-- root/root usr/share/man/man1/cargo-build.1.gz
93-rw-r--r-- root/root usr/share/man/man1/cargo-check.1.gz
94-rw-r--r-- root/root usr/share/man/man1/cargo-clean.1.gz
95-rw-r--r-- root/root usr/share/man/man1/cargo-doc.1.gz
96-rw-r--r-- root/root usr/share/man/man1/cargo-fetch.1.gz
97-rw-r--r-- root/root usr/share/man/man1/cargo-fix.1.gz
98-rw-r--r-- root/root usr/share/man/man1/cargo-generate-lockfile.1.gz
99-rw-r--r-- root/root usr/share/man/man1/cargo-help.1.gz
100-rw-r--r-- root/root usr/share/man/man1/cargo-info.1.gz
101-rw-r--r-- root/root usr/share/man/man1/cargo-init.1.gz
102-rw-r--r-- root/root usr/share/man/man1/cargo-install.1.gz
103-rw-r--r-- root/root usr/share/man/man1/cargo-locate-project.1.gz
104-rw-r--r-- root/root usr/share/man/man1/cargo-login.1.gz
105-rw-r--r-- root/root usr/share/man/man1/cargo-logout.1.gz
106-rw-r--r-- root/root usr/share/man/man1/cargo-metadata.1.gz
107-rw-r--r-- root/root usr/share/man/man1/cargo-new.1.gz
108-rw-r--r-- root/root usr/share/man/man1/cargo-owner.1.gz
109-rw-r--r-- root/root usr/share/man/man1/cargo-package.1.gz
110-rw-r--r-- root/root usr/share/man/man1/cargo-pkgid.1.gz
111-rw-r--r-- root/root usr/share/man/man1/cargo-publish.1.gz
112-rw-r--r-- root/root usr/share/man/man1/cargo-remove.1.gz
113-rw-r--r-- root/root usr/share/man/man1/cargo-report.1.gz
114-rw-r--r-- root/root usr/share/man/man1/cargo-run.1.gz
115-rw-r--r-- root/root usr/share/man/man1/cargo-rustc.1.gz
116-rw-r--r-- root/root usr/share/man/man1/cargo-rustdoc.1.gz
117-rw-r--r-- root/root usr/share/man/man1/cargo-search.1.gz
118-rw-r--r-- root/root usr/share/man/man1/cargo-test.1.gz
119-rw-r--r-- root/root usr/share/man/man1/cargo-tree.1.gz
120-rw-r--r-- root/root usr/share/man/man1/cargo-uninstall.1.gz
121-rw-r--r-- root/root usr/share/man/man1/cargo-update.1.gz
122-rw-r--r-- root/root usr/share/man/man1/cargo-vendor.1.gz
123-rw-r--r-- root/root usr/share/man/man1/cargo-version.1.gz
124-rw-r--r-- root/root usr/share/man/man1/cargo-yank.1.gz
125-rw-r--r-- root/root usr/share/man/man1/cargo.1.gz
126-rw-r--r-- root/root usr/share/man/man1/rustc.1.gz
127-rw-r--r-- root/root usr/share/man/man1/rustdoc.1.gz
128drwxr-xr-x root/root usr/share/zsh/
129drwxr-xr-x root/root usr/share/zsh/site-functions/
130-rw-r--r-- root/root usr/share/zsh/site-functions/_cargo
diff --git a/rust/.signature b/rust/.signature
new file mode 100644
index 0000000..63799c1
--- /dev/null
+++ b/rust/.signature
@@ -0,0 +1,11 @@
1untrusted comment: verify with zorz.pub
2RWTZ9IduCSQ/mJFKaGFJP4Zzbug9UsCh1qZknthVBGkxIUVRIcSJZX83Hhq0gtH88fU50HXqBsMt7PtrapeyzgRYMaMl9U14hwU=
3
4SHA256 (MAKEPKG) = bf7be60b5c7a69f14c6e6c8cac7e8dfafb624feed545e653ca355854c5445062
5SHA256 (.footprint) = a5f3b91c835b57f183b8455c4a320121e15d747b400a846c22f1876d8343b9a1
6SHA256 (rustc-1.94.1-src.tar.xz) = 174fce10ce012317ca995810296d8af199318838180b03d68a853e0f02d4b571
7SHA256 (rust-std-1.93.0-x86_64-unknown-linux-musl.tar.xz) = 874658d2ced1ed2b9bf66c148b78a2e10cad475d0a4db32e68a08900905b89b8
8SHA256 (rustc-1.93.0-x86_64-unknown-linux-musl.tar.xz) = 24a59e5c6807b07202d4c8021f505d46aa6504897d0c8e7ecba2b5f0f221afd8
9SHA256 (cargo-1.93.0-x86_64-unknown-linux-musl.tar.xz) = 1eee0f6752a31430dc7cf16718de55ef7ad45882cc4c05fa97f1ef280af61135
10SHA256 (system.diff) = fdfd2b449aacd417921359db8bb3eb66944313485c72fde0a942230f2b19f55e
11SHA256 (musl-no-crt-static.patch) = 8b7d3beb08cc22a4477b238eff22d91b249ea4c5344911f6fc3c279342538e35
diff --git a/rust/MAKEPKG b/rust/MAKEPKG
new file mode 100644
index 0000000..7fbb403
--- /dev/null
+++ b/rust/MAKEPKG
@@ -0,0 +1,93 @@
1#!/bin/mkpkg
2# description: Rust programming language
3# url: https://www.rust-lang.org/
4
5name=rust
6version=1.94.1
7_bootstrap=1.93.0
8_date=2026-01-22
9release=1
10depends=(llvm)
11makedeps=(cmake ninja python3 gcc-compat)
12source=(
13 https://static.rust-lang.org/dist/rustc-$version-src.tar.xz
14 https://static.rust-lang.org/dist/$_date/rust-std-$_bootstrap-x86_64-unknown-linux-musl.tar.xz
15 https://static.rust-lang.org/dist/$_date/rustc-$_bootstrap-x86_64-unknown-linux-musl.tar.xz
16 https://static.rust-lang.org/dist/$_date/cargo-$_bootstrap-x86_64-unknown-linux-musl.tar.xz
17 system.diff
18 musl-no-crt-static.patch
19)
20sha256sums=(
21 "174fce10ce012317ca995810296d8af199318838180b03d68a853e0f02d4b571"
22 "874658d2ced1ed2b9bf66c148b78a2e10cad475d0a4db32e68a08900905b89b8"
23 "24a59e5c6807b07202d4c8021f505d46aa6504897d0c8e7ecba2b5f0f221afd8"
24 "1eee0f6752a31430dc7cf16718de55ef7ad45882cc4c05fa97f1ef280af61135"
25 "fdfd2b449aacd417921359db8bb3eb66944313485c72fde0a942230f2b19f55e"
26 "8b7d3beb08cc22a4477b238eff22d91b249ea4c5344911f6fc3c279342538e35"
27)
28extract() {
29 cp system.diff $SRC/
30 cp musl-no-crt-static.patch $SRC/
31 tar -xf $PKGMK_SOURCE_DIR/rustc-$version-src.tar.xz -C $SRC
32
33 mkdir -p $SRC/rustc-$version-src/build/cache/$_date
34 cp rust-std-$_bootstrap-x86_64-unknown-linux-musl.tar.xz $SRC/rustc-$version-src/build/cache/$_date/
35 cp rustc-$_bootstrap-x86_64-unknown-linux-musl.tar.xz $SRC/rustc-$version-src/build/cache/$_date/
36 cp cargo-$_bootstrap-x86_64-unknown-linux-musl.tar.xz $SRC/rustc-$version-src/build/cache/$_date/
37}
38build() {
39 cd rustc-$version-src
40
41 # Remove musl self-contained CRT handling and musl-root requirement
42 # (adapted from arachsys: use system CRT objects directly)
43 patch -p1 -i $SRC/system.diff
44 patch -p1 -i $SRC/musl-no-crt-static.patch
45
46 cat > bootstrap.toml <<EOF
47change-id = 148795
48[llvm]
49link-shared = true
50use-libcxx = true
51static-libstdcpp = false
52[build]
53build = "x86_64-unknown-linux-musl"
54host = ["x86_64-unknown-linux-musl"]
55target = ["x86_64-unknown-linux-musl"]
56docs = false
57extended = true
58tools = ["cargo", "rustfmt", "clippy", "rust-analyzer"]
59vendor = true
60[install]
61prefix = "/usr"
62[rust]
63channel = "stable"
64codegen-units = 1
65lto = "thin"
66llvm-libunwind = "system"
67[target.x86_64-unknown-linux-musl]
68llvm-config = "/usr/bin/llvm-config"
69crt-static = false
70cc = "clang"
71cxx = "clang++"
72ar = "llvm-ar"
73ranlib = "llvm-ranlib"
74linker = "clang"
75rustflags = ["-C", "link-arg=-lunwind"]
76EOF
77 python3 x.py build
78 DESTDIR=$PKG python3 x.py install
79
80 rm -rf $PKG/usr/share/doc
81 rm -f $PKG/usr/lib/rustlib/install.log
82 rm -f $PKG/usr/lib/rustlib/uninstall.sh
83 rm -f $PKG/usr/lib/rustlib/manifest-*
84 rm -f $PKG/usr/lib/rustlib/components
85 rm -f $PKG/usr/lib/rustlib/rust-installer-version
86}
87
88signify() {
89 untrusted comment: public key
90 RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
91}
92
93# vim: filetype=sh