You are not logged in.

#126 2010-01-21 00:10:40

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

r6 wrote:

As an experiment I modified packer to show the installed status of packages.

Searching 4359 packages (packer -Ss a), packer takes 1 second, and the modified packer takes 20 seconds. (yaourt took 3 minutes 43 seconds). There might be a faster way to do it, though.

I am thinking of a way to do it with pacman -T that might be reasonbly fast. We'll see.

Offline

#127 2010-01-21 00:20:16

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

buttons wrote:

Minor bug:

resolving dependencies...
Dependency ` lib32-pcre of `bin32-skype' does not exist.
Not updating `bin32-skype'.

Aur Targets    (0): 

Proceed with installation? [Y/n]

Pressing 'n' to not install 0 of 0 targets does not result in the universe imploding, as expected.

I believe I have fixed it. packer -S packer and see.

Offline

#128 2010-01-21 00:43:58

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

bruenig wrote:
MajorTom wrote:

Matthew, do you feel packer -Sg searchstring could be easily implemented?
I think it would be beneficial and again it's something to complete the -S set of arguments.

I am not sure how to search for package groups on aur.

It would simply call sudo pacman -Sg so it wouldn't be searching AUR.
Currently, I have to do pacman -Sg or pacman -Sg | grep searchstring. If I could do packer -Sg to display all groups and packer -Sg searchstring (no pipe and no grep) to search, I would be really happy.

But what I would really like to see is the implementation of the -q(uiet) argument. Try pacman -Ss and then -Ssq to see the difference.

Last edited by MajorTom (2010-01-21 00:47:19)

Offline

#129 2010-01-21 01:05:13

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

bruenig wrote:

I am not sure how to search for package groups on aur.

AFAIK there is no such sillyness.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#130 2010-01-21 01:21:53

kaptenen
Member
Registered: 2009-12-06
Posts: 287
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Using it right now, thanks.

Offline

#131 2010-01-21 04:44:51

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

MajorTom wrote:
bruenig wrote:
MajorTom wrote:

Matthew, do you feel packer -Sg searchstring could be easily implemented?
I think it would be beneficial and again it's something to complete the -S set of arguments.

I am not sure how to search for package groups on aur.

It would simply call sudo pacman -Sg so it wouldn't be searching AUR.
Currently, I have to do pacman -Sg or pacman -Sg | grep searchstring. If I could do packer -Sg to display all groups and packer -Sg searchstring (no pipe and no grep) to search, I would be really happy.

But what I would really like to see is the implementation of the -q(uiet) argument. Try pacman -Ss and then -Ssq to see the difference.

If you are just searching through pacman repos for groups, I am confused as to why you don't just use pacman. If searching through the groups is a real problem and you do it a lot, I would talk to pacman devs or write a simple pacman -Sg | grep $1 alias/script. Packer does not really intend to extend pacman functionality at this point at least. That leads you on the road to bloatsville in my opinion.

-Ssq is actually probably pretty useful, I might have go grit my teeth and actually implement a real argument parsing strategy though to implement it, that is the only barrier tongue. It's in the queue we'll say. I might also implement it as --quiet. We'll see.

Last edited by bruenig (2010-01-21 04:57:39)

Offline

#132 2010-01-21 06:57:02

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Well, you've got a point there. Somehow I envisioned using packer exclusively for all my searches and installs and using pacman for querying, removing and everything else.

Let's stay away from Bloatsville then.

Last edited by MajorTom (2010-01-21 06:57:21)

Offline

#133 2010-01-21 09:02:20

lovebug356
Member
Registered: 2009-08-05
Posts: 6

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

I'm using a lot this command:

yaourt -G <packagename>

to download the PKGCONFIG (and friends) in the current directory for the given package.

Will there be something similar implemented for packer?

Offline

#134 2010-01-21 09:09:50

kalpik
Member
From: India
Registered: 2007-05-08
Posts: 163
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

+1 for -G

Offline

#135 2010-01-21 09:42:39

Sirsurthur
Member
Registered: 2009-02-02
Posts: 124

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

One more question too.

Will it be possible or is it actually possible to choose the $EDITOR in order too check pkgbuilds ? I personally am used too nano instead of vi.

Thanks for packer.

Offline

#136 2010-01-21 09:44:31

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

bruenig wrote:
buttons wrote:

Minor bug:

resolving dependencies...
Dependency ` lib32-pcre of `bin32-skype' does not exist.
Not updating `bin32-skype'.

Aur Targets    (0): 

Proceed with installation? [Y/n]

Pressing 'n' to not install 0 of 0 targets does not result in the universe imploding, as expected.

I believe I have fixed it. packer -S packer and see.

still not working

Offline

#137 2010-01-21 12:40:43

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Sirsurthur wrote:

Will it be possible or is it actually possible to choose the $EDITOR in order too check pkgbuilds ? I personally am used too nano instead of vi.

Unless I read this wrong, it should already do this:

${EDITOR:-vi} PKGBUILD

archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#138 2010-01-21 16:09:37

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Thanks to packer and its development pace, I am now severely addicted to doing packer -S packer.

Offline

#139 2010-01-21 16:39:20

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

MajorTom wrote:

Thanks to packer and its development pace, I am now severely addicted to doing packer -S packer.

Intervention! big_smile

I love seeing all of these feature requests. That means more and more people are trying it out.

Offline

#140 2010-01-21 19:01:49

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Sirsurthur wrote:

One more question too.

Will it be possible or is it actually possible to choose the $EDITOR in order too check pkgbuilds ? I personally am used too nano instead of vi.

Thanks for packer.

You need to set the EDITOR environment variable. For instance, in your /etc/profile, put a line that says export EDITOR="emacs". This is a pretty common unix convention to rely on the EDITOR env variable.

Offline

#141 2010-01-21 19:07:58

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

na12 wrote:
bruenig wrote:
buttons wrote:

Minor bug:

resolving dependencies...
Dependency ` lib32-pcre of `bin32-skype' does not exist.
Not updating `bin32-skype'.

Aur Targets    (0): 

Proceed with installation? [Y/n]

Pressing 'n' to not install 0 of 0 targets does not result in the universe imploding, as expected.

I believe I have fixed it. packer -S packer and see.

still not working

I don't understand.

[[ $localpackages ]] || exit

This on line 496 tests if there are any packages for whom finding dependencies was successful. Shrug.

Last edited by bruenig (2010-01-21 19:08:37)

Offline

#142 2010-01-21 19:13:20

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

lovebug356 wrote:

I'm using a lot this command:

yaourt -G <packagename>

to download the PKGCONFIG (and friends) in the current directory for the given package.

Will there be something similar implemented for packer?

Put this function in your .bashrc

getaurtarball() {
  wget "http://aur.archlinux.org/packages/$1/$1.tar.gz" && tar xf "$1.tar.gz"
}

I don't know. It seems so trivial. If people really ask for it, I guess I can add it. It just does not strike me as something for which a wrapper is necessary.

Last edited by bruenig (2010-01-21 19:14:42)

Offline

#143 2010-01-22 04:05:23

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

bruenig: how about -Syyu? I don't use it a lot but sometimes I end up forcing a refresh this way.
Thanks.

Offline

#144 2010-01-22 04:25:51

doorknob60
Member
Registered: 2008-09-29
Posts: 403

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Wow, that's pretty freakin fast smile I suggest putting whether or not a package is installed next to the package name while searching and also the number of AUR votes. Those are two things I'm very used to so I kinda need them, well at least the installed. EDIT: I guess that would really slow it down though hmm Calling pacman a crapload of times...

Well, will still be replacing yaourt for me though smile

EDIT: Small bug, on the syncing AUR progress bar, it shows two % signs tongue

Last edited by doorknob60 (2010-01-22 04:36:45)

Offline

#145 2010-01-22 04:59:02

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

MajorTom wrote:

how about -Syyu?

Is it important to put that into packer, instead of just relying on pacman to do it?

doorknob60 wrote:

Small bug, on the syncing AUR progress bar, it shows two % signs tongue

My gosh. I never noticed! Seriously. yikes

Offline

#146 2010-01-22 07:01:57

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

doorknob60 wrote:

Wow, that's pretty freakin fast smile I suggest putting whether or not a package is installed next to the package name while searching and also the number of AUR votes. Those are two things I'm very used to so I kinda need them, well at least the installed. EDIT: I guess that would really slow it down though hmm Calling pacman a crapload of times...

Well, will still be replacing yaourt for me though smile

EDIT: Small bug, on the syncing AUR progress bar, it shows two % signs tongue

It shows one % here. I changed the line that outputs that to use echo instead of printf because the printf syntax for outputting a % is %%. I don't know if that fixes it.

Offline

#147 2010-01-22 07:03:55

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

MajorTom wrote:

bruenig: how about -Syyu? I don't use it a lot but sometimes I end up forcing a refresh this way.
Thanks.

Seems like you should be doing pacman -Syy ; packer -Su.

Last edited by bruenig (2010-01-22 07:04:51)

Offline

#148 2010-01-22 16:51:11

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Fair enough.

Just to explain why I thought it'd be useful - I'd like to use packer for all actions related to searching and installing packages and updating the system (official repos and AUR). And I'd use pacman for queries, removals and everything else. So, I felt -Syyu would just nicely complete the -S set of arguments.

Offline

#149 2010-01-22 17:50:47

kalpik
Member
From: India
Registered: 2007-05-08
Posts: 163
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

It doesn't install bin-32-skype.. Says "Dependency ` lib32-pcre' of `bin32-skype' does not exist.".

Maybe trim the leading space?

Offline

#150 2010-01-22 17:59:54

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

kalpik wrote:

It doesn't install bin-32-skype.. Says "Dependency ` lib32-pcre' of `bin32-skype' does not exist.".

Maybe trim the leading space?

http://aur.archlinux.org/packages/bin32 … e/PKGBUILD

Yep, there's an extra space in the depends line for ' lib32-pcre'. Someone already posted a comment to the maintainer about it, but it apparently didn't get fixed. tongue

I don't know if packer should "fix" this kind of thing. Also, you can always edit the PKGBUILD yourself when you run packer. smile

Offline

Board footer

Powered by FluxBB