rua icon indicating copy to clipboard operation
rua copied to clipboard

Emulate or allow passing `--assume-installed` to pacman

Open OliverUv opened this issue 4 years ago • 2 comments

I've installed rustup, cargo, etc through "the rust way" with rustup.

Now I want to install wasm-pack with rua. I can download the MAKEPKG of AUR's wasm-pack and remove cargo from the dependency list, but I would prefer to handle all my aur installs through rua.

I'd like to be able to do something like rua install --assume-installed rust=1:1.41.0-1 wasm-pack, or be able to add rust/cargo to some list of assumed installed packages in a conf file.

I may be mistaken in how exactly to use the --assume-installed argument for pacman as I haven't needed to use it yet, so the command above is only an example.

Adding IgnorePkg = cargo or IgnorePkg = rust to pacman.conf does not seem to have any effect.

OliverUv avatar Mar 02 '20 21:03 OliverUv

Hi Oliver, thanks for raising! Would you be willing to work on that feature?

Adding IgnorePkg = cargo or IgnorePkg = rust to pacman.conf does not seem to have any effect.

This section does not silently omit a dependency in pacman either I think, so you'll have to explicitly ignore the dep if you want to install a package.

Also note that rua is unaware of versions at the moment, so it'll ignore the whole package, not just a specific version of it. https://github.com/vn971/rua#limitations

That being said, I think it's certainly doable. During package resolution, you should just filter out dependencies provided by --assume-installed.

What do you think?

vn971 avatar Mar 03 '20 10:03 vn971

I'm currently busy but will check out the rua code base next week and get back to you.

On Tue, 3 Mar 2020, 18:55 Vasili Novikov, [email protected] wrote:

Hi Oliver, thanks for raising! Would you be willing to work on that feature?

Adding IgnorePkg = cargo or IgnorePkg = rust to pacman.conf does not seem to have any effect.

This section does not silently omit a dependency in pacman either I think, so you'll have to explicitly ignore the dep if you want to install a package.

Also note that rua is unaware of versions at the moment, so it'll ignore the whole package, not just a specific version of it. https://github.com/vn971/rua#limitations

That being said, I think it's certainly doable. During package resolution, you should just filter out dependencies provided by --assume-installed.

What do you think?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vn971/rua/issues/106?email_source=notifications&email_token=AAC3N2MNFOGSY63FQ753733RFTOZFA5CNFSM4K75LZX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENTASGQ#issuecomment-593889562, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC3N2JBG4RCYN4ZQYUZNJ3RFTOZFANCNFSM4K75LZXQ .

OliverUv avatar Mar 03 '20 12:03 OliverUv