You are not logged in.

#151 2010-01-15 00:59:30

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#152 2010-01-15 01:35:51

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#153 2010-01-15 01:41:51

res
Member
Registered: 2010-01-14
Posts: 55

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#154 2010-01-15 01:47:48

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

@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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#155 2010-01-15 02:32:11

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

Xyne wrote:

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

#156 2010-01-15 05:18:21

res
Member
Registered: 2010-01-14
Posts: 55

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

Confirming that it parses powerpill.conf, or at least for pacmanbin.

Offline

#157 2010-01-15 05:57:34

Wesman26
Member
Registered: 2009-04-18
Posts: 70

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#158 2010-01-15 08:26:00

Alp
Member
Registered: 2008-09-27
Posts: 89

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#159 2010-01-15 08:34:26

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

@Wesman26
It seems that you didn't install the dependencies. How exactly did you install it?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#160 2010-01-15 10:09:16

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

Alp wrote:

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

#161 2010-01-15 10:21:54

elric
Member
Registered: 2010-01-14
Posts: 22

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#162 2010-01-15 10:59:40

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

@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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#163 2010-01-15 12:03:13

elric
Member
Registered: 2010-01-14
Posts: 22

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#164 2010-01-15 12:55:52

fastfret79
Member
Registered: 2009-09-05
Posts: 87

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

Great work Xyne big_smile

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

#165 2010-01-15 16:13:50

jankowiak
Member
Registered: 2009-11-19
Posts: 8

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#166 2010-01-15 16:40:39

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

Wesman26 wrote:

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:

http://bbs.archlinux.org/viewtopic.php? … 88#p684788

Offline

#167 2010-01-15 16:43:48

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#168 2010-01-15 19:16:51

Wesman26
Member
Registered: 2009-04-18
Posts: 70

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

Xyne wrote:

@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

#169 2010-01-16 00:52:40

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

@elric
It's actually good that you had the trailing spaces because they led me to the missing "?" in my regex. wink


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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#170 2010-01-16 02:02:41

virus_found
Member
From: Moscow
Registered: 2009-05-22
Posts: 51
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#171 2010-01-16 02:11:30

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

$ 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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#172 2010-01-16 02:57:21

virus_found
Member
From: Moscow
Registered: 2009-05-22
Posts: 51
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#173 2010-01-16 04:38:33

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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

#174 2010-01-16 04:43:16

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#175 2010-01-16 05:26:40

virus_found
Member
From: Moscow
Registered: 2009-05-22
Posts: 51
Website

Re: Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more

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 smile There are libgl, intel-dri, that are excluded too, strange.

Offline

Board footer

Powered by FluxBB