You are not logged in.
Pages: 1
Topic closed
In the aur, there's a list of dependencies under each package. It would help me if it indicates what packages are in the Arch Linux repositories, and what packages are in aur.
pcbdraw https://aur.archlinux.org/packages/pcbdraw for instance has this list of dependencies:
Dependencies (16)
kicad (kicad-rc, kicad-git, kicad-wayland)
python-click
python-lxml
python-mistune (python-mistune2, python-mistune1)
python-numpy (python-numpy1.22, python-numpy-flame, python-numpy-mkl-bin, python-numpy-git, python-numpy-openblas, python-numpy-mkl)
python-pcbnewtransition
python-pillow (python-pillow-git, python-pillow-simd, python-pillow95)
python-pybars3 (python-pybars3-git)
python-pyvirtualdisplay
python-svgpathtools (python-svgpathtools-git)
python-wxpython (python-wxpython-dev)
python-yaml (python-yaml-git)
python3 (python)
python-pytest (make)
python-setuptools (make)
python-wheel (make)As I don't see python-svgpathtools is in aur, I try to install the dependencies by pacman, get an error, and then conclude python-svgpathtools must be in the AUR:
# pacman -S kicad python-click python-lxml python-mistune python-numpy python-pcbnewtransition python-pillow python-pybars3 python-pyvirtualdisplay python-svgpathtools python-wxpython python-yaml python3 python-pytest python-setuptools python-wheel
warning: kicad-7.0.6-1 is up to date -- reinstalling
warning: python-click-8.1.5-1 is up to date -- reinstalling
warning: python-lxml-4.9.2-3 is up to date -- reinstalling
warning: python-mistune-2.0.5-2 is up to date -- reinstalling
warning: python-numpy-1.25.1-1 is up to date -- reinstalling
warning: python-pcbnewtransition-0.3.4-2 is up to date -- reinstalling
warning: python-pillow-10.0.0-2 is up to date -- reinstalling
warning: python-pybars3-0.9.7-8 is up to date -- reinstalling
warning: python-pyvirtualdisplay-3.0-3 is up to date -- reinstalling
error: target not found: python-svgpathtools
warning: python-wxpython-1:4.2.0-4 is up to date -- reinstalling
warning: python-yaml-6.0-3 is up to date -- reinstalling
warning: python-3.11.3-2 is up to date -- reinstalling
warning: python-pytest-7.4.0-1 is up to date -- reinstalling
warning: python-setuptools-1:68.0.0-1 is up to date -- reinstalling
warning: python-wheel-0.40.0-3 is up to date -- reinstallingI would like to change the list of dependencies so the aur packages are marked, possibly by adding *aur* like this:
Dependencies (16)
kicad (kicad-rc *aur*, kicad-git *aur*, kicad-wayland *aur*)
python-click
python-lxml
python-mistune (python-mistune2 *aur*, python-mistune1 *aur*)
python-numpy (python-numpy1.22 *aur*, python-numpy-flame *aur*, python-numpy-mkl-bin *aur*, python-numpy-git *aur*, python-numpy-openblas *aur*, python-numpy-mkl *aur*)
python-pcbnewtransition
python-pillow (python-pillow-git *aur*, python-pillow-simd *aur*, python-pillow95 *aur*)
python-pybars3 (python-pybars3-git *aur*)
python-pyvirtualdisplay
python-svgpathtools *aur* (python-svgpathtools-git *aur*)
python-wxpython (python-wxpython-dev *aur*)
python-yaml (python-yaml-git *aur*)
python3 (python)
python-pytest (make)
python-setuptools (make)
python-wheel (make)Offline
You can just hover over the links and see which targets start in aur.archlinux.org
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
I'm not sure this is the right place to ask for changes to the AUR interfaces. I think you'd need to file a bug at https://bugs.archlinux.org or at https://gitlab.archlinux.org/archlinux/aurweb/-/issues.
Meanwhile you can use the AUR API to query this information, e.g. using aur query from aurutils, but any AUR API frontend will do:
aur query -t info (aur query -t info pcbdraw | jq -r '.results[0].Depends | .[]') | jq -r '.results | map(.Name) | .[]'This prints a list of all AUR dependencies of pcbdraw.
Offline
There is already https://gitlab.archlinux.org/archlinux/ … issues/480.
luanayorn, your command produces a message about an unexpected "(" in bash and mksh.
Offline
I suppose the correct command would be:
aur query -t info pcbdraw | jq -r '.results[] | .Depends[]'Since this also prints all repository dependencies, you can instead use:
aur depends pcbdrawor sorted,
aur depends pcbdraw -r | tsortedit: the original command in #3 is just missing an $. The last pipeline is still useful to get dependencies in the right order.
Last edited by Alad (2023-07-25 13:30:37)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
That was fish syntax. I'm sorry for the confusion.
I know about aur depends, but I assumed that if the OP actually used aurutils they'd know about aur sync and so wouldn't have to ask about the AUR website.
So I wanted to show the API, and just used aur fetch because I was too lazy to use "curl" ![]()
Offline
Nevermind, missed a previous reply that covered the subject of my reply. Redacted.
Last edited by yochananmarqos (2023-08-20 20:22:06)
Offline
There are many easy ways to do this on the user's local machine. But the OP (I believe) is talking about the AUR web interface. And it is certainly not obvious that there would be any easy way to do it there - even "hard" ways may be limited.
The AUR web interface server would have to check each dependency to see where it would come from. That takes a little processing power but is logically quite simple - it's just the same as the user doing it on their local machine. But when and / or how often would this information be generated / updated?
It could be generated when the PKGBUILD is submitted / updated. But then this information could go stale if any dependencies move to / from the main repos. I don't see any reasonable way to update this information when this happens - so the display could be wrong until the next update of the PKGBUILD.
The only way I could see to avoid this would be if the information were dynamically generated each time a user requested the AUR web interface page for a package. While logically simple, this would subject the server to a huge and needless processing load.
I could be missing options - but if I suspect if there is any hope of seeing this happen, a proposal would have to be made for a reasonable mechanism of how to do it (not actual server-side code, but the logic / algorithm) not just the desire to see it happen.
Last edited by Trilby (2023-08-20 20:48:05)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
The OP was banned, so I am going to close this topic now.
Offline
Pages: 1
Topic closed