Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package request:
@ 2023-05-02 15:50 Zapeth
  2023-05-03 11:16 ` Package request: rust-src tranzystorek-io
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Zapeth @ 2023-05-02 15:50 UTC (permalink / raw)
  To: ml

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

New issue by Zapeth on void-packages repository

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

Description:
### Package name

rust-src

### Package homepage

https://github.com/rust-lang/rust

### Description

It looks like the [rust](https://github.com/void-linux/void-packages/blob/master/srcpkgs/rust/template) package is missing the std and core source files that would normally be required for language-servers to provide analysis (ie `rust-analyzer`).

I'm not sure what configuration steps would be necessary to provide the source files as a separate package, it seems it might be possible to include them in the build with the [`extended`](https://github.com/rust-lang/rust/blob/98c33e47a495fbd7b22bce9ce32f2815991bc414/config.example.toml#L293) and [`tools`](https://github.com/rust-lang/rust/blob/98c33e47a495fbd7b22bce9ce32f2815991bc414/config.example.toml#L303-L312) settings in the package `config.toml`.

Alpine also provides it as a separate package (https://pkgs.alpinelinux.org/package/v3.17/community/x86_64/rust-src), but I don't know how much can be gleaned from that, if anything.

Sidenote: `rust-analyzer` currently doesn't work out of the box with the `rust` package due to the missing sources, setting up this package and adding it as a dependency to `rust-analyzer` should hopefully fix that

### Does the requested package meet the package requirements?

Required

### Is the requested package released?

Yes

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

* Re: Package request: rust-src
  2023-05-02 15:50 [ISSUE] Package request: Zapeth
@ 2023-05-03 11:16 ` tranzystorek-io
  2023-05-03 12:54 ` Zapeth
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tranzystorek-io @ 2023-05-03 11:16 UTC (permalink / raw)
  To: ml

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

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/issues/43716#issuecomment-1532853987

Comment:
The `rust` package is almost exclusively for building void's rust packages, for development purposes you'll want to use rustup. I'm guessing rust-analyzer can be configured to use sources from there.

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

* Re: Package request: rust-src
  2023-05-02 15:50 [ISSUE] Package request: Zapeth
  2023-05-03 11:16 ` Package request: rust-src tranzystorek-io
@ 2023-05-03 12:54 ` Zapeth
  2023-05-03 17:51 ` classabbyamp
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Zapeth @ 2023-05-03 12:54 UTC (permalink / raw)
  To: ml

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

New comment by Zapeth on void-packages repository

https://github.com/void-linux/void-packages/issues/43716#issuecomment-1532981085

Comment:
> The rust package is almost exclusively for building void's rust packages

Yes, thats why I suggested it as a separate package

> for development purposes you'll want to use rustup

I'd prefer sticking to the distro-packaged variants if possible (rust-dbg and rust-doc were also accepted as separate packages)

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

* Re: Package request: rust-src
  2023-05-02 15:50 [ISSUE] Package request: Zapeth
  2023-05-03 11:16 ` Package request: rust-src tranzystorek-io
  2023-05-03 12:54 ` Zapeth
@ 2023-05-03 17:51 ` classabbyamp
  2023-05-04  8:11 ` nekopsykose
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: classabbyamp @ 2023-05-03 17:51 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/43716#issuecomment-1533465303

Comment:
> The rust package is almost exclusively for building void's rust packages

generally yes, but there is also the case of platforms which rustup doesn't support but void does

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

* Re: Package request: rust-src
  2023-05-02 15:50 [ISSUE] Package request: Zapeth
                   ` (2 preceding siblings ...)
  2023-05-03 17:51 ` classabbyamp
@ 2023-05-04  8:11 ` nekopsykose
  2023-05-04 19:33 ` tranzystorek-io
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: nekopsykose @ 2023-05-04  8:11 UTC (permalink / raw)
  To: ml

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

New comment by nekopsykose on void-packages repository

https://github.com/void-linux/void-packages/issues/43716#issuecomment-1534269171

Comment:
i also personally only ever use the packaged rust toolchains

for -src specifically, you only need to add `src` to the built `tools` and then the `rust-src-*.tar*` is generated, which has the sources to unpack into destdir

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

* Re: Package request: rust-src
  2023-05-02 15:50 [ISSUE] Package request: Zapeth
                   ` (3 preceding siblings ...)
  2023-05-04  8:11 ` nekopsykose
@ 2023-05-04 19:33 ` tranzystorek-io
  2023-05-04 19:45 ` classabbyamp
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tranzystorek-io @ 2023-05-04 19:33 UTC (permalink / raw)
  To: ml

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

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/issues/43716#issuecomment-1535305695

Comment:
Sounds reasonable, I can prepare a PR then

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

* Re: Package request: rust-src
  2023-05-02 15:50 [ISSUE] Package request: Zapeth
                   ` (4 preceding siblings ...)
  2023-05-04 19:33 ` tranzystorek-io
@ 2023-05-04 19:45 ` classabbyamp
  2023-06-06 11:15 ` tranzystorek-io
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: classabbyamp @ 2023-05-04 19:45 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/43716#issuecomment-1535318045

Comment:
let's just include it in the next rust update

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

* Re: Package request: rust-src
  2023-05-02 15:50 [ISSUE] Package request: Zapeth
                   ` (5 preceding siblings ...)
  2023-05-04 19:45 ` classabbyamp
@ 2023-06-06 11:15 ` tranzystorek-io
  2023-06-16 21:14 ` [ISSUE] [CLOSED] " Zapeth
  2023-06-16 21:14 ` Zapeth
  8 siblings, 0 replies; 10+ messages in thread
From: tranzystorek-io @ 2023-06-06 11:15 UTC (permalink / raw)
  To: ml

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

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/issues/43716#issuecomment-1578510979

Comment:
Pending addition in #44220 

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

* Re: Package request: rust-src
  2023-05-02 15:50 [ISSUE] Package request: Zapeth
                   ` (7 preceding siblings ...)
  2023-06-16 21:14 ` [ISSUE] [CLOSED] " Zapeth
@ 2023-06-16 21:14 ` Zapeth
  8 siblings, 0 replies; 10+ messages in thread
From: Zapeth @ 2023-06-16 21:14 UTC (permalink / raw)
  To: ml

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

New comment by Zapeth on void-packages repository

https://github.com/void-linux/void-packages/issues/43716#issuecomment-1595326324

Comment:
Installed and tested with rust-analyzer, which indeed seems to work out of the box now, thanks

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

* Re: [ISSUE] [CLOSED] Package request: rust-src
  2023-05-02 15:50 [ISSUE] Package request: Zapeth
                   ` (6 preceding siblings ...)
  2023-06-06 11:15 ` tranzystorek-io
@ 2023-06-16 21:14 ` Zapeth
  2023-06-16 21:14 ` Zapeth
  8 siblings, 0 replies; 10+ messages in thread
From: Zapeth @ 2023-06-16 21:14 UTC (permalink / raw)
  To: ml

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

Closed issue by Zapeth on void-packages repository

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

Description:
### Package name

rust-src

### Package homepage

https://github.com/rust-lang/rust

### Description

It looks like the [rust](https://github.com/void-linux/void-packages/blob/master/srcpkgs/rust/template) package is missing the std and core source files that would normally be required for language-servers to provide analysis (ie [rust-analyzer](https://github.com/void-linux/void-packages/blob/master/srcpkgs/rust-analyzer/template)).

I'm not sure what configuration steps would be necessary to provide the source files as a separate package, it seems it might be possible to include them in the build with the [`extended`](https://github.com/rust-lang/rust/blob/98c33e47a495fbd7b22bce9ce32f2815991bc414/config.example.toml#L293) and [`tools`](https://github.com/rust-lang/rust/blob/98c33e47a495fbd7b22bce9ce32f2815991bc414/config.example.toml#L303-L312) settings in the rust `config.toml`.

Alpine also provides the source files as a separate package (https://pkgs.alpinelinux.org/package/edge/community/x86_64/rust-src), but I don't know how much can be gleaned from their template, if anything.

Sidenote: `rust-analyzer` currently doesn't work out of the box with the `rust` package due to the missing sources, setting up this package and adding it as an optional dependency to `rust-analyzer` should hopefully fix that.

### Does the requested package meet the package requirements?

Required

### Is the requested package released?

Yes

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

end of thread, other threads:[~2023-06-16 21:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-02 15:50 [ISSUE] Package request: Zapeth
2023-05-03 11:16 ` Package request: rust-src tranzystorek-io
2023-05-03 12:54 ` Zapeth
2023-05-03 17:51 ` classabbyamp
2023-05-04  8:11 ` nekopsykose
2023-05-04 19:33 ` tranzystorek-io
2023-05-04 19:45 ` classabbyamp
2023-06-06 11:15 ` tranzystorek-io
2023-06-16 21:14 ` [ISSUE] [CLOSED] " Zapeth
2023-06-16 21:14 ` Zapeth

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).