From 93a3c54b1a05db1170e867a90916e16411e1ae22 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 27 Sep 2026 18:54:44 +0200 Subject: [PATCH 01/11] Move acid sources to /usr/share --- config/acid.toml | 4 ++-- config/auto-test.toml | 4 ++-- recipes/tests/acid/recipe.toml | 12 +++++------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/config/acid.toml b/config/acid.toml index 139e0326f..bdaa141d5 100644 --- a/config/acid.toml +++ b/config/acid.toml @@ -25,7 +25,7 @@ path = "/usr/lib/run_acid.ion" data = """ #!/usr/bin/env ion export RUST_BACKTRACE=full -cd /home/user/acid -cargo test +export HOME=/home/root +acid-runner shutdown """ diff --git a/config/auto-test.toml b/config/auto-test.toml index e6f3032a5..71c822ec4 100644 --- a/config/auto-test.toml +++ b/config/auto-test.toml @@ -24,8 +24,8 @@ path = "/usr/lib/run_tests.ion" data = """ #!/usr/bin/env ion export RUST_BACKTRACE=full -cd /home/user/acid -cargo test +export HOME=/home/root +acid-runner bash /root/relibc-tests/run.sh os-test-runner shutdown diff --git a/recipes/tests/acid/recipe.toml b/recipes/tests/acid/recipe.toml index 54106685e..d20186fec 100644 --- a/recipes/tests/acid/recipe.toml +++ b/recipes/tests/acid/recipe.toml @@ -1,21 +1,19 @@ -# Due to necessary write permission for compilation the filesystem path of source code installation is an exception -# where the package manager can't switch between system-wide and user paths [source] git = "https://gitlab.redox-os.org/redox-os/acid.git" shallow_clone = true [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}/home/user/acid" -cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/acid" +mkdir -pv "${COOKBOOK_STAGE}/usr/share/acid" +cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/usr/share/acid" # Create runner script mkdir -p "${COOKBOOK_STAGE}/usr/bin" cat > "${COOKBOOK_STAGE}/usr/bin/acid-runner" < Date: Sun, 27 Sep 2026 18:58:08 +0200 Subject: [PATCH 02/11] Move hello-redox sources to /usr/share --- recipes/tests/hello-redox/recipe.toml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/recipes/tests/hello-redox/recipe.toml b/recipes/tests/hello-redox/recipe.toml index 2a526f917..0f67f5ba5 100644 --- a/recipes/tests/hello-redox/recipe.toml +++ b/recipes/tests/hello-redox/recipe.toml @@ -1,8 +1,6 @@ -# Due to necessary write permission for compilation the filesystem path of source code installation is an exception -# where the package manager can't switch between system-wide and user paths [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}/home/user/hello-redox" -cp -rv "${COOKBOOK_RECIPE}"/files/* "${COOKBOOK_STAGE}/home/user/hello-redox" +mkdir -pv "${COOKBOOK_STAGE}/usr/share/hello-redox" +cp -rv "${COOKBOOK_RECIPE}"/files/* "${COOKBOOK_STAGE}/usr/share/hello-redox" """ From b6927c9d1984d2d005d3829b38b0337f6fcb2a82 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 27 Sep 2026 18:59:07 +0200 Subject: [PATCH 03/11] Move openposixtestsuite sources to /usr/share --- recipes/tests/openposixtestsuite/recipe.toml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/recipes/tests/openposixtestsuite/recipe.toml b/recipes/tests/openposixtestsuite/recipe.toml index e4c3df4a6..ff95e3478 100644 --- a/recipes/tests/openposixtestsuite/recipe.toml +++ b/recipes/tests/openposixtestsuite/recipe.toml @@ -1,5 +1,3 @@ -# Due to necessary write permission for compilation the filesystem path of source code installation is an exception -# where the package manager can't switch between system-wide and user paths [source] git = "https://gitlab.redox-os.org/redox-os/openposixtestsuite.git" branch = "redox" @@ -7,8 +5,8 @@ branch = "redox" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}/home/user/openposixtestsuite" -cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/openposixtestsuite" +mkdir -pv "${COOKBOOK_STAGE}/usr/share/openposixtestsuite" +cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/usr/share/openposixtestsuite" """ [package] From a0bde92310642f90a78f8fbbf1878b5a0de27900 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 27 Sep 2026 19:03:44 +0200 Subject: [PATCH 04/11] Move cookbook sources to /usr/share --- recipes/other/cookbook/recipe.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/other/cookbook/recipe.toml b/recipes/other/cookbook/recipe.toml index 01b68d613..e2b723cb6 100644 --- a/recipes/other/cookbook/recipe.toml +++ b/recipes/other/cookbook/recipe.toml @@ -7,8 +7,8 @@ script = """ DYNAMIC_INIT cookbook_cargo -mkdir -pv "${COOKBOOK_STAGE}/home/user/cookbook" -cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/cookbook" +mkdir -pv "${COOKBOOK_STAGE}/usr/share/cookbook" +cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/usr/share/cookbook" """ [package] From cddafcc84a6d542d6c4ad3ae601ba3c441c81aa6 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 27 Sep 2026 19:04:24 +0200 Subject: [PATCH 05/11] Move redox-posix-tests sources to /usr/share --- recipes/tests/redox-posix-tests/recipe.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/tests/redox-posix-tests/recipe.toml b/recipes/tests/redox-posix-tests/recipe.toml index 74f2e46f0..0a0918112 100644 --- a/recipes/tests/redox-posix-tests/recipe.toml +++ b/recipes/tests/redox-posix-tests/recipe.toml @@ -5,8 +5,8 @@ git = "https://gitlab.redox-os.org/redox-os/redox-posix-tests.git" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}/home/user/redox-posix-tests" -cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/redox-posix-tests" +mkdir -pv "${COOKBOOK_STAGE}/usr/share/redox-posix-tests" +cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/usr/share/redox-posix-tests" """ [package] From 44a30e582c81948fdee2b62ce49eb962fdd49f71 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 27 Sep 2026 19:17:02 +0200 Subject: [PATCH 06/11] Move relibc-tests sources to /usr/share --- config/auto-test.toml | 2 +- recipes/tests/relibc-tests-bins/recipe.toml | 8 ++++---- recipes/tests/relibc-tests/recipe.toml | 6 ++---- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/config/auto-test.toml b/config/auto-test.toml index 71c822ec4..7350c4786 100644 --- a/config/auto-test.toml +++ b/config/auto-test.toml @@ -26,7 +26,7 @@ data = """ export RUST_BACKTRACE=full export HOME=/home/root acid-runner -bash /root/relibc-tests/run.sh +bash /usr/share/relibc-tests/run.sh os-test-runner shutdown """ diff --git a/recipes/tests/relibc-tests-bins/recipe.toml b/recipes/tests/relibc-tests-bins/recipe.toml index fd9938c5e..16831465b 100644 --- a/recipes/tests/relibc-tests-bins/recipe.toml +++ b/recipes/tests/relibc-tests-bins/recipe.toml @@ -6,10 +6,10 @@ template = "custom" script = """ rsync -av --delete "${COOKBOOK_SOURCE}/" ./ -make install-tests DESTDIR="${COOKBOOK_STAGE}/home/user" NATIVE_LIBC=1 IS_REDOX=1 +make install-tests DESTDIR="${COOKBOOK_STAGE}/usr/share" NATIVE_LIBC=1 IS_REDOX=1 if [ -n "$TESTBIN" ]; then -"${COOKBOOK_REDOXER}" write-exec sh -c "cd /home/user/relibc-tests; make run-once TESTBIN=bins_dynamic/$TESTBIN" +"${COOKBOOK_REDOXER}" write-exec sh -c "cd /usr/share/relibc-tests; make run-once TESTBIN=bins_dynamic/$TESTBIN" fi # Create runner script @@ -17,8 +17,8 @@ mkdir -p "${COOKBOOK_STAGE}/usr/bin" cat > "${COOKBOOK_STAGE}/usr/bin/relibc-tests-runner" < Date: Sun, 27 Sep 2026 19:19:56 +0200 Subject: [PATCH 07/11] Remove /home/user modification in flycast package --- recipes/emulators/flycast/recipe.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/recipes/emulators/flycast/recipe.toml b/recipes/emulators/flycast/recipe.toml index 1211031bf..de1dde572 100644 --- a/recipes/emulators/flycast/recipe.toml +++ b/recipes/emulators/flycast/recipe.toml @@ -32,8 +32,4 @@ COOKBOOK_CMAKE_FLAGS+=( -DWITH_SYSTEM_ZSTD=ON ) cookbook_cmake - -# for some reason flycast require local dir already set up -mkdir -p ${COOKBOOK_STAGE}/home/user/.local/share/flycast -touch ${COOKBOOK_STAGE}/home/user/.local/share/flycast/.tmp """ From 69183db38973856b3c9f1dbcd8d3f5dba392d3c8 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 27 Sep 2026 19:24:17 +0200 Subject: [PATCH 08/11] Move hello-world-examples sources to /usr/share --- recipes/dev/hello-world-examples/recipe.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/dev/hello-world-examples/recipe.toml b/recipes/dev/hello-world-examples/recipe.toml index ad2d9f702..6f10c10cd 100644 --- a/recipes/dev/hello-world-examples/recipe.toml +++ b/recipes/dev/hello-world-examples/recipe.toml @@ -4,6 +4,6 @@ shallow_clone = true [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}"/home/user/hello-world-examples -cp -rv "${COOKBOOK_SOURCE}"/[#,a-z] "${COOKBOOK_STAGE}"/home/user/hello-world-examples +mkdir -pv "${COOKBOOK_STAGE}"/usr/share/hello-world-examples +cp -rv "${COOKBOOK_SOURCE}"/[#,a-z] "${COOKBOOK_STAGE}"/usr/share/hello-world-examples """ From cc0a884fd8f9f0dc550ca57d1c13c2097f19455f Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 27 Sep 2026 19:24:29 +0200 Subject: [PATCH 09/11] Move wasi-testsuite sources to /usr/share --- recipes/tests/wasi-testsuite/recipe.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/tests/wasi-testsuite/recipe.toml b/recipes/tests/wasi-testsuite/recipe.toml index a4598290b..4fedb2aba 100644 --- a/recipes/tests/wasi-testsuite/recipe.toml +++ b/recipes/tests/wasi-testsuite/recipe.toml @@ -5,8 +5,8 @@ branch = "prod/testsuite-base" [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}/home/user/wasi-testsuite" -cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/wasi-testsuite" +mkdir -pv "${COOKBOOK_STAGE}/usr/share/wasi-testsuite" +cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/usr/share/wasi-testsuite" """ [package] From 9571d790d3bfb4d30ca535638260d285f74a68d9 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 27 Sep 2026 19:24:42 +0200 Subject: [PATCH 10/11] Move rustconf2025 pdf to /usr/share --- recipes/other/rustconf2025/recipe.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/other/rustconf2025/recipe.toml b/recipes/other/rustconf2025/recipe.toml index 7bd748111..dc604af05 100644 --- a/recipes/other/rustconf2025/recipe.toml +++ b/recipes/other/rustconf2025/recipe.toml @@ -4,6 +4,6 @@ git = "https://github.com/jackpot51/rustconf2025.git" [build] template = "custom" script = """ -mkdir -p "${COOKBOOK_STAGE}/home/user" -cp -v "${COOKBOOK_SOURCE}/"*.pdf "${COOKBOOK_STAGE}/home/user" +mkdir -p "${COOKBOOK_STAGE}/usr/share" +cp -v "${COOKBOOK_SOURCE}/"*.pdf "${COOKBOOK_STAGE}/usr/share" """ From cb48d8c091b5a496184bb637ee2f5a7ae8cc15d2 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 27 Sep 2026 19:33:37 +0200 Subject: [PATCH 11/11] Remove crates-io-index package It is useless now that the spare registry is the default in Cargo as Cargo no longer looks at the git registry repo at all. --- recipes/dev/crates-io-index/recipe.toml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 recipes/dev/crates-io-index/recipe.toml diff --git a/recipes/dev/crates-io-index/recipe.toml b/recipes/dev/crates-io-index/recipe.toml deleted file mode 100644 index 0d0b92f1e..000000000 --- a/recipes/dev/crates-io-index/recipe.toml +++ /dev/null @@ -1,11 +0,0 @@ -[source] -git = "https://github.com/rust-lang/crates.io-index.git" -shallow_clone = true - -[build] -template = "custom" -script = """ -dir="${COOKBOOK_STAGE}/home/user/.cargo/registry/index/github.com-1ecc6299db9ec823" -mkdir -pv "${dir}" -cp -rv "${COOKBOOK_SOURCE}/.git" "${dir}" -"""