Summary: | app-editors/zed: add arm64 support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | demize |
Component: | Current packages | Assignee: | Robert G. Siebeck <gentoo.2019> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | demize, proxy-maint |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | ARM64 | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/39029 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Proposed patch for ARM64 support
Updated patch after feedback |
Description
demize
2024-09-01 19:05:57 UTC
Created attachment 901878 [details, diff]
Proposed patch for ARM64 support
Comment on attachment 901878 [details, diff] Proposed patch for ARM64 support >--- a/app-editors/zed/zed-0.150.4.ebuild >+++ b/app-editors/zed/zed-0.150.4.ebuild >@@ -1119,6 +1120,10 @@ > export RUSTFLAGS="${RUSTFLAGS} -C symbol-mangling-version=v0 --cfg tokio_unstable -C link-arg=-fuse-ld=mold -C link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib" > # linking error with llvm-18 > export RUSTFLAGS="${RUSTFLAGS} -C link-args=-Wl,-z,nostart-stop-gc" >+ # use gles (potential vulkan support workaround) if required >+ if $(use gles-only); then The $() here is totally extraneous, and also wrong. It evaluates "use gles-only", and inserts the stdout of that command as the argument to "if". You should just do if use gles-only >+ export RUSTFLAGS="${RUSTFLAGS} --cfg gles" >+ fi > } > > src_prepare() { Created attachment 901898 [details, diff]
Updated patch after feedback
Thanks for the feedback! Not as familiar with bash scripting as I'd like, so I'll happily take that. Updated my patch and tested again to confirm it works as expected with both empty USE and USE=gles-only. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92aa649837ee306fecfe94a92587151861450944 commit 92aa649837ee306fecfe94a92587151861450944 Author: Robert Siebeck <gentoo.2019@r123.de> AuthorDate: 2024-10-18 13:35:25 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-10-19 11:21:44 +0000 app-editors/zed: add 0.157.5 Add gles use flag Closes: https://bugs.gentoo.org/938893 Signed-off-by: Robert Siebeck <gentoo.2019@r123.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org> app-editors/zed/Manifest | 2 + app-editors/zed/metadata.xml | 3 + app-editors/zed/zed-0.157.5.ebuild | 142 +++++++++++++++++++++++++++++++++++++ 3 files changed, 147 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a33516254b92f702df6d158cf59e92e418cc45c commit 8a33516254b92f702df6d158cf59e92e418cc45c Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2024-10-19 12:56:25 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-10-19 12:56:25 +0000 profiles/arch/arm64: force app-editors/zed[gles] Bug: https://bugs.gentoo.org/938893 Signed-off-by: Joonas Niilola <juippis@gentoo.org> profiles/arch/arm64/package.use.force | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) Please track bug 941849 for the keywording. We generally don't let users keyword packages, even though I don't doubt you that it works. |