You are not logged in.

#1 2024-12-12 19:24:51

wreed
Member
Registered: 2023-07-25
Posts: 2

[SOLVED] Let pacman *think* you have a package installed

I prefer to use the Rustup tool on my own, within my home directory. (I know that rustup is in the repositories, this is just the way I have preferred to use rustup, as the upstream intends it to be used)
To avoid needing to have a Rust package installed through pacman, my solution has been editing every PKGBUILD to remove cargo/rust whenever present.
Building packages still succeeds, since makepkg inherits my PATH and finds the needed binaries anyway.

My question is if it is possible to inform pacman/makepkg/libalpm to ignore a specific dependency.

I understand that something like this could 'break my system', however if that were the consequence, I'd take 100% responsibility, and wouldn't waste anyone's time looking for support on the forums or other official channels.

While trying to solve this on my own, I read:

Wiki articles:
Pacman, Arch build system, makepkg, PKGBUILD

Manuals: pacman (8), pacman.conf (5), makepkg (8), makepkg.conf (5) libalpm (3), libalpm_options (3) and libalpm_depends (3)

Last edited by wreed (2024-12-12 22:37:19)


perl > {sed/awk}

Offline

#2 2024-12-12 19:35:19

loqs
Member
Registered: 2014-03-06
Posts: 18,206

Re: [SOLVED] Let pacman *think* you have a package installed

Create an emty package providing rustup e.t.c.?

pkgname=rustup-fake
pkgver=1
pkgrel=1
pkgdesc="The Rust toolchain installer (fake package)"
arch=('any')
provides=('rust' 'rustup' 'cargo' 'rust-nightly' 'cargo-nightly' 'rustfmt' 'rust-src'
          'lib32-rust-libs' 'rust-musl' 'rust-wasm' 'rust-analyzer')

Offline

#3 2024-12-12 21:56:43

wreed
Member
Registered: 2023-07-25
Posts: 2

Re: [SOLVED] Let pacman *think* you have a package installed

loqs wrote:

Create an emty package providing rustup

You're a genius and a legend mate. Thanks.


perl > {sed/awk}

Offline

Board footer

Powered by FluxBB