vn971 / rua

Build tool for Arch Linux providing control, review and jailed build options
GNU General Public License v3.0
427 stars 41 forks source link

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

Open OliverUv opened 4 years ago

OliverUv commented 4 years ago

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.

vn971 commented 4 years ago

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?

OliverUv commented 4 years ago

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, notifications@github.com 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 .