You are not logged in.

#1 2021-11-07 12:19:20

kbunny
Member
Registered: 2021-04-04
Posts: 29

[Solved]Dependencies from AUR

Hi.

As I understood, when building a package from AUR, makepkg looks for dependencies in the local pacman database.
My question is: how do I add a package from AUR required as a dependency for another package from AUR in the local pacman database without any automated tools? (like yaourt)

Last edited by kbunny (2021-11-07 12:59:20)

Offline

#2 2021-11-07 12:30:20

ivanoff
Member
Registered: 2012-03-18
Posts: 78

Re: [Solved]Dependencies from AUR

Hello. What do you want to achieve exactly ? The point of automated tool is to install the dependencies when needed and flag them when no longer required.
Anyway, as for you question: the same way as any manual AUR installation. One by one.

Offline

#3 2021-11-07 12:42:02

kbunny
Member
Registered: 2021-04-04
Posts: 29

Re: [Solved]Dependencies from AUR

ivanoff wrote:

Hello. What do you want to achieve exactly ? The point of automated tool is to install the dependencies when needed and flag them when no longer required.
Anyway, as for you question: the same way as any manual AUR installation. One by one.

Let's say I git clonned package x and tried to build it using makepkg. Makepkg throws an error:

==> Missing dependencies:
            -> abcd

Abcd isn't available in the pacman database, but in AUR. So I git clone the dependency which I found in the AUR and build it.
Now the dependency is on the computer, but not listed in the pacman local database, so makepkg still doesn't sees it

Offline

#4 2021-11-07 12:45:39

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

Re: [Solved]Dependencies from AUR

So you either install it, or you add it to a local repo. See repo-add and repo-remove.

Offline

#5 2021-11-07 12:45:52

leonavis
Member
From: Bremen, Germany
Registered: 2021-06-27
Posts: 71

Re: [Solved]Dependencies from AUR

Now the dependency is on the computer, but not listed in the pacman local database, so makepkg still doesn't sees it

You did install the dependency with

pacman -U [yourpackage]

And it's still not recognized by makepkg?

Offline

#6 2021-11-07 12:53:40

kbunny
Member
Registered: 2021-04-04
Posts: 29

Re: [Solved]Dependencies from AUR

leonavis wrote:

Now the dependency is on the computer, but not listed in the pacman local database, so makepkg still doesn't sees it

You did install the dependency with

pacman -U [yourpackage]

And it's still not recognized by makepkg?

Oh, now I got it. Everytime I ran makepkg I just looked at the src/ and thought the binaries need to be copied to path and pacman local database refreshed somehow to look for it in path.

Thanks!

Offline

#7 2021-11-07 12:54:38

leonavis
Member
From: Bremen, Germany
Registered: 2021-06-27
Posts: 71

Re: [Solved]Dependencies from AUR

You're welcome, and don't forget to put "solved" into the title :-)

Last edited by leonavis (2021-11-07 12:54:56)

Offline

#8 2021-11-07 12:55:18

ivanoff
Member
Registered: 2012-03-18
Posts: 78

Re: [Solved]Dependencies from AUR

Did you install it with pacman -U ? Oh, I was too late...

Last edited by ivanoff (2021-11-07 13:05:34)

Offline

#9 2021-11-07 13:01:49

kbunny
Member
Registered: 2021-04-04
Posts: 29

Re: [Solved]Dependencies from AUR

ivanoff wrote:

Did you install it with pacman -U ? Oh, I was tool late...

Yup. Probably if I would have used my brain I little I would have realized that makepkg means "make package"

Offline

Board footer

Powered by FluxBB