Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Some Rust packages build a lot of stuff during do_install
@ 2021-03-03 15:12 ericonr
  2021-03-03 16:09 ` leahneukirchen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ericonr @ 2021-03-03 15:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2775 bytes --]

New issue by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/29207

Description:
At least `rust-analyzer` and `angle-grinder`. Example below

```
=> rust-analyzer-2021.03.01_2: running do_install ...
  Installing rust-analyzer v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/rust-analyzer)
    Updating crates.io index
warning: package `pin-project-lite v0.2.4` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
   Compiling once_cell v1.7.0
warning: Could not find `.git/HEAD` from manifest dir!
   Compiling countme v2.0.4
   Compiling thread_local v1.1.3
   Compiling profile v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/profile)
   Compiling rowan v0.12.6
   Compiling tracing-subscriber v0.2.16
   Compiling test_utils v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/test_utils)
   Compiling syntax v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/syntax)
   Compiling tracing-tree v0.1.8
   Compiling chalk-solve v0.58.0
   Compiling base_db v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/base_db)
   Compiling mbe v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/mbe)
   Compiling proc_macro_api v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/proc_macro_api)
   Compiling hir_expand v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/hir_expand)
   Compiling project_model v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/project_model)
   Compiling proc_macro_srv v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/proc_macro_srv)
   Compiling chalk-recursive v0.58.0
   Compiling hir_def v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/hir_def)
   Compiling hir_ty v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/hir_ty)
   Compiling hir v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/hir)
   Compiling ide_db v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/ide_db)
   Compiling ide_assists v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/ide_assists)
   Compiling ide_ssr v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/ide_ssr)
   Compiling ide_completion v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/ide_completion)
   Compiling ide v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/ide)
   Compiling rust-analyzer v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/rust-analyzer)
    Finished release [optimized] target(s) in 4m 07s
  Installing /destdir//rust-analyzer-2021.03.01/usr/bin/rust-analyzer
   Installed package `rust-analyzer v0.0.0 (/builddir/rust-analyzer-2021-03-01/crates/rust-analyzer)` (executable `rust-analyzer`)
warning: be sure to add `/destdir//rust-analyzer-2021.03.01/usr/bin` to your PATH to be able to run the installed binaries
=> rust-analyzer-2021.03.01_2: running post_install ...
```

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Some Rust packages build a lot of stuff during do_install
  2021-03-03 15:12 [ISSUE] Some Rust packages build a lot of stuff during do_install ericonr
@ 2021-03-03 16:09 ` leahneukirchen
  2021-03-15 23:28 ` gbrlsnchs
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: leahneukirchen @ 2021-03-03 16:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/issues/29207#issuecomment-789828902

Comment:
Comparing with Nix and Arch shows that `cargo install` is not suitable for our purpose (and cannot be made), so I'd suggest we manually grab the binaries from the build dir as these distros do.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Some Rust packages build a lot of stuff during do_install
  2021-03-03 15:12 [ISSUE] Some Rust packages build a lot of stuff during do_install ericonr
  2021-03-03 16:09 ` leahneukirchen
@ 2021-03-15 23:28 ` gbrlsnchs
  2021-03-15 23:49 ` gbrlsnchs
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gbrlsnchs @ 2021-03-15 23:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

New comment by gbrlsnchs on void-packages repository

https://github.com/void-linux/void-packages/issues/29207#issuecomment-799828820

Comment:
This *might* have something to do with [this issue](https://users.rust-lang.org/t/cargo-install-triggering-new-compilation-after-cargo-build/54123) I reported on Rust forums. Overriding `do_install` to just grab the binary generated during `do_build` makes total sense to me. :slightly_smiling_face: 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Some Rust packages build a lot of stuff during do_install
  2021-03-03 15:12 [ISSUE] Some Rust packages build a lot of stuff during do_install ericonr
  2021-03-03 16:09 ` leahneukirchen
  2021-03-15 23:28 ` gbrlsnchs
@ 2021-03-15 23:49 ` gbrlsnchs
  2022-05-06  2:08 ` github-actions
  2022-05-08  1:37 ` 0x5c
  4 siblings, 0 replies; 6+ messages in thread
From: gbrlsnchs @ 2021-03-15 23:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

New comment by gbrlsnchs on void-packages repository

https://github.com/void-linux/void-packages/issues/29207#issuecomment-799828820

Comment:
This *might* have something to do with [this issue](https://users.rust-lang.org/t/cargo-install-triggering-new-compilation-after-cargo-build/54123) I reported on Rust forums ([now reported on Cargo's repo too](https://github.com/rust-lang/cargo/issues/9272)). Overriding `do_install` to just grab the binary generated during `do_build` makes total sense to me. :slightly_smiling_face: 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Some Rust packages build a lot of stuff during do_install
  2021-03-03 15:12 [ISSUE] Some Rust packages build a lot of stuff during do_install ericonr
                   ` (2 preceding siblings ...)
  2021-03-15 23:49 ` gbrlsnchs
@ 2022-05-06  2:08 ` github-actions
  2022-05-08  1:37 ` 0x5c
  4 siblings, 0 replies; 6+ messages in thread
From: github-actions @ 2022-05-06  2:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/29207#issuecomment-1119197779

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Some Rust packages build a lot of stuff during do_install
  2021-03-03 15:12 [ISSUE] Some Rust packages build a lot of stuff during do_install ericonr
                   ` (3 preceding siblings ...)
  2022-05-06  2:08 ` github-actions
@ 2022-05-08  1:37 ` 0x5c
  4 siblings, 0 replies; 6+ messages in thread
From: 0x5c @ 2022-05-08  1:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]

New comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/issues/29207#issuecomment-1120329925

Comment:
I've hit this in https://github.com/void-linux/void-packages/pull/37013, and I know what might be happening in the case of all of those packages. Essentially cargo arbitrarily decides to drop a feature from a transient dependency (with no indication of why). You can see it when comparing the command cargo runs at build and at install for the deepest dependency that gets rebuilt (the command is shown when adding `-vv`).

In the case of #37013, the dependency that gets rebuilt is `syn` because cargo drops its `full` feature. There's no apparent reason for that drop, and it might even be a bug somewhere. The short-term fix was to explicitly add that feature for that dependency in the top crate's Cargo.toml.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-08  1:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 15:12 [ISSUE] Some Rust packages build a lot of stuff during do_install ericonr
2021-03-03 16:09 ` leahneukirchen
2021-03-15 23:28 ` gbrlsnchs
2021-03-15 23:49 ` gbrlsnchs
2022-05-06  2:08 ` github-actions
2022-05-08  1:37 ` 0x5c

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).