You are not logged in.

#1 2025-04-18 16:15:59

dalu
Banned
Registered: 2014-04-16
Posts: 108

Building a package where the dependencies are missing

I'd like to build nvidia-open, because maintainers are sleeping on the job.
I downloaded the PKGBUILD and tried makepkg.

But it says

==> Missing dependencies:
  -> linux-headers
  -> nvidia-open-dkms=575.51.02

I built the required package but couldn't install

makepkg --install
==> WARNING: The package group has already been built, installing existing packages...
==> Installing nvidia-utils package group with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: nvidia-dkms-575.51.02-1 and nvidia-open-dkms-575.51.02-1 are in conflict

*sigh* I guess I'll just have to wait

But how do I resolve this, because this package provides multiple packages
https://gitlab.archlinux.org/archlinux/ … type=heads

Last edited by dalu (2025-04-18 16:16:27)

Offline

#2 2025-04-18 16:39:35

mackin_cheese
Member
Registered: 2025-01-07
Posts: 477

Re: Building a package where the dependencies are missing

Your error also tells you the problem. nvidia-dkms is in conflict with nvidia-open-dkms, those are two different packages but you can't have them both in your system.

Last edited by mackin_cheese (2025-04-18 16:43:57)

Offline

#3 2025-04-18 16:40:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,480
Website

Re: Building a package where the dependencies are missing

Just install the ones you need with 'pacman -U'.

Mod note: moving to NC.


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

#4 2025-04-19 08:58:17

dalu
Banned
Registered: 2014-04-16
Posts: 108

Re: Building a package where the dependencies are missing

2 people didn't read the initial post...
nvidia-utils is a PKGBUILD that has multiple packages, including those conflicting ones.
Why do you think added a link to the file?

Ridiculous that you're moving this to newbie corner when you're incapable of even reading the initial post.

There is zero documentation about excluding a package to be installed with makepkg in the wiki, the cli help or the man page.
The only result is a forum post that apparently uses a deprecated --pkg arg.

Last edited by dalu (2025-04-19 09:03:43)

Offline

#5 2025-04-19 09:29:57

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,480
Website

Re: Building a package where the dependencies are missing

There is zero documentation about excluding a package to be installed with makepkg

So don't use makepkg's --install flag for this. When that failed the first time, the packages were still all built, so you can pick and choose which to install with 'pacman -U'.


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

#6 2025-04-19 12:08:12

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,973

Re: Building a package where the dependencies are missing

dalu wrote:

There is zero documentation about excluding a package to be installed with makepkg

That's because makepkg has removed that support 9+ years ago .
See makepkg: remove ability to build individual packages.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2025-04-19 14:22:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: Building a package where the dependencies are missing

dalu wrote:

Ridiculous that you're moving this to newbie corner when you're incapable of even reading the initial post.

They did read the initial post. Ridiculous that you don't know how to install packages, and yes, that means it belongs in Newbie Corner.

Offline

#8 2025-04-19 16:01:54

tdowling
Member
Registered: 2020-11-26
Posts: 9

Re: Building a package where the dependencies are missing

Have you tried to install the dependencies manually?

Offline

#9 2025-04-19 16:50:21

mackin_cheese
Member
Registered: 2025-01-07
Posts: 477

Re: Building a package where the dependencies are missing

dalu wrote:

2 people didn't read the initial post...
nvidia-utils is a PKGBUILD that has multiple packages, including those conflicting ones.
Why do you think added a link to the file?

Ridiculous that you're moving this to newbie corner when you're incapable of even reading the initial post.

There is zero documentation about excluding a package to be installed with makepkg in the wiki, the cli help or the man page.
The only result is a forum post that apparently uses a deprecated --pkg arg.


what I should have said was that if two packages are in conflict in one PKGBUILD, don't use the install flag, just build them all and then install the one you need.

Offline

#10 2025-04-22 17:14:55

Natano
Member
Registered: 2025-04-21
Posts: 5
Website

Re: Building a package where the dependencies are missing

If you can't install the dependencies manually, they could be also AUR packages, and then you have to install them as ones. The packages' dependencies in AUR are under the description

Offline

#11 2025-04-22 23:07:40

cryptearth
Member
Registered: 2024-02-03
Posts: 2,117

Re: Building a package where the dependencies are missing

dalu wrote:

Ridiculous that you're moving this to newbie corner when you're incapable of even reading the initial post.

given your first topic dates back 10 years ago and you still don't know to just call

makepkg

without any additional parameters to just build to packages without installing them is what I call ridiculous
but hey - what are we with decades of experience when you just fail to read man pages?

Offline

Board footer

Powered by FluxBB