You are not logged in.

#401 2010-05-25 22:40:53

frigaut
Member
From: Canberra, Australia
Registered: 2009-05-10
Posts: 215
Website

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

bruenig wrote:

frigaut, I am pretty sure I fixed that...

You did. thank you.


Archer since 03/2009 - AUR packages

Offline

#402 2010-05-27 13:27:22

sicpsnake
Member
From: Austin, TX.
Registered: 2010-02-25
Posts: 128
Website

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

I am not sure.. Is this a bug I am seeing?

 >>> packi chromium-browser-bin
/tmp/packertmp-1001/chromium-browser-bin.PKGBUILD: line 45: msg: command not found
/tmp/packertmp-1001/chromium-browser-bin.PKGBUILD: line 48: msg2: command not found
/tmp/packertmp-1001/chromium-browser-bin.PKGBUILD: line 54: [: : integer expression expected
/tmp/packertmp-1001/chromium-browser-bin.PKGBUILD: line 59: devel_update: command not found
Repository     : aur
Name           : chromium-browser-bin
Version        : LATEST-18
URL            : http://code.google.com/chromium/
Licenses       : custom:BSD
Groups         : None
Provides       : chromium-browser
Depends On     : alsa-lib desktop-file-utils ffmpeg gconf nss libjpeg6 libpng12 libxss
Make Depends   : 
Optional Deps  : chromium-codecs-ffmpeg-nonfree-bin: for viewing HTML5/H.264 videos [AUR]
                 ttf-hannom-usong: Unicode Han and Nom (Chinese and Vietnamese) fonts [AUR]
                 otf-ipafont: Unicode Gothic/sans and Mincho/serif (Japanese) fonts [AUR]
                 ttf-indic-otf: Unicode collection various (Indian) language fonts [extra]
                 xdg-utils: for setting a default browser on desktop environments [extra]
Conflicts With : chromium-browser chromium-browser-svn chromium-os-bin google-chrome-dev
Replaces       : chromium-browser chromium-browser-svn chromium-os-bin
Architecture   : i686 x86_64
Description    : The open-source project behind Google Chrome

Offline

#403 2010-05-27 13:34:44

frigaut
Member
From: Canberra, Australia
Registered: 2009-05-10
Posts: 215
Website

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

Yeah, I saw that "msg" command not found too. I didn't think much of it, and didn't report it, as it is just to display a message to the console, but I saw it too.


Archer since 03/2009 - AUR packages

Offline

#404 2010-05-27 14:21:21

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

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

sicpsnake wrote:

I am not sure.. Is this a bug I am seeing?

 >>> packi chromium-browser-bin
/tmp/packertmp-1001/chromium-browser-bin.PKGBUILD: line 45: msg: command not found
/tmp/packertmp-1001/chromium-browser-bin.PKGBUILD: line 48: msg2: command not found
/tmp/packertmp-1001/chromium-browser-bin.PKGBUILD: line 54: [: : integer expression expected
/tmp/packertmp-1001/chromium-browser-bin.PKGBUILD: line 59: devel_update: command not found
Repository     : aur
Name           : chromium-browser-bin
Version        : LATEST-18
URL            : http://code.google.com/chromium/
Licenses       : custom:BSD
Groups         : None
Provides       : chromium-browser
Depends On     : alsa-lib desktop-file-utils ffmpeg gconf nss libjpeg6 libpng12 libxss
Make Depends   : 
Optional Deps  : chromium-codecs-ffmpeg-nonfree-bin: for viewing HTML5/H.264 videos [AUR]
                 ttf-hannom-usong: Unicode Han and Nom (Chinese and Vietnamese) fonts [AUR]
                 otf-ipafont: Unicode Gothic/sans and Mincho/serif (Japanese) fonts [AUR]
                 ttf-indic-otf: Unicode collection various (Indian) language fonts [extra]
                 xdg-utils: for setting a default browser on desktop environments [extra]
Conflicts With : chromium-browser chromium-browser-svn chromium-os-bin google-chrome-dev
Replaces       : chromium-browser chromium-browser-svn chromium-os-bin
Architecture   : i686 x86_64
Description    : The open-source project behind Google Chrome

the error is in the PKGBUILD itself (as the error message states); they're just printed when packer sources it.

a fix might be this though

. PKGBUILD 2>/dev/null

to just suppress any errors in the PKGBUILD.  this chromium one's the only one i've seen with errors like this though.

Offline

#405 2010-05-27 17:44:23

frigaut
Member
From: Canberra, Australia
Registered: 2009-05-10
Posts: 215
Website

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

@brisbin33: I found the same error in the compiz++ packages, e.g. http://aur.archlinux.org/packages/ccsm+ … +/PKGBUILD
It's also using "msg". I can guess what that command is doing :-) , but I can't find in what package it lives (if any)?


Archer since 03/2009 - AUR packages

Offline

#406 2010-05-27 18:08:53

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)

frigaut wrote:

@brisbin33: I found the same error in the compiz++ packages, e.g. http://aur.archlinux.org/packages/ccsm+ … +/PKGBUILD
It's also using "msg". I can guess what that command is doing :-) , but I can't find in what package it lives (if any)?

This is a function provided by makepkg.  See /usr/bin/makepkg ~line 93.


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

Offline

#407 2010-06-28 19:39:34

gav616
Member
Registered: 2008-01-16
Posts: 182

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

once you set all your alias commands... packer/diffpac is a perfect pac(ker)age!
little requests:


1) the only thing I prefer about yaourt is the colour output. I think its more pleasant;
e.g.

packer.th.png yaourt.th.png
packer                                                   yaourt

edit*

2) It might of already been mentioned but, when searching, the 'installed' info on packages from AUR is not displayed.

3) ability to just sync repo/aur i.e.: packer -Sy/--auronly, then if an update is available a 'packer -Qu' would show repo and aur available updates.
reason is, I cron pacman -Sy every hour and have a conky script to show available updates, but aur updates are never seen beacuse they are only every checked when there is a repo update (after a "-Su")

4) when packer is forced to exit (ctrl+c), packer keeps running and db.lck file is still there, (i believe bauerbill had a fix for this)

5) An Option at the end of a successful build to ask to move to the cache dir (out of '/tmp' and into '/var/cache/pacman/pkg'), also could be an extra build parameter i.e. --cacheit

Last edited by gav616 (2010-07-02 12:59:29)

Offline

#408 2010-06-30 09:11:09

brendan
Member
From: UK
Registered: 2009-05-16
Posts: 130
Website

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

I have found a rather annoying bug/feature.

When in a tty and installing with pakcer the screen goes on wait. I press the arrow up typically to see the screen but then a character has been entered that is not Y or n and packer exits. Obviously I can go in /tmp and find the package but this is still annoying. Could you make it that only N and n quit the script and anything else asks the question again? Apart from Y or y which installs obviously ;-)

Hope that makes sense.

Thanks

Offline

#409 2010-07-02 15:58:17

jck
Member
From: USA
Registered: 2009-05-08
Posts: 98

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

Packer used to work fine but now suddenly i get this error: packer:1: maximum nested function level reached

Offline

#410 2010-07-05 00:48:40

Sertse
Member
Registered: 2009-11-19
Posts: 35

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

Hi, I have an error when trying to install midori-git

[acer@myhost ~]$ sudo packer -S midori-git
Password: 
warning: midori-git-20100705-1 is up to date -- reinstalling
warning: midori-git is flagged out of date

Aur Targets    (1): midori-git

Proceed with installation? [Y/n] 
Edit midori-git PKGBUILD with $EDITOR? [Y/n] n
Edit midori.install with $EDITOR? [Y/n] n
==> Determining latest git revision...
  -> Version found: 20100705
==> Making package: midori-git 20100705-1 (Mon Jul  5 10:46:01 EST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to the midori git repository...
fatal: Not a git repository (or any of the parent directories): .git
    Aborting...
The build failed.

It works with yaourt and clyde, just not in packer. 64bit, if that matters.

Offline

#411 2010-07-05 10:44:31

Sharpeee
Member
From: Denmark
Registered: 2008-10-19
Posts: 59

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

Sertse wrote:

Hi, I have an error when trying to install midori-git

[acer@myhost ~]$ sudo packer -S midori-git
Password: 
warning: midori-git-20100705-1 is up to date -- reinstalling
warning: midori-git is flagged out of date

Aur Targets    (1): midori-git

Proceed with installation? [Y/n] 
Edit midori-git PKGBUILD with $EDITOR? [Y/n] n
Edit midori.install with $EDITOR? [Y/n] n
==> Determining latest git revision...
  -> Version found: 20100705
==> Making package: midori-git 20100705-1 (Mon Jul  5 10:46:01 EST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to the midori git repository...
fatal: Not a git repository (or any of the parent directories): .git
    Aborting...
The build failed.

It works with yaourt and clyde, just not in packer. 64bit, if that matters.

That doesn't look like a packer error, but rather a makepkg error! I've just tried it, at get a different build error, but that is because the midori-git package is out of date.

Offline

#412 2010-07-05 19:57:14

essence-of-foo
Member
Registered: 2008-07-12
Posts: 84

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

packer -Rs wesnoth
packer: Option `-Rs' is not valid.

Could you please enable this option? Pacman supports it, so you just need to pass it on.

Offline

#413 2010-07-06 04:26:53

mk12
Member
Registered: 2010-07-06
Posts: 16

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

You don't need operations like -R and -Q in packer. Instead, you can use this wrapper function I wrote (put it in .bashrc  or .zshrc or whatever):

pacman() {
    if [[ $1 = -h* || $1 = "--help" ]]; then
        echo "pacman help:\n"
        /usr/bin/pacman -h
        echo "\n\npacker help:\n"
        packer -h
    elif [[ $1 = -V* || $1 = -Q* ]]; then
        pacman-colour "$@"
    elif [[ $1 = -Si* || $1 = -Ss* ]]; then
        packer "$@"
    elif [[ ( $1 != -Sy && $1 != -Sc* ) && ( $1 = -S* || $1 = -G* ) ]]; then
        sudo packer "$@"
    else
        sudo pacman-color "$@"
    fi
}

It will decide whether to use pacman or packer based on the arguments, and will use sudo if needed. Note that it uses pacman-color, just install it with packer, or if you don't want it, replace all the occurences of 'pacman-color' with '/usr/bin/pacman' (to avoid recursion).

It would be nice if someone good with regular expressions could write a nice case statement for that tongue.

Last edited by mk12 (2010-07-12 17:35:10)

Offline

#414 2010-07-06 21:27:13

valium97582
Member
Registered: 2010-06-19
Posts: 126

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

Cool! But I think clyde does a better job, even though clyde acts as a pacman replacement and packer acts as a wrapper between pacman and aurget(or other thing).


I'm also known as zmv on IRC.

Offline

#415 2010-07-13 01:55:27

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

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

essence-of-foo wrote:
packer -Rs wesnoth
packer: Option `-Rs' is not valid.

Could you please enable this option? Pacman supports it, so you just need to pass it on.

I spend hours writing this companion script to provide just this kind of functionality: http://github.com/bruenig/pacwrap/blob/master/pacwrap

Beat you mk12!

Offline

#416 2010-07-14 14:08:25

gav616
Member
Registered: 2008-01-16
Posts: 182

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

I just add pacman-color to my visudo then add the commands to bashrc

## pacman stuff ##

# search
alias ps='/usr/bin/pacman-color -Ss'
alias psa='/usr/bin/packer --auronly'

# install
alias pi='sudo /usr/bin/pacman-color -S'
alias pia='/usr/bin/packer -S --auronly'

# remove
alias pr='sudo /usr/bin/pacman-color -R'
alias prf='sudo /usr/bin/pacman-color -Rd'
alias pra='sudo /usr/bin/pacman-color -Rcs'

# clean
alias pc='sudo /usr/bin/pacman-color -Sc'
alias pca='sudo /usr/bin/pacman-color -Scc'

# list
alias plo='/usr/bin/pacman-color -Qdt'
alias plr='/usr/bin/pacman-color -Qet'
alias pla='/usr/bin/pacman-color -Qm'
alias plu='/usr/bin/pacman-color -Qu'

# upgrade
alias pu='sudo /usr/bin/pacman-color -Su'
alias pua='/usr/bin/packer -Su --auronly'

# diffpac
alias dp='sudo /usr/bin/diffpac'

Last edited by gav616 (2010-07-14 14:11:18)

Offline

#417 2010-07-16 00:14:13

mk12
Member
Registered: 2010-07-06
Posts: 16

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

bruenig wrote:
essence-of-foo wrote:
packer -Rs wesnoth
packer: Option `-Rs' is not valid.

Could you please enable this option? Pacman supports it, so you just need to pass it on.

I spend hours writing this companion script to provide just this kind of functionality: http://github.com/bruenig/pacwrap/blob/master/pacwrap

Beat you mk12!

That only took you a few hours? I didn't know about this amazing companion script before tongue. I actually switched to Clyde, but I think now I will use packer again instead.

The only problem is with pacwrap -V for example it first prints "packer: Option '-V' is not valid.", the prints the pacman version info. Is there a way to not print the parsing error?

Last edited by mk12 (2010-07-16 04:13:26)

Offline

#418 2010-07-16 01:57:55

jck
Member
From: USA
Registered: 2009-05-08
Posts: 98

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

packer does not show [installed] for aur packages...

Offline

#419 2010-07-17 22:22:17

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

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

jck wrote:

packer does not show [installed] for aur packages...

Nor does pacman for pacman repo packages....

Offline

#420 2010-07-17 22:23:08

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

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

mk12 wrote:
bruenig wrote:
essence-of-foo wrote:
packer -Rs wesnoth
packer: Option `-Rs' is not valid.

Could you please enable this option? Pacman supports it, so you just need to pass it on.

I spend hours writing this companion script to provide just this kind of functionality: http://github.com/bruenig/pacwrap/blob/master/pacwrap

Beat you mk12!

That only took you a few hours? I didn't know about this amazing companion script before tongue. I actually switched to Clyde, but I think now I will use packer again instead.

The only problem is with pacwrap -V for example it first prints "packer: Option '-V' is not valid.", the prints the pacman version info. Is there a way to not print the parsing error?

Yeah I noticed that too but figured it was not something anyone would really care about. It is not like you are parsing that information after all.

Offline

#421 2010-07-18 02:04:42

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

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

bruenig wrote:
jck wrote:

packer does not show [installed] for aur packages...

Nor does pacman for pacman repo packages....

//blue/0/~/ pacman -Ss xmonad
community/xmonad 0.9.1-4 [installed]
    A lightweight X11 tiled window manager written in Haskell
community/xmonad-contrib 0.9.1-3 [installed]
    Add-ons for xmonad

needs moar 3.4 tongue

Offline

#422 2010-07-21 17:38:31

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

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

3.4 is bloat

Offline

#423 2010-07-24 21:19:30

Nihathrael
Member
From: Freising, Germany
Registered: 2007-10-21
Posts: 82
Website

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

I hacked two new features into packer that make it even more awesome (imho!):
* Sort AUR search results
* Always update AUR packages that have the version string "LATEST" (chromium-browser-bin is the one i care about, don't konw if there are others)

Sorting comes at the cost of speed, it adds 10-50% extra time to a search that includes AUR. (Note that this is still about 1/4th of the time clyde for example takes). So it's not for the speed purists.
If you want to have these extra features, get them here:
http://github.com/Nihathrael/packer

Enjoy


Unknown Horizons - Open source real-time strategy game with the comfy Anno 1602 feeling!

Offline

#424 2010-07-25 10:59:15

tillmann
Member
Registered: 2010-01-21
Posts: 4

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

When invoking packer -Syu --devel --noconfirm I have to confirm every aur update.
That's not how it should work, right?

Offline

#425 2010-07-25 13:31:39

Nihathrael
Member
From: Freising, Germany
Registered: 2007-10-21
Posts: 82
Website

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

tillmann wrote:

When invoking packer -Syu --devel --noconfirm I have to confirm every aur update.
That's not how it should work, right?

I fixed this in my version(http://github.com/Nihathrael/packer). I will send a patch to bruenig so he can merge it into the main line if he agrees with the behaviour.


Unknown Horizons - Open source real-time strategy game with the comfy Anno 1602 feeling!

Offline

Board footer

Powered by FluxBB