2 Commits

Author SHA1 Message Date
a47133d3df fixup
Some checks failed
Gentoo Utils / build-oci-image (push) Failing after 5m6s
Gentoo Utils / build (push) Has been skipped
Gentoo Utils / test (push) Has been skipped
Gentoo Utils / fuzz (push) Has been skipped
Gentoo Utils / check-format (push) Has been skipped
Gentoo Utils / docs (push) Has been skipped
Gentoo Utils / grep (push) Has been skipped
2025-12-21 04:36:12 +00:00
50a911a43c port to meson cargo
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 10m53s
Gentoo Utils / check-format (push) Failing after 1m0s
Gentoo Utils / docs (push) Failing after 58s
Gentoo Utils / grep (push) Successful in 56s
Gentoo Utils / build (push) Failing after 1m2s
Gentoo Utils / test (push) Has been skipped
Gentoo Utils / fuzz (push) Has been skipped
Use the new unstable meson cargo support. This simplifies the
meson.build script and allows to use crates such as clap that require
picking up features from Cargo.toml.

This also allows us to not embed thiserror in subprojects, and instead
to simply place some patches and a meson.build in a specific directory
and meson will automatically pick them up.
2025-12-21 04:20:53 +00:00
6 changed files with 10 additions and 29 deletions

View File

@@ -2,6 +2,8 @@ FROM gentoo/stage3:latest
COPY ./. / COPY ./. /
ENV EGIT_CLONE_TYPE=shallow
RUN getuto RUN getuto
RUN emerge-webrsync RUN emerge-webrsync
@@ -14,6 +16,7 @@ RUN emerge \
sys-process/parallel \ sys-process/parallel \
net-libs/nodejs net-libs/nodejs
RUN git clone https://jturnerusa.dev/cgit/ebuilds/ /var/db/repos/spawns RUN git clone https://jturnerusa.dev/cgit/ebuilds/ /var/db/repos/spawns
COPY etc/portage/repos.conf /etc/portage/ COPY etc/portage/repos.conf /etc/portage/

View File

@@ -1 +0,0 @@
sec-keys/jturnerusa

View File

@@ -89,7 +89,7 @@ jobs:
image_tag: ${{ steps.image-changes.outputs.image_tag }} image_tag: ${{ steps.image-changes.outputs.image_tag }}
build: build:
runs-on: gentoo runs-on: brutalisk
env: env:
CC: 'clang' CC: 'clang'
CXX: 'clang++' CXX: 'clang++'
@@ -108,7 +108,7 @@ jobs:
# FIXME: Currently this rebuilds everything. Instead we should bring over the build dir from the build job. This will come in handy # FIXME: Currently this rebuilds everything. Instead we should bring over the build dir from the build job. This will come in handy
# when we have multiple build targets and configs. What we have currently is fine until we get lots of builds going # when we have multiple build targets and configs. What we have currently is fine until we get lots of builds going
test: test:
runs-on: gentoo runs-on: brutalisk
env: env:
CC: 'clang' CC: 'clang'
CXX: 'clang++' CXX: 'clang++'
@@ -126,7 +126,7 @@ jobs:
ninja test -C build ninja test -C build
fuzz: fuzz:
runs-on: gentoo runs-on: brutalisk
env: env:
CC: 'clang' CC: 'clang'
CXX: 'clang++' CXX: 'clang++'
@@ -158,7 +158,7 @@ jobs:
continue-on-error: true continue-on-error: true
check-format: check-format:
runs-on: gentoo runs-on: brutalisk
needs: [build-oci-image] needs: [build-oci-image]
container: container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
@@ -173,7 +173,7 @@ jobs:
ninja rustfmt -C build ninja rustfmt -C build
docs: docs:
runs-on: gentoo runs-on: brutalisk
needs: [build-oci-image] needs: [build-oci-image]
container: container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
@@ -187,7 +187,7 @@ jobs:
ninja rustdoc -C docs ninja rustdoc -C docs
grep: grep:
runs-on: gentoo runs-on: brutalisk
needs: [build-oci-image] needs: [build-oci-image]
container: container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}

3
.gitignore vendored
View File

@@ -2,5 +2,4 @@
/subprojects /subprojects
!/subprojects !/subprojects
/subprojects/* /subprojects/*
!/subprojects/packagefiles !/subprojects/packagefiles
!/subprojects/*.wrap

View File

@@ -1,10 +0,0 @@
[wrap-file]
directory = thiserror-2.0.17
source_url = https://crates.io/api/v1/crates/thiserror/2.0.17/download
source_filename = thiserror-2.0.17.tar.gz
source_hash = f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8
method = cargo
diff_files = thiserror-2.0.17-include.patch
# bump this version number on every change to meson.build or the patches:
# v2

View File

@@ -1,10 +0,0 @@
[wrap-file]
directory = thiserror-impl-2.0.17
source_url = https://crates.io/api/v1/crates/thiserror-impl/2.0.17/download
source_filename = thiserror-impl-2.0.17.tar.gz
source_hash = 3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913
method = cargo
diff_files = thiserror-impl-2.0.17-include.patch
# bump this version number on every change to meson.build or the patches:
# v2