Package Details: graphite-editor-git r2855.cde8dd7-1

Git Clone URL: https://aur.archlinux.org/graphite-editor-git.git (read-only, click to copy)
Package Base: graphite-editor-git
Description: raster & vector editor with a modern node-based, non-destructive, procedural workflow
Upstream URL: https://github.com/GraphiteEditor/Graphite
Licenses: Apache-2.0
Conflicts: graphite-editor
Provides: graphite-editor
Submitter: alerque
Maintainer: alerque
Last Packager: alerque
Votes: 5
Popularity: 0.20
First Submitted: 2024-03-29 23:19 (UTC)
Last Updated: 2026-06-13 13:08 (UTC)

Latest Comments

1 2 Next › Last »

alerque commented on 2026-06-13 09:12 (UTC) (edited on 2026-06-13 09:13 (UTC) by alerque)

@caelia Did you build in a chroot (e.g. pkgctl build or makechrootpkg) with rust instead of rustup as a dependency? I did try and it still fails. If you just run makepkg on your host system you are still allowing the build system to reach out for anything installed on your host system even if it is not listed in the package dependencies or make dependencies. In this case even if you start the build with the stable toolchain one of the dependency's internal build process with create a child-build process of it's own and invoke rustup to fetch a nightly toolchain and use that instead, so your test did not do what you thought it did. And it's not really your fault, this is really an unkosher bit of monkey business upstream. I've raised this issue to suggest alternatives.

caelia commented on 2026-06-12 12:00 (UTC)

@alerque I'm not sure what you mean by 'stable rust packaging' or 'expose rustup to the build environment'. I didn't do anything elaborate, I simply commented out the following lines in PKGBUILD:

_toolchain='nightly-2025-06-23'

and every instance of

export RUSTUP_TOOLCHAIN="$_toolchain"

And I verified that the stable toolchain was active before running makepkg.

alerque commented on 2026-06-12 09:35 (UTC)

@caelia The license builder thing is a pain, it breaks and fixes itself about every other day. I think I just found a way to work around it, but can't post it yet because of other things.

I also just tried building with stable rust and still ran into a deeply embeded dependency that manually tries to run rustup and switch to a specific nightly. Did you actually try it with stable rust packaging or did you still expose rustup to the build environment?

caelia commented on 2026-06-06 10:03 (UTC)

The nightly Rust toolchain specified in PKGBUILD seems to be out of date. Sorry, I don't have the error message, but it did cause an error. I was able to build the package against the latest stable Rust version (1.96).

caelia commented on 2026-06-06 07:27 (UTC) (edited on 2026-06-06 07:50 (UTC) by caelia)

UPDATE: the issue appears to have been fixed upstream.

The package is not building for me. I get the following error:

Running `/home/caelia/src/Graphite/target/debug/third-party-licenses`
Changes in licenses detected, generating new license file.
Error: cargo about generate failed:
2026-06-06 2:36:23.451540752 +00:00:00 [ERROR] `cargo metadata` exited with an error: error: failed to download `objc2-metal v0.3.2`

Caused by:
  attempting to make an HTTP request, but --frozen was specified
: `cargo metadata` exited with an error: error: failed to download `objc2-metal v0.3.2`

Caused by:
  attempting to make an HTTP request, but --frozen was specified

I'm pretty sure this is not caused by the --frozen flag in the PKGBUILD. Removing that flag has no effect. A cargo command with this flag is issued in $SRC/tools/third-party-licenses/src/cargo.rs; I believe that is where --frozen is specified in the context of this error. However, IDK if this is an actual bug in the upstream code or if we need different top-level build instructions.

truedoctor commented on 2026-03-05 10:34 (UTC)

Hi, I'm one of the maintainers of Graphite. If you ever need help with packaging Graphite because we broke something, please let either me (dennis@kobert.dev) or Timon (me@timon.zip) know and we'll try to help. We do also intend to release the desktop app publically in a more official capacity soon TM. So it might be useful to coordinate that with you

mdrv commented on 2026-03-02 02:05 (UTC)

@KorolOrol Use my patch on previous comment; particularly add cargo run --package third-party-licenses --features desktop at the end of prepare function.

KorolOrol commented on 2026-03-01 20:58 (UTC) (edited on 2026-03-01 20:58 (UTC) by KorolOrol)

I'm getting this error:

   Compiling graphite-desktop v0.1.0 (/home/korolorol/.cache/paru/clone/graphite-editor-git/src/graphite-editor-git/desktop)
error: couldn't read `/home/korolorol/.cache/paru/clone/graphite-editor-git/src/graphite-editor-git/desktop/third-party-licenses.txt.xz`: No such file or directory (os error 2)
   --> desktop/src/app.rs:421:22
    |
421 | ... = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/third-party-licenses.txt.xz"));
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: could not compile `graphite-desktop` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

mdrv commented on 2026-02-28 11:20 (UTC)

I was able to build and run on aarch64 device. Also, ~/.cache/rust-gpu/ needs to be cleared for updating.

diff --git a/PKGBUILD b/PKGBUILD
index ffd6f7d..549838c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,3 +8,3 @@ pkgrel=1
 pkgdesc='raster & vector editor with a modern node-based, non-destructive, procedural workflow'
-arch=(x86_64)
+arch=(x86_64 aarch64)
 url="https://github.com/GraphiteEditor/$_pkgname"
@@ -40,2 +40,3 @@ prepare() {
    export RUSTUP_TOOLCHAIN="$_toolchain"
+   rm -rf "$HOME/.cache/rust-gpu"
    cargo fetch --locked --target "$(rustc --print host-tuple)"
@@ -43,2 +44,4 @@ prepare() {
    npm run setup
+   popd
+   cargo run --package third-party-licenses --features desktop
 }
@@ -73,3 +76,3 @@ package() {
    install -d "$pkgdir$_cef_path"
-   cp -a target/release/build/cef-dll-sys-*/out/cef_linux_x86_64/. "$pkgdir$_cef_path"
+   cp -a target/release/build/cef-dll-sys-*/out/cef_linux_${CARCH}/. "$pkgdir$_cef_path"
    install -Dm644 -t "$pkgdir/usr/share/applications/" desktop/assets/art.graphite.Graphite.desktop