You are not logged in.

#1 2020-05-08 21:02:18

Strubbl
Member
Registered: 2013-12-10
Posts: 26

[solved] Aur package shall depend on rustc and not on rust

Hi,

i have created the package read-it-later-git[0]. It depends on rustc rather than rust. Currently i have rust as a dependency in the PKGBUILD. But rustup, which satisfies the dependency, does not include rustc.

Is there a way to correctly model this dependency on rustc?


[0]
https://aur.archlinux.org/packages/read-it-later-git

Last edited by Strubbl (2020-05-08 22:10:34)

Offline

#2 2020-05-08 21:09:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,865
Website

Re: [solved] Aur package shall depend on rustc and not on rust

What do you mean? Both extra/rust and community/rustup provide /usr/bin/rustc.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-05-08 21:23:21

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [solved] Aur package shall depend on rustc and not on rust

The AUR renders this as such:

Dependencies (6)
-------------------------
[...]
rust (rust-i586-git, rust-git, rust-mrustc, rust-bin, rustup-git, rust-nightly, rust-nightly-bin, rustup) (make)

Note the last provider...


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2020-05-08 21:26:30

Strubbl
Member
Registered: 2013-12-10
Posts: 26

Re: [solved] Aur package shall depend on rustc and not on rust

WorMzy wrote:

What do you mean? Both extra/rust and community/rustup provide /usr/bin/rustc.

i did receive a different comment from @The-Compiler:

FWIW, when trying to install this with "rustup" from [community] installed (which provides "rust"), I got:

meson.build:1:0: ERROR: Unknown compiler(s): ['rustc']

However, replacing rustup with rust worked, so that might be an issue on my side.

source: https://aur.archlinux.org/packages/read … ent-743997

Offline

#5 2020-05-08 21:30:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,532
Website

Re: [solved] Aur package shall depend on rustc and not on rust

And have you replicated or confirmed that problem?  You really should have started with the symptoms rather than your assumed cause and solution.  This is the very definition of an X-Y problem.

EDIT: I could replicate the error if I installed but did not do anything to configure rustup.  Of course that's silly given what rustup is.  Once I initialized rustup according to our wiki page, it worked fine to build your AUR package.

Last edited by Trilby (2020-05-08 22:11:33)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2020-05-08 22:10:20

Strubbl
Member
Registered: 2013-12-10
Posts: 26

Re: [solved] Aur package shall depend on rustc and not on rust

Trilby wrote:

And have you replicated or confirmed that problem?  You really should have started with the symtoms rather than your assumed cause and solution.  This is the very definition of an X-Y problem.

EDIT: I could replicate the error if I installed but did not do anything to configure rustup.  Of course that's silly given what rustup is.  Once I initialized rustup according to our wiki page, it worked fine to build your AUR package.

You are right. Sorry and thank you for your investigation.

Offline

Board footer

Powered by FluxBB