You are not logged in.

#1 2018-07-13 16:49:10

flower
Member
Registered: 2018-07-07
Posts: 17

why no supported dependency manager for AUR?

hi,

i usually try to keep a clean system with as less as possible out-of-tree packages.

but sometimes i need a package from the AUR (eg monitorix, tor-browser-en and some some php modules).

i am not sure about the available aur-tools (i tried pacaur and aurman and prefer the latter). but i am afraid to use a package manager which is not official.

so this means the following:
- manual dependency management. this is annoying for packages which depends on other packages from the AUR (others work with makepkg -si)
- manual updates

so, what is the reason there is no official and supported tool for AUR?
i think its quite dangerous to use inofficial tools with that much power.

Offline

#2 2018-07-13 16:52:30

progandy
Member
Registered: 2012-05-17
Posts: 5,263

Re: why no supported dependency manager for AUR?

It is not any more dangerous than using PKGBUILDs from the AUR. They have exactly the same amount of power, namely full access as the user running it including creating and modifying packages that you will then install with root permissions.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2018-07-13 16:55:56

flower
Member
Registered: 2018-07-07
Posts: 17

Re: why no supported dependency manager for AUR?

progandy wrote:

It is not any more dangerous than using PKGBUILDs from the AUR. They have exactly the same amount of power, namely full access as the user running it including creating and modifying packages that you will then install with root permissions.

yes, that's true.
but they decide which dependencies to include. how to build and install them.

i would just *feel* better if such a basic and important task is handled by official tools.

Offline

#4 2018-07-13 17:26:36

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: why no supported dependency manager for AUR?

makepkg is the official tool. If you want to use the AUR you either manually install all dependencies separately or use a helper that is at least recommended.


Matt

"It is very difficult to educate the educated."

Offline

#5 2018-07-13 17:31:59

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

Re: why no supported dependency manager for AUR?

flower wrote:

but they decide which dependencies to include. how to build and install them.

The PKGBUILD controls the dependencies which you are expected to check for correctness.  You are expected to build the dependencies so you would control how they are built.
You are expected to install the dependencies so you control that as well.
Edit:
grammar to not is

Last edited by loqs (2018-07-13 17:32:26)

Offline

#6 2018-07-13 17:35:29

flower
Member
Registered: 2018-07-07
Posts: 17

Re: why no supported dependency manager for AUR?

loqs wrote:
flower wrote:

but they decide which dependencies to include. how to build and install them.

The PKGBUILD controls the dependencies which you are expected to check for correctness.  You are expected to build the dependencies so you would control how they are built.
You are expected to install the dependencies so you control that as well.
Edit:
grammar to not is

well true. but with that logic i can just go LFS.
i use a package manager because i dont want to do manual dependency management.
checking is ok (and imho mandatory for something like AUR), but cloning any dep and build it (recursivly) is to much (at least for some packages)

Offline

#7 2018-07-13 17:43:55

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

Re: why no supported dependency manager for AUR?

If the tool is not stopping after each clone and letting you check the PKGBUILD before cloning the first dependency of that PKGBUILD or
before building that dependency then you would only have checked the PKGBUILD of your target package.

Offline

#8 2018-07-13 18:20:37

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,418
Website

Re: why no supported dependency manager for AUR?

progandy wrote:

namely full access as the user running it including creating and modifying packages that you will then install with root permissions.

Assuming you don't use sudo or makepkg -s.

loqs wrote:

If the tool is not stopping after each clone and letting you check the PKGBUILD before cloning the first dependency of that PKGBUILD or
before building that dependency then you would only have checked the PKGBUILD of your target package.

Why would it have to stop after each clone? Clone does not involve code execution, so you can just view all PKGBUILDs, .install files, etc. after retrieving them.

mrunion wrote:

use a helper that is at least recommended.

Which doesn't exist. (inb4 wiki table, which "recommends" pacman wrappers: these are actively harmful both in removing the distinction between AUR and repos, and claiming to be pacman while doing arbitrary weird things).


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#9 2018-07-13 18:28:05

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

Re: why no supported dependency manager for AUR?

Alad wrote:

Why would it have to stop after each clone? Clone does not involve code execution, so you can just view all PKGBUILDs, .install files, etc. after retrieving them.

So that the PKGBUILD post editing is used for dependency evaluation.

Offline

#10 2018-07-13 18:29:07

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,418
Website

Re: why no supported dependency manager for AUR?

So that the PKGBUILD post editing is used for dependency evaluation.

That's how yaourt does it, since 2008. Anyone else uses the RPC for dependency resolution since it's a far more robust approach and doesn't require endless prompting during the build process.

Last edited by Alad (2018-07-13 18:30:38)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#11 2018-07-13 18:34:59

flower
Member
Registered: 2018-07-07
Posts: 17

Re: why no supported dependency manager for AUR?

Alad wrote:

Which doesn't exist. (inb4 wiki table, which "recommends" pacman wrappers: these are actively harmful both in removing the distinction between AUR and repos, and claiming to be pacman while doing arbitrary weird things).

i guess this is the reason why there is no official aur-helper (my original question)?
i dont really like it, but i can understand that reasoning

Offline

#12 2018-07-13 18:35:13

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

Re: why no supported dependency manager for AUR?

Alad wrote:

That's how yaourt does it, since 2008. Anyone else uses the RPC for dependency resolution since it's a far more robust approach and doesn't require endless prompting during the build process.

How does that handle dependency change due to a PKGBUILD edit?

Offline

#13 2018-07-13 18:36:43

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,418
Website

Re: why no supported dependency manager for AUR?

How does that handle dependency change due to a PKGBUILD edit?

Why would it? If you want different dependencies, it's easy to keep a local fork or propose it to the maintainer. With everyone using git nowadays, you could even use git merge/rebase.

i guess this is the reason why there is no official aur-helper (my original question)?
i dont really like it, but i can understand that reasoning

No, because helpers which don't wrap pacman aren't official either. (well, cower was for one day!)

The reason, as linked on the top of the AUR helper wiki article:

https://bbs.archlinux.org/viewtopic.php … 10#p828310

edit: fixed link

Last edited by Alad (2018-07-13 18:42:13)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#14 2018-07-13 20:38:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: why no supported dependency manager for AUR?

Most of what needs to be done to manage aur packages (beyond what git and makepkg already do) is fairly simple so that several of the tools that are written to help automate these tasks are themselves quite simple.  It should be trivially easy to read through and understand all the code of any aur tool you use; if it is not trivial to do so, I'd posit that you probably shouldn't use it anyways.

I use a 167 line python script (of which ~55 lines are just imports and customizable format strings for displaying output) that can search, check for updates, recursively download and sort dependencies into a list of the order in which they should be built, and has a handful of possible display/output formats.

Even at 167 lines, I periodically review the code and think it's a bit bloated for my tastes.

If you can review the code and understand what an aur tool is doing for you, then you should have no concerns about using it.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#15 2018-07-14 15:00:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,939

Re: why no supported dependency manager for AUR?

There's a great alternative for aur helpers : put aur packages you built in your own custom local repository and add that repo to the bottom of your /etc/pacman.conf .

Mine currently holds 62 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

#16 2018-07-14 15:04:08

flower
Member
Registered: 2018-07-07
Posts: 17

Re: why no supported dependency manager for AUR?

Lone_Wolf wrote:

There's a great alternative for aur helpers : put aur packages you built in your own custom local repository and add that repo to the bottom of your /etc/pacman.conf .

Mine currently holds 62 packages.

thank you!

that sounds like a good solution and reminds me of gentoo overlays (which i am more used to). will look into it!

Offline

#17 2018-07-14 17:04:53

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,418
Website

Re: why no supported dependency manager for AUR?

There's a great alternative for aur helpers

What? It's an addition, not an alternative. A local repo alone won't solve AUR dependencies or retrieve new versions to be built.

Last edited by Alad (2018-07-14 17:05:29)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#18 2018-07-14 17:09:00

flower
Member
Registered: 2018-07-07
Posts: 17

Re: why no supported dependency manager for AUR?

Alad wrote:

There's a great alternative for aur helpers

What? It's an addition, not an alternative. A local repo alone won't solve AUR dependencies or retrieve new versions to be built.

that's true, but it is a way for me to keep package generation disctinct from my server which helps me a lot.

btw my original question wasn't meant as a complain for dependency management. i just wanted to understand the reason why there is nothing official and supported.

Offline

#19 2018-07-14 17:34:59

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,418
Website

Re: why no supported dependency manager for AUR?

that's true, but it is a way for me to keep package generation disctinct from my server which helps me a lot.

In that case, you might take a look at aurutils - after 2 years, it remains the only helper centered around local repos.

i just wanted to understand the reason why there is nothing official and supported.

Well, the helpers are supported by their respective authors (those that are still active anyway). Just don't file bugs on bugs.archlinux.org when something breaks using them. smile

Last edited by Alad (2018-07-14 17:35:36)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#20 2018-07-14 18:41:30

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: why no supported dependency manager for AUR?

Moving thread to "Arch Discussion".

Offline

Board footer

Powered by FluxBB