You are not logged in.

#151 2010-01-22 18:25:48

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

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

Yaourt skype upgrade without problem.

Last edited by na12 (2010-01-22 18:26:49)

Offline

#152 2010-01-23 01:23:45

kjslag
Member
Registered: 2009-11-03
Posts: 43

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

is installing/building/updating packages from core/extra/community from the source code a planned feature?

Offline

#153 2010-01-23 02:42:41

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

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

kjslag wrote:

is installing/building/updating packages from core/extra/community from the source code a planned feature?

I don't think so, since you can do those things by using pacman and abs.

Is there a special feature that can't be done using those two programs?

Offline

#154 2010-01-23 06:02:03

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

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

This is slightly unrelated, but in zshrc is there a way to make it so when I type "y -R" then it runs "sudo pacman-color -R" Aliases seem to only work without spaces, but I'm too used to y -R (y is my old alias for yaourt, I've now replaces y with packer, but now it bugs me sometimes tongue).

Offline

#155 2010-01-23 20:08:49

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

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

na12 wrote:

Yaourt skype upgrade without problem.

The dependency listed on the skype PKGBUILD is

' lib32-pcre'

This dependency does not exist.

The dependency that does exist is:

'lib32-pcre'

Not sure if it makes sense to get in the business of trying to guess and fix PKGBUILD typos. That is what editing the PKGBUILD is for.

Last edited by bruenig (2010-01-23 20:15:17)

Offline

#156 2010-01-23 20:14:05

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

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

MajorTom wrote:

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.

I went ahead and add -Syyu -Suyy -Syuy on the list of legitimate update commands. Given that all I do is pass those arguments to pacman unparsed, it does not slow the program down at all, so it is not a big deal.

Last edited by bruenig (2010-01-23 20:56:49)

Offline

#157 2010-01-23 20:31:20

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

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

Added support for people who utilize the PKGDEST feature of makepkg. For those unfamiliar, PKGDEST is a feature of makepkg that moves packages to a certain directory once they are built (so you have a sort of local cache of all built packages). This created problems because packer was assuming that the built package was going to be in the current directory. Now it sees if PKGDEST is set and if so uses that path to find where the built .tar.gz is. If not, assumes it is in the current directory.

Because makepkg.conf was already being sourced, it only introduces 1 more conditional test into the code for aur installation which is a negligible speed hit especially for that part of the code where speed is not very important anyways.

Offline

#158 2010-01-23 22:18:14

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

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

bruenig wrote:

add -Syyu -Suyy -Syuy on the list of legitimate update commands

packer FTW! big_smile
Thank you.

Any chance you could make it recognize and pass pacman's "--ignore" as well?

Last edited by MajorTom (2010-01-23 23:29:15)

Offline

#159 2010-01-24 01:10:28

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

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

MajorTom wrote:
bruenig wrote:

add -Syyu -Suyy -Syuy on the list of legitimate update commands

packer FTW! big_smile
Thank you.

Any chance you could make it recognize and pass pacman's "--ignore" as well?

I have attempted to add it. It definitely works for aur packages.

For pacman, it passes the --ignore argument during update and it passes the --ignore argument during install. So, like pacman --ignore firefox -Syu and pacman --ignore firefox -S foo. When it is fetching pacman dependencies for aur packages, it does not currently pass the argument, but it does always prompt you for pacman dependencies for aur packages, so you already have an opportunity to say no. I don't intend on adding that extra layer of prompting because it would be obnoxious and kind of difficult even.

Last edited by bruenig (2010-01-24 01:25:16)

Offline

#160 2010-01-24 03:04:20

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

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

This is awesome. Just tested '-Syu --ignore' and it worked perfectly.

I'm glad you've got the time to make all this happen. This is certainly appreciated. You've had my AUR vote right from the start and I hope many others will do the same soon, too.

At this point all I need is the "quiet" search results option I mentioned before (-Ssq). BTW: I've just realized that  yaourt couldn't do that!

Offline

#161 2010-01-24 04:40:28

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

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

bruenig wrote:

Not sure if it makes sense to get in the business of trying to guess and fix PKGBUILD typos. That is what editing the PKGBUILD is for.

I agree! But it does not even let me edit the PKGBUILD. It just fails saying dependency does not exist.

Offline

#162 2010-01-24 04:59:24

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

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

kalpik wrote:
bruenig wrote:

Not sure if it makes sense to get in the business of trying to guess and fix PKGBUILD typos. That is what editing the PKGBUILD is for.

I agree! But it does not even let me edit the PKGBUILD. It just fails saying dependency does not exist.

Ah. Hmmm. Well. Should probably fix the PKGBUILD. I think I will implement -G to allow people to do this kind of shit when PKGBUILDs are so dysfunctional.

Offline

#163 2010-01-24 05:01:16

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

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

Heh..

Offline

#164 2010-01-24 05:14:36

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

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

Added -G option because PKGBUILD creators are often dumb.

Offline

#165 2010-01-24 05:17:11

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

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

Thanks! One suggestion, why not allow editing PKGBUILD even when dependency is not found? Right now, it exits.. Perhaps make it say that dependency does not exist, but even then allow editing PKGBUILD?

Offline

#166 2010-01-24 05:32:50

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

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

bruenig wrote:

Added -G option because SOME PKGBUILD creators are often dumb.

^fixed

Why the choice of -G and not, say, -d/-w (pacman's download only)? Just curious... With this, packer is getting to behave more like aurget.

Last edited by MajorTom (2010-01-24 05:36:08)

Offline

#167 2010-01-24 05:45:27

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

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

brueg, are you going to bother with mktmp or am I forced to fork for reals?

I can think of a couple of very real situations were not using mktmp (or /tmp/packaer-$RANOM, whatevs) would break it.

Besides, it should check for $TMPDIR first.

Offline

#168 2010-01-24 07:44:18

patogen
Member
Registered: 2008-05-11
Posts: 86

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

bruenig wrote:

Added -G option because PKGBUILD creators are often dumb.

This was the only thing I was missing. Thanks alot, great effort!


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#169 2010-01-24 08:22:46

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

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

MajorTom wrote:
bruenig wrote:

Added -G option because SOME PKGBUILD creators are often dumb.

^fixed

Why the choice of -G and not, say, -d/-w (pacman's download only)? Just curious... With this, packer is getting to behave more like aurget.

-Sw would make people think that it was also going to support pacman download only stuff which it wont. Also, someone else said -G was the flag, so I didn't put too much thought into i

Also, -Sw resolves dependencies and this whole thing arose because resolving dependencies was the problem.

Last edited by bruenig (2010-01-24 08:23:06)

Offline

#170 2010-01-24 08:25:05

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

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

res wrote:

brueg, are you going to bother with mktmp or am I forced to fork for reals?

I can think of a couple of very real situations were not using mktmp (or /tmp/packaer-$RANOM, whatevs) would break it.

Besides, it should check for $TMPDIR first.

mktmp is fail because I cannot access the same directory each time. Also it will bloat up the /tmp dir. I have made it respect TMPDIR on the git.

Last edited by bruenig (2010-01-24 08:28:09)

Offline

#171 2010-01-24 20:21:20

j2902
Member
Registered: 2009-12-21
Posts: 20

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

I've got a question / feature request.

If packer doesn't recognize the argument pattern, eg, -Rns, could it just call pacman with those arguments?

In an attempt of clarity,

packer -fascfSDfasd package0 package1

would call

pacman -fascfSDfasd package0 package1

(obviously, -fascfSDfasd is not valid input)

Thanks.

Note: I got this to work by changing line 412 to

 -*) runasroot pacman-color $@ ; exit ;;

This probably is a terrible way to implement it, however.

Last edited by j2902 (2010-01-24 22:23:54)

Offline

#172 2010-01-25 00:28:45

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

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

j2902 wrote:

I've got a question / feature request.

If packer doesn't recognize the argument pattern, eg, -Rns, could it just call pacman with those arguments?

In an attempt of clarity,

packer -fascfSDfasd package0 package1

would call

pacman -fascfSDfasd package0 package1

(obviously, -fascfSDfasd is not valid input)

Thanks.

Note: I got this to work by changing line 412 to

 -*) runasroot pacman-color $@ ; exit ;;

This probably is a terrible way to implement it, however.

I don't understand why you don't just use pacman.

Offline

#173 2010-01-25 00:42:48

j2902
Member
Registered: 2009-12-21
Posts: 20

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

It's easier / faster to just have one program in bash to call; however, I'm might be missing something.  What are the advantages to separating pacman and packer?

Thanks.

edit: Let me clarify.

Specifically, this change allows for closer integration between packer and pacman.  The features of packer are useful; however, having to use two separate utilities, packer and pacman, for package management is annoying.  This change rectifies this annoyance, and I cannot think of any disadvantages to the change.  I cannot imagine how the speed of packer would decrease.  However, there could very well be a disadvantage I'm not aware of.  If you know of this disadvantage, please tell me.  Otherwise, I do not see why this change should not be incorporated into packer.

Last edited by j2902 (2010-01-25 04:09:42)

Offline

#174 2010-01-25 02:30:54

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

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

I personally use packer for searches, installs and updates. Otherwise, I'd need to run pacman -Ss and pacman -S/-Su/-Syu/-Syyu (for the official repos) plus aurget -s and aurget -i/-u (for AUR packages).

For everything else involving package management (queries, removals, etc.), I use pacman.

Offline

#175 2010-01-25 04:05:02

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

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

I'm glad I stumbled on this thread. smile

Thanks bruenig for making packer.

I just installed packer & ran packer -Syu, it was certainly quicker than the -Syu --aur I am used to.

When it got to the AUR upgrade the following happened even though I have IgnorePkg = nerolinux in pacman.conf:


:: Starting full aur upgrade...
resolving dependencies...

Aur Targets    (1): nerolinux
Pacman Targets (1): rpmextract

Proceed with installation? [Y/n] n


I thought that packer abides by pacman.conf, at least in the IgnorePkg instance.  Am I missing something here?

Anyway, even if it doesn't, I'm already in love with packer, it has already replaced yaourt on my system. smile

Last edited by handy (2010-01-25 04:15:04)


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

Board footer

Powered by FluxBB