-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zellij: 0.40.1 -> 0.41.1 #353630
zellij: 0.40.1 -> 0.41.1 #353630
Conversation
|
Maintainers should be aware of the following:
Source: |
There has been a new patch release due to some issues with the generic binaries in https://github.com/zellij-org/zellij/releases/tag/v0.41.1 |
Thank you @thegrubster,
Yes, this seems relevant. |
Maybe we can patch |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on aarch64-linux
.
I actually tried this, but it doesn't seem to work. I added postPatch = ''
substituteInPlace zellij-utils/Cargo.toml \
--replace-fail 'isahc = "1.7.2"' 'isahc = { version = "1.7.2", default-features = false, features = ["http2", "text-decoding"] }'
''; But I'm still not seeing curl as a dependency: ➜ nix-store --query --references result/
/nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36
/nix/store/m8gwqmn8k3jm0gbcia358mz4y00lgmbc-openssl-3.3.2
/nix/store/s94fwp43xhzkvw8l8nqslskib99yifzi-gcc-13.3.0-lib
➜ ldd ./result/bin/zellij
linux-vdso.so.1 (0x00007f81611ab000)
libssl.so.3 => /nix/store/m8gwqmn8k3jm0gbcia358mz4y00lgmbc-openssl-3.3.2/lib/libssl.so.3 (0x00007f815f2f4000)
libcrypto.so.3 => /nix/store/m8gwqmn8k3jm0gbcia358mz4y00lgmbc-openssl-3.3.2/lib/libcrypto.so.3 (0x00007f815ec00000)
libc.so.6 => /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/libc.so.6 (0x00007f815ea07000)
libgcc_s.so.1 => /nix/store/s94fwp43xhzkvw8l8nqslskib99yifzi-gcc-13.3.0-lib/lib/libgcc_s.so.1 (0x00007f8161180000)
libm.so.6 => /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/libm.so.6 (0x00007f815f20d000)
libdl.so.2 => /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/libdl.so.2 (0x00007f815f206000)
libpthread.so.0 => /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/libpthread.so.0 (0x00007f815f201000)
/nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib/ld-linux-x86-64.so.2 => /nix/store/3bvxjkkmwlymr0fssczhgi39c3aj1l7i-glibc-2.40-36/lib64/ld-linux-x86-64.so.2 (0x00007f81611ad000) Am I holding this wrong? |
Does it need |
I verified that this is needed on darwin at least (due to zellij-org/zellij#3668), but I'm having some trouble building this on aarch64-linux through the darwin linux builder (I don't have access to a Linux machine at the moment). |
Yeah, I didn't mention it but I also added curl to the build inputs of course :) |
It looks like |
@tjni I also just found that by looking at what other packages in nixpkgs are doing, it's working now! |
It would be helpful if anyone could test this on darwin also. |
pkgs/tools/misc/zellij/default.nix
Outdated
@@ -30,11 +31,19 @@ rustPlatform.buildRustPackage rec { | |||
mandown | |||
installShellFiles | |||
pkg-config | |||
(lib.getDev curl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For curl-config, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So that cargo finds curl, using pkg-config. Without this, it doesn't.
mandown | ||
installShellFiles | ||
pkg-config | ||
(lib.getDev curl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can go with this for now, but I think cross-compilation might be broken.
- curl-sys uses https://docs.rs/pkg-config/latest/pkg_config/#cross-compilation, which seems to require setting certain environment variables for cross-compilation use case.
- we need it to use at build-time the .pc files from curl used at runtime, so how do we do that?
I don't have enough experience in cross-compilation to know how to do this. Maybe @Artturin or someone else can help out here (perhaps as a follow up to this PR)?
Note: This is technically not needed on Darwin since pkg-config is not used on Darwin to find curl
. It does seem to be used on Darwin and all platforms to find OpenSSL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you make its inclusion conditional here, or do we consider that it doesn't matter to include this path in the sandbox also on darwin and it will simply not be used then?
For the cross-compilation, I also don't have much experience with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been thinking about it a little more, and I think we should just keep it like this for now. There's probably a nice solution for this somewhere, but I'll mull it over some more separately.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for Darwin
Does 0.41.1 work without 21de802 and did we not need it before the version bump? Otherwise that should probably be squashed into the first commit if it's unique to the version bump to avoid a commit that technically is breaking a package (Doesn't truly matter, just a nit to think about for atomic commits.). Otherwise, LGTM. |
|
It does work, it just has a vendored curl binary, which is not ideal in terms of security updates. |
If it works without it, that's fine to me. |
https://github.com/zellij-org/zellij/releases/tag/v0.41.0
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.