You are not logged in.
What do you think of the following enhancements for pacaur:
- display aur package comments
- configurable "continue building" prompt after viewing the final PKGBUILD file
Offline
- display aur package comments
Bloated. I'd prefer to see an external tool doing that. Adding a RSS feed to each package page might help, as currently the whole HTML code must be parsed.
- configurable "continue building" prompt after viewing the final PKGBUILD file
This could be a very neat addition.
Last edited by Spyhawk (2013-04-14 16:58:23)
Offline
Displaying aur package comments would add a lot of value though to the already efficient workflow (i.e. inspecting all packages before building and installing them).
Offline
Displaying aur package comments would add a lot of value though to the already efficient workflow (i.e. inspecting all packages before building and installing them).
You don't need to view comments for each and every packages you install, but only when a problem arises (ie, package not compiling). However, I do agree that there is currently a lack of tool to do that. Could be a very useful addition to aurtomatic for example (but there is no neat way to parse and retrieve the comments).
Offline
There are so many ways and tools/libraries to extract aur comments. For example, have lynx as an optdeps and conditionally do something like this (can be configurable and/or prompt the user):
lynx -dump https://aur.archlinux.org/packages/pacaur/?comments=all | grep --max-count=5 --after-context=99 --color=never "Comment by"
I don't find this example at all bloated.
Offline
Thanks for your input. Retrieving comments seems much more simple that I initially thought (yaourt does it in a much complicated way). I'm still not convinced that should be part of pacaur though, but I'll have a look at it as a possible new (optional) feature.
Last edited by Spyhawk (2013-04-15 10:17:30)
Offline
And yaourt sorts the comments the "wrong" way. Irritating.
To stop extracting text below the initial aur comment, do for example something as simple as:
lynx -dump https://aur.archlinux.org/packages/pacaur/?comments=all | grep "AUR v" --before-context=99 | grep --max-count=5 --after-context=99 --color=never "Comment by"
Or use another utility (sed, awk, ...).
Showing additional information (coming from "cower -i"), possibly only in combination with displaying aur comments, could be: "Submitted" or "Last Modified", "Out of Date", "Orphaned".
Offline
Hi, when I launch "pacaur -Syu" I have these warnings messages:
:: initscripts is not present in AUR -- skipping
:: leed-svn is not present in AUR -- skipping
:: libdrm-nouveau1 is not present in AUR -- skipping
why?
thanks
Last edited by narco (2013-04-16 10:11:59)
Offline
Hi, when I launch "pacaur -Syu" I have these warnings messages:
why?
thanks
pacaur warns about "truely foreign" packages: theses are not in the repo, nor in the AUR. Most of the time, these are repository packages that have been superseded by other packages and are now obsolete (ie, initscripts has been superseded by systemd).
Offline
thanks, so is there a way to hide these messages?
Offline
You might be better served looking up and replacing those packages. For example, initscripts -> systemd, libdrm-nouveau -> libdrm. I don't know what leeds is.
Last edited by bananagranola (2013-04-16 15:17:20)
Offline
leed-svn seems to have been replaced in the AUR by leed-git.
Offline
core/systemd 201-1 [installed]
system and service manager
extra/libdrm 2.4.43-1 [installed]
Userspace interface to kernel DRM services
and Leed (Light Feed) is a free RSS aggregator that I have tried a long time ago (in the aur now there's leed-git)
Offline
DaveCode> Your email doesn't seem to be valid (my answer mail get rejected by the server), so here is the answer to your PM:
Thanks for pacaur - it's the greatest thing.
We could not install tor-browser-en without its Java stuff. All that Java should be optional; Maxr hardwired it needlessly.
I'd like pacaur to recheck all deps AFTER the PKGBUILD file is edited. But still, it could be a "bug" that pacaur ignores pacman's --nodeps option.
So things to think about....no reply please, just a note here, and thanks for everything you do.
Hi DaveCode,
By design, pacaur doesn't recompute the dependency tree after a PKGBUILD has been edited. The reasons for this are that the PKGBUILD is assumed to be correct, and if there is an error the PKGBUILD should be corrected by the maintainer instead of adding lot of unnecessary complexity in the code.
In this case, the java-runtime deps should be made optional by the maintainer, as noted in the comments. As for the "--nodeps" option, a PKGBUILD (assuming it is correctly written) couldn't be compiled or couldn't be launched without its makedepends/dependencies, so it simply doesn't make sense.
And if you need to tinker the PKGBUILD for any reason, simply use cower to download the PKGBUILD (cower -d pkg), edit it and run makepkg to compile the package. Correcting the PKGBUILD upstream should however be the top priority.
Offline
I use pacaur a lot without problems generally, so thanks for this great helper.
Now when I try to install the AUR package python-pyramid, it does not seem to get past ':: resolving dependencies...'; I waited for quite some time, but it still was busy.
All dependencies are installed on my system.
Any idea what may be the problem?
Cheers, Theo
Offline
vri> Thanks for the report, I'll have a look asap.
Edit: The sanity function done before the sudo security check was going into an infinite loop, but this bug was triggered only in some rare situation. Fixed in 4.1.8 and I also enhanced robustness of that part of the code.
Last edited by Spyhawk (2013-05-18 14:40:26)
Offline
Thanks for the speedy follow up! Works fine now.
Offline
Hey guys,
pacaur seems to stuck when using AUR operations. gpg2keys_hkp uses 100% CPU while it's stuck. If I leave it for a few hours, the operation continues.
Here's the output of bash -x pacaur -Sua : http://pastebin.com/raw.php?i=Hw0TSvQJ
Offline
darwell.j > Can't reproduce here. Does running "expac -S -1 -v %n android-sdk" generate any output in the shell?
Last edited by Spyhawk (2013-05-23 14:55:40)
Offline
No, just hangs there...
[EDIT]. Running "expac" does the same - it just hangs there while gpg2keys_hkp uses 100% CPU. I guess I have to look for the problem somewhere else...
[EDIT2]. Disabling xorg113 and catalyst repos seems to solve the problem. Something must be wrong with these repos...
Last edited by darwell.j (2013-05-23 16:20:02)
Offline
[EDIT2]. Disabling xorg113 and catalyst repos seems to solve the problem. Something must be wrong with these repos...
Third party binary repo usually bring more problems than they solves issues. Better avoid them and use the AUR instead imho.
Edit: Seems there is an issue with the database signature of that repo. See this expac issue.
Last edited by Spyhawk (2013-05-23 16:54:29)
Offline
pacaur doesn't recompute...after...edited...
deps should be made optional by the maintainer...
"--nodeps"...a PKGBUILD...couldn't be compiled...
if you need to tinker...use cower
If not for tinkering, why does pacaur prompt to edit the PKGBUILD? Just provide a viewer (less).
Re those correctness assumptions - AUR is more brittle/broken than official repos - so they don't always hold.
Going from memory, we felt pacaur was wrong to omit --nodeps. We love pacaur for only lightly wrapping pacman. a superset. Here it's a subset. Why might pacman have a --nodeps flag?
Any admin editing a PKGBUILD and calling --nodeps should be allowed to crash. Many AUR packages fail to build as things stand, even with good PKGBUILDs. So crashing AUR is nothing new.
Staff wanted to remove Java deps in pacaur's edit screen. Ultimately yes, an AUR maintainer should (and did) do it. We KNEW what to do, but pacaur stopped us.
Hey, another topic while I'm here....What's the official way to run pacaur -Syua --noconfirm --noedit from a nightly cron? Yes, we know it's not kosher, but nights are good times to build stuff.
Thanks again! We do love pacaur.
Offline
If not for tinkering, why does pacaur prompt to edit the PKGBUILD? Just provide a viewer (less).
It does prompt to "view" the PKGBUILD. Just use 'editor="less"' in your config file.
If needed, everything else can be edited, but this is just a consequence of using makepkg (only AUR dependencies changes aren't taken into account). I never expected the user to change the dependencies, and pacaur assumes they are correct.
Going from memory, we felt pacaur was wrong to omit --nodeps. We love pacaur for only lightly wrapping pacman. a superset. Here it's a subset. Why might pacman have a --nodeps flag?
Any admin editing a PKGBUILD and calling --nodeps should be allowed to crash. Many AUR packages fail to build as things stand, even with good PKGBUILDs. So crashing AUR is nothing new.
In practice, "--nodeps" would simply break the build. The only reason you wanted --nodeps was because the PKGBUILD was incorrectly written, but I see your argument for consistency here (which makes sense). I wanted to implement a more general option to pass any option to makepkg, but I'll add some code to pass this option directly to makepkg.
Staff wanted to remove Java deps in pacaur's edit screen. Ultimately yes, an AUR maintainer should (and did) do it. We KNEW what to do, but pacaur stopped us.
Just to be clear: I don't believe it is pacaur's job to fix what should be fixed upstream. If there is an issue with a PKGBUILD, the user should ask the maintainer to fix it. Yes, I know, it's slower, it takes time, but it is also a way to improve the AUR for everybody.
Hey, another topic while I'm here....What's the official way to run pacaur -Syua --noconfirm --noedit from a nightly cron? Yes, we know it's not kosher, but nights are good times to build stuff.
There is no official way, since pacaur has never been designed to be used in a cron job... But well... have a look at the wiki.
Last edited by Spyhawk (2013-05-25 11:38:32)
Offline
First of all, thanks for coding pacaur, which has been my favourite AUR helper since the late bauerbill.
I'm trying to install the xmp package from the AUR, but somehow pacaur looks for the wrong package:
$ pacaur -v
pacaur 4.1.8
$ pacaur -S xmp
:: Package(s) xmp not found in repositories, trying AUR...
:: resolving dependencies...
:: no results found for bmp
$ pacaur -Ss xmp
...
aur/xmp 4.0.6-1 (77)
The Extended Module Player is a portable command-line module player that supports over 90 module formats (Amiga, Atari, ..)
...
Offline
donbex> bmp is a makedependency of libxmp, which is in turn a dependency of xmp. The package 'bmp' doesn't exist, so pacaur can't find it. The PKGBUILD of libxmp must be corrected here. The package 'bmp' might have been deleted/replaced over time.
But yes, I agree that the error output isn't very explicit... more like a "WTF!?" situation
Last edited by Spyhawk (2013-05-30 08:04:02)
Offline