You are not logged in.
Bauerbill should return a non-zero exit status when it fails to find information about an AUR package:
$ bauerbill -Si xynerific &>/dev/null; echo $?
1
$ bauerbill -Si --aur xynerific &>/dev/null; echo $?
0
Offline
The PowerpillConf option should work now.
As for the bugtracker, I don't think it's necessary yet and I don't expect a constant stream of bugs once the code is stable. It's just easier for everyone to post here than to have to register yet another account somewhere.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Just to make sure: if I wanted to get a bauerbill pkgbuild, should I go to the AUR for the most recent one or your site? I'm aware you've got a repo but I just want the PKGBUILD.
Thanks.
Offline
@res
My site will always have the latest version of everything (although the AUR is usually in sync).
Here's the PKGBUILD: http://xyne.archlinux.ca/pkgbuilds/bauerbill/
@fflarex
fixed
I've also had a look at adding colors to the output of searches etc but that's actually more complicated than you would expect. If I add colors to match pacman-color then other users will experience the same mismatching output that pacman-color users currently experience. I don't really want to add a code to check which pacman binary is used either as that created problems later if others appear.
I'm considering making the output fully customizable and leaving it up to the user to decide which info is displayed for different operations and how. I'll leave it for a bit while I give it some thought though.
Last edited by Xyne (2010-01-15 01:48:48)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I've also had a look at adding colors to the output of searches etc but that's actually more complicated than you would expect. If I add colors to match pacman-color then other users will experience the same mismatching output that pacman-color users currently experience. I don't really want to add a code to check which pacman binary is used either as that created problems later if others appear.
I'm considering making the output fully customizable and leaving it up to the user to decide which info is displayed for different operations and how. I'll leave it for a bit while I give it some thought though.
In the meantime, you (anybody) can pipe your searches through this:
colorize() {
sed -e 's|^\([-A-Za-z0-9]*/\)\([^ ]*\) \([^ ]*\)\( (.*)\)\?|\c[[1;35m\1\c[[39m\2 \c[[32m\3\c[[34m\4\c[[0;39m|'
}
The colors match the default colors of pacman-color, but you can change them pretty easily if you know xterm escape sequences and sed (or maybe not, this is pretty unreadable). This gives consistent colors on any search, through pacman or bauerbill. I'm about to finish a version that colors the repository names differently from each other. If bauerbill doesn't get color support, I may turn it into a full-fledged shell script complete with easily changeable options.
Last edited by fflarex (2010-01-15 02:49:49)
Offline
Confirming that it parses powerpill.conf, or at least for pacmanbin.
Offline
I love this more than I can put into words. Funnily I installed yaourt just to download it and remove it again. And it shall be removed as soon as I get this working. Unfortunately I keep getting this:
Can't locate Xyne/Arch/Bauerbill.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.1 /usr/share/perl5/site_perl/5.10.1 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at /usr/bin/bauerbill line 25.
BEGIN failed--compilation aborted at /usr/bin/bauerbill line 25.
Every time.
It's rather frustrating and I do oh so want to use this. Any suggestions?
Offline
I usually used yaourt and was relatively ok with that. I installed bauerbill now, and i like it. But why are you people so enthusiastic? I want to understand the big differences between both programs.
Offline
@Wesman26
It seems that you didn't install the dependencies. How exactly did you install it?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I usually used yaourt and was relatively ok with that. I installed bauerbill now, and i like it. But why are you people so enthusiastic? I want to understand the big differences between both programs.
Its WAY faster than yaourt since it uses aria2c for multithreaded downloading. Bauerbill also supports ABS which allows you to compile packages yourself.
How's my programming? Call 1-800-DEV-NULL
Offline
It does read some settings from powerpill.conf such as pacman-color if PowerpillConf is used.
However, it still doesn't launch the proper editor, but reads fine BuildAs.
It seems bauerbill.conf is only read for some settings. Plus, I get this.
error: unable to read /etc/powerpill.conf
--> Getting trusted user package lists...
warning: unknown JSON error (type=msearch&arg=xyne)
It's failing on trusted aur users ever since perl-xyne-arch 1.0.31
bauerbillconf -> http://pastebin.com/m4c9e3dc8
powerpillconf -> http://pastebin.com/m74f26e1
Offline
@elric
The config bug was due to a combination of a greedy regex in the parser and trailing spaces in your config. It should work now (update perl-xyne-common).
The TrustedUsers list is case-sensitive. You need to use "Xyne", not "xyne", if you wish to add me to that list. It has always been case sensitive so something else must have changed if it worked before. Either I included the error message or you changed the name.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thanks for such a quick reply! I am having great fun with bauerbill :)
You are right about the trailing spaces, sorry, should have checked/thought of that. powerpill.conf is read correctly now.
About the TrustedUsers, I forgot to mention I wrote "xyne" as a last attempt, but that "Xyne" also spits out an error, which is what I had when it used to work. It's strange that it didn't happen before. If it's not happening to anybody else (so it seems) I guess it's me.
This is the result with latest packages from your repo.
[omar@omar-laptop ~]$ bb -Su
--> Getting trusted user package lists...
warning: unknown JSON error (type=msearch&arg=Xyne)
edit:works now. thanks.
editor is invoked correctly again :)
P.s. Is there a way to search only in AUR?
Last edited by elric (2010-01-16 02:48:19)
Offline
Great work Xyne
Just a few suggestions I would love to see implemented:
1. When updates are available, show the version currently installed and the version to be installed. Something like:
:: The following packages will be downloaded:
[community]
picard 0.12.1-1 => 0.12.1-2
2. Once the updates are listed add the option that prints the pkgdesc of each update. I have [testing] enabled and don't always know what every package does, so this would give me an idea of what might possibly break.
3. When searching for packages, add (installed) next to the package name if they are installed
Offline
I've been testing bauerbill out and so far I am almost at the point to completely switch away from yaourt, but I am having one minor issue and I don't know if it is anything I am doing or if it is related to whatever repo bauerbill connects to download its ABS db being out of date (I also just updated bauerbill), But when I try and update my system it says that the opencore-amr PKGBUILD is missing from the extra tarball, but when I check the local abs tree it is there (and it is missing from the bb tar).
Is this user error or something related to bauerbill?
Offline
I love this more than I can put into words. Funnily I installed yaourt just to download it and remove it again. And it shall be removed as soon as I get this working. Unfortunately I keep getting this:
Can't locate Xyne/Arch/Bauerbill.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.1 /usr/share/perl5/site_perl/5.10.1 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at /usr/bin/bauerbill line 25. BEGIN failed--compilation aborted at /usr/bin/bauerbill line 25.
Every time.
It's rather frustrating and I do oh so want to use this. Any suggestions?
You probably need to add Xyne's repository before the community one in /etc/pacman.conf as mentioned in this post:
Offline
How are the trusted user supposed to be listed in bauerbill.conf? I keep getting JSON errors when listing them the following way:
TrustedUsers = trstusr1 trstusr2 trstusr3
Last edited by Ashren (2010-01-15 16:44:09)
Offline
@Wesman26
It seems that you didn't install the dependencies. How exactly did you install it?
I installed via Yaourt. It said I had all the dependencies. Aside from a typo in the PKGBuild there didn't seem to be any problems.
Edit:
Nevermind, it seems that all is fixed now that I've followed the advice of jdarnold. Thank you all!
Last edited by Wesman26 (2010-01-15 19:23:32)
Offline
@elric
It's actually good that you had the trailing spaces because they led me to the missing "?" in my regex.
TrustedUsers should work now. In was never actually broken though. The error message is in the final else block of an if/elsif/else chain and I had written "else:" (i.e. Python syntax) which caused it to be read as a tag and thus always executed. It still sourced the PKGBUILDs of trusted users without prompting.
@fastfret79
I might add an option to display that but I won't make it a default because it would clutter the output, especially when ShowSizes is set. Besides, you can already see that with "-Qu".
I'm still thinking of ways to make the output of different commands customizable because the default yaourt output differs considerably from the default pacman output in some areas and not everyone wants the same.
@jankowiak
I've just tested "bauerbill -S --abs opencore-amr" and had not problem with it. Perhaps your mirror is out of sync. Try using another mirror and let me know if that works.
Last edited by Xyne (2010-01-16 01:25:27)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
arch%sudo bauerbill -S --abs sqlite3
--> Loading ABS taurball data...
--> Checking for abs archive updates for the following repos: [testing] [extra]
error: could not find PKGBUILD for sqlite3 in /tmp/bauerbill/taurballs/testing.abs.tar.gz
Why is it so?
arch%yaourt -Sb sqlite3 builds it.
PS: I have a default bauerbill.conf file (except for BuildAs entry)
Last edited by virus_found (2010-01-16 02:04:00)
Offline
$ bauerbill -S --abs sqlite3
--> Loading ABS taurball data...
--> Checking for abs archive updates for the following repos: [core]
warning: about to source /tmp/bauerbill/build/core/sqlite3/PKGBUILD
view [v] backup [b] edit [e] continue [ok] abort [x] v
# $Id: PKGBUILD 60880 2009-12-08 18:07:08Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=sqlite3
pkgver=3.6.21
pkgrel=1
pkgdesc="A C library that implements an SQL database engine"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.sqlite.org/"
depends=('readline>=6.0.00')
makedepends=('tcl')
conflicts=('sqlite')
replaces=('sqlite')
source=(http://www.sqlite.org/sqlite-$pkgver.tar.gz
license.txt)
options=(!libtool)
md5sums=('03a8498828866b407c61c0aaf8ebe66c'
'c1cdbc5544034d9012e421e75a5e4890')
build() {
cd ${srcdir}/sqlite-${pkgver}
export LTLINK_EXTRAS="-ldl"
export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
./configure --prefix=/usr \
--enable-threadsafe \
--enable-threads-override-locks \
--enable-cross-thread-connections \
--disable-static \
--enable-load-extension || return 1
# rpath removal
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make || return 1
make DESTDIR=${pkgdir} install || return 1
install -Dm0644 sqlite3.1 ${pkgdir}/usr/share/man/man1/sqlite3.1
# license
install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}
view [v] backup [b] edit [e] continue [ok] abort [x]
Your mirror doesn't seem to have the latest abs archive. Try using a different mirror. I've explained on the info page that Bauerbill doesn't use the abs package but instead uses abs archives to enable support for unofficial repos. If your mirror doesn't have the latest abs archive it won't be able to build the package.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
That didn't help. I was using the mir.archlinux.fr, but now I enabled two German ones and a Russian one. That did nothing, the same error.
And yaourt -Sb still works.
Can you point me, where to debug this? I need that feature, and I'm very curious.
Offline
Can this type of error message be sent to stderr instead of stdout? It comes up when there's no network connection and I try -Qu or -Syu.
error: failed to retrieve JSON data from aur.archlinux.org (type=info&arg=bauerbill)
Sorry if I'm being nitpicky. I'm trying to integrate bauerbill into my existing scripts and these little details keep cropping up.
Offline
Did you place a different mirror at the top of your mirrorlist or just uncomment some other mirrors? The order determines which mirror pacman tries first and you should always have a synchronized mirror at the top of the list.
Check if the core.abs.tar.gz file is in your taurball directory (/tmp/bauerbill/taurballs by default).
The fact that yaourt works means nothing. I've tried to explain a few times already that bauerbill does not use the abs package, which is what yaourt uses (through srcpac).
Nevermind, I've looked into it and it seems that someone forgot to include the sqlite3 PKGBUILD in testing.abs.tar.gz. Here are the files on ftp.archlinux.org:
i686: ftp://ftp.archlinux.org/testing/os/i686 … abs.tar.gz
x86_64: ftp://ftp.archlinux.org/testing/os/x86_ … abs.tar.gz
I suggest that you file a bug report as this is an issue with [testing], not bauerbill.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Did you place a different mirror at the top of your mirrorlist or just uncomment some other mirrors? The order determines which mirror pacman tries first and you should always have a synchronized mirror at the top of the list.
I did, but then I did pacman -Scc.
Nevermind, I've looked into it and it seems that someone forgot to include the sqlite3 PKGBUILD in testing.abs.tar.gz
I see now There are libgl, intel-dri, that are excluded too, strange.
Offline