You are not logged in.

#126 2007-06-21 18:18:14

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: yaourt: pacman frontend

tockar wrote:

Yaourt has this problem only with kernel26viper.

fixed in next release smile

Offline

#127 2007-06-22 16:48:36

The_ouroboros
Member
From: Pavia, Italy
Registered: 2007-05-28
Posts: 140

Re: yaourt: pacman frontend

I was using pacman+aurbuild... but yaout is soooo mutch better!!!
Magnific work!


Gnu/Linux User on Arch(x86_64)

Offline

#128 2007-06-24 08:51:14

The_ouroboros
Member
From: Pavia, Italy
Registered: 2007-05-28
Posts: 140

Re: yaourt: pacman frontend

is there a problem if I use it without sudo?


Gnu/Linux User on Arch(x86_64)

Offline

#129 2007-06-24 10:19:17

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: yaourt: pacman frontend

The_ouroboros wrote:

is there a problem if I use it without sudo?

No, it's just less easy big_smile
Just run yaourt as a user without sudo, the root password will be prompt only when it is necessary.

Offline

#130 2007-06-24 15:20:21

The_ouroboros
Member
From: Pavia, Italy
Registered: 2007-05-28
Posts: 140

Re: yaourt: pacman frontend

wain wrote:
The_ouroboros wrote:

is there a problem if I use it without sudo?

No, it's just less easy big_smile
Just run yaourt as a user without sudo, the root password will be prompt only when it is necessary.

k!
I hate sudo...


Gnu/Linux User on Arch(x86_64)

Offline

#131 2007-07-06 10:03:11

nesl247
Member
Registered: 2006-05-30
Posts: 191
Website

Re: yaourt: pacman frontend

any update on this wain?

Offline

#132 2007-07-06 16:15:12

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: yaourt: pacman frontend

nesl247 wrote:

any update on this wain?

The new release is ready. I just finalize the man page.

Offline

#133 2007-07-11 14:28:21

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: yaourt: pacman frontend

Hi,

Im tryin to compile the latest yaourt 0.8.2 using this PKGBUILD:

# Author: wain <wain.at.archlinux.fr>
pkgname=yaourt
pkgver=0.8.2
pkgrel=1
pkgdesc="A Pacman frontend with more features like AUR support" 
url="http://www.archlinux.fr/yaourt-en/" 
license="GPL" 
arch=(i686 x86_64)
depends=('lynx' 'wget' 'diffutils' 'pacman>=3.0.0') 
install=yaourt.install
source=(http://archiwain.free.fr/os/i686/$pkgname/$pkgname-$pkgver.src.tar.gz) 
backup=('etc/yaourtc')
build() { 
    cd $startdir/src/$pkgname 
    gzip yaourt.8
    install -d $startdir/pkg/usr/man/man8/
    install -m 644 yaourt.8.gz $startdir/pkg/usr/man/man8/
    gzip yaourtrc.5
    install -d $startdir/pkg/usr/man/man5/
    install -m 644 yaourtrc.5.gz $startdir/pkg/usr/man/man5/
    install -d $startdir/pkg/etc/
    install -m 644 yaourtrc $startdir/pkg/etc/
    install -d $startdir/pkg/usr/bin/ 
      install -m 755 $pkgname $startdir/pkg/usr/bin/ 
      install -m 755 pacdiffviewer $startdir/pkg/usr/bin/ 
}
md5sums=('ee936cefc14ff1e86743b808a1691350')

however I get this weird error:

[rhandulle@Don-DiZzLe yaourt]$ sudo makepkg
Password:
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
 is not available for the 'i686' architecture.
    Note that many packages may need a line added to their PKGBUILD
    such as arch=('i686').
[rhandulle@Don-DiZzLe yaourt]$

I don't see nothing wrong with the PKGBUILD.

Offline

#134 2007-07-11 18:05:50

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: yaourt: pacman frontend

I don't know where is exactly the problem, but makepkg should never be run neither as root nor with sudo.
Just run makepkg as unprivilegied user or add the [archlinuxfr] in pacman.conf:

[archlinuxfr]
Server = http://repo.archlinux.fr/i686
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64

Offline

#135 2007-07-11 18:26:56

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: yaourt: pacman frontend

Yay u were right, i did makepkg without sudo and it compiled just fine now.

Offline

#136 2007-07-12 15:01:45

wolfi
Member
From: Berlin
Registered: 2007-04-23
Posts: 24

Re: yaourt: pacman frontend

wain wrote:

... never be run neither as root nor with sudo ...

Can you tell me why this ? Cannot find any info in the wiki.

I dont like sudo, so i am used to use makepkg as root, its handy with the -si switch...only the yaourt warning is annoying big_smile

Offline

#137 2007-07-12 18:29:57

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: yaourt: pacman frontend

wolfi wrote:
wain wrote:

... never be run neither as root nor with sudo ...

Can you tell me why this ? Cannot find any info in the wiki.

I dont like sudo, so i am used to use makepkg as root, its handy with the -si switch...only the yaourt warning is annoying big_smile

man makepkg wrote:

-S, --usesudo
              Use sudo to perform all operations that require pacman. This  is
              useful  for  --install,  --rmdeps,  and  --syncdeps.  If you are
              building packages as a non-root user as recommended, this option
              should be used if using any option that calls pacman.

Because a lot of AUR Unsupported packages are not marked as SAFE, and runing makepkg against a buggy PKGBUILD as root can break your system.
More info here: http://bbs.archlinux.org/viewtopic.php?id=917

Offline

#138 2007-07-13 19:40:07

wolfi
Member
From: Berlin
Registered: 2007-04-23
Posts: 24

Re: yaourt: pacman frontend

Thanks for the link wain, now i understand smile

This one i really like:

don't do anything as root, what you could do as user

Offline

#139 2007-07-14 17:23:49

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: yaourt: pacman frontend

Hi, Im getting this invalid number error:

[rhandulle@Don-DiZzLe yaourt]$ yaourt -Cd
Please wait...
==> Some directories in /var/lib/pacman/ are no more used and should be removed:
kdemod-testing
==>  Do you want to delete these directories ? [y/N]
==>   ----------------------------------------------
==>/usr/bin/yaourt: line 1654: read: e: invalid number

==> Some repositories in pacman.conf are no more used and can be removed:
kdemod unstable

Offline

#140 2007-07-14 19:31:51

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: yaourt: pacman frontend

Don-DiZzLe wrote:

Hi, Im getting this invalid number error:

[rhandulle@Don-DiZzLe yaourt]$ yaourt -Cd
Please wait...
==> Some directories in /var/lib/pacman/ are no more used and should be removed:
kdemod-testing
==>  Do you want to delete these directories ? [y/N]
==>   ----------------------------------------------
==>/usr/bin/yaourt: line 1654: read: e: invalid number

==> Some repositories in pacman.conf are no more used and can be removed:
kdemod unstable

sorry, this will be fixed asap. Just run "rm -r /var/lib/pacman/kdemod-testing/" now to clean your pacman database smile

Offline

#141 2007-07-14 19:37:32

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: yaourt: pacman frontend

No problem, just pointing it out, so u'll make it even better nex time.

Offline

#142 2007-07-18 12:00:21

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: yaourt: pacman frontend

Yikes!
I would like to point out to everyone that deleting directories inside /var/lib/pacman means deleting part of your database and should be done with caution. If the wrong directory is deleted your database could become corrupt. For example, NEVER delete /var/lib/pacman/local, it is the database of packages currently installed on your system and without it you may as well reinstall.

Wain: perhaps a mandatory backup of /var/lib/pacman should be preformed before prompting a user if they would like to remove directories inside it?

Offline

#143 2007-07-18 15:19:53

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: yaourt: pacman frontend

T-Dawg wrote:

Wain: perhaps a mandatory backup of /var/lib/pacman should be preformed before prompting a user if they would like to remove directories inside it?

yaourt just delete unused directories. This is safe and can improve a little pacman speed by reducing fragmentation and database size.
Adding an option to backup /var/lib/pacman/local ? why not cool. But others directories are recreated each time you use -Sy, so backup is useless for them.

You can use this to backup the pacman database:

tar -cvjf "pacman-`date +%Y-%M-%d_%Hh%Mm`.tar.bz2" /var/lib/pacman/local

Offline

#144 2007-07-19 00:53:19

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: yaourt: pacman frontend

wain wrote:

But others directories are recreated each time you use -Sy, so backup is useless for them.

Right. I don't doubt your logic because you are correct. Its the chance of code error that I was mostly referring to. Best to take precautions when playing in the vicinity of fire -that all. Anyways a backup option would be good form smile

Offline

#145 2007-07-20 14:44:54

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: yaourt: pacman frontend

version 0.8.3 (07/20/07)
          o new option -G to get PKGBUILD:  yaourt -G <packagename>
          o new option --backup to save pacman database
          o ability to check built package with namcap before installing
          o removed depends to lynx
          o bug fixed in yaourt -Cd (reported by Don-DiZzLe)
          o bug fixed in yaourt -Su when exporting to repositorynew option PacmanBin in yaourtrc (to use pacman-color instead of pacman) (reported by cucullus)

Offline

#146 2007-08-05 09:51:05

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: yaourt: pacman frontend

Hi, yaourt looks very cool.  Too bad I have no more packages to install to play more with yaourt smile


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#147 2007-08-05 16:17:59

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: yaourt: pacman frontend

Hey wain! Love the application and I can't wait until yaourt becomes 'modularized' smile

I have a feature request - I use GUI terminal emulators (such as ROXTerm or rxvt) and after running yaourt the title is set to 'xterm' instead of how it was before hand. There is an escape code to get the current but I'm not if that is supported in all the emulators. Maybe another option could be set in yaourtrc to set the terminal title to something other than $TERM? A quick-fix is just to set $TERM in .bashrc but I keep seeing security notices around that say not to do that.

P.S. Could you also add searching in $HOME for .yaourtrc ? I'd like to have it seperate from /etc smile


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

#148 2007-08-05 20:52:49

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: yaourt: pacman frontend

Thank you zenix and Dieter@be smile

zenix wrote:

Hey wain! Love the application and I can't wait until yaourt becomes 'modularized' smile

I have a feature request - I use GUI terminal emulators (such as ROXTerm or rxvt) and after running yaourt the title is set to 'xterm' instead of how it was before hand. There is an escape code to get the current but I'm not if that is supported in all the emulators. Maybe another option could be set in yaourtrc to set the terminal title to something other than $TERM? A quick-fix is just to set $TERM in .bashrc but I keep seeing security notices around that say not to do that.

P.S. Could you also add searching in $HOME for .yaourtrc ? I'd like to have it seperate from /etc smile

yaourt already load $HOME/.yaourtc if it exists wink

I know that title can cause problem... the reason is I don't know how to easily restore the previous title of the window (before yaourt's launch). I've added this code in my .bashrc:

case $TERM in
    rxvt*|xterm*)
           PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
      ;;
esac

do you have an idea on how to reinit the title ?

Offline

#149 2007-08-05 23:25:36

nikron
Member
Registered: 2007-05-15
Posts: 130

Re: yaourt: pacman frontend

wain wrote:

Thank you zenix and Dieter@be smile

zenix wrote:

Hey wain! Love the application and I can't wait until yaourt becomes 'modularized' smile

I have a feature request - I use GUI terminal emulators (such as ROXTerm or rxvt) and after running yaourt the title is set to 'xterm' instead of how it was before hand. There is an escape code to get the current but I'm not if that is supported in all the emulators. Maybe another option could be set in yaourtrc to set the terminal title to something other than $TERM? A quick-fix is just to set $TERM in .bashrc but I keep seeing security notices around that say not to do that.

P.S. Could you also add searching in $HOME for .yaourtrc ? I'd like to have it seperate from /etc smile

yaourt already load $HOME/.yaourtc if it exists wink

I know that title can cause problem... the reason is I don't know how to easily restore the previous title of the window (before yaourt's launch). I've added this code in my .bashrc:

case $TERM in
    rxvt*|xterm*)
           PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
      ;;
esac

do you have an idea on how to reinit the title ?

I know the tittle is stored in MRXVTABTITLE for me, so I just modified yaourt to store that, then modify the the title, and change it back again.

Offline

#150 2007-08-06 22:14:18

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: yaourt: pacman frontend

Thanks for the reply, wain smile

wain wrote:

yaourt already load $HOME/.yaourtc if it exists

Ah, great! Nice to see that you can read minds, too

wain wrote:

do you have an idea on how to reinit the title ?

nikron wrote:

I know the tittle is stored in MRXVTABTITLE for me, so I just modified yaourt to store that, then modify the the title, and change it back again.

A couple of pages after a few searches online found:
http://lists.fifi.org/doc/xterm/xterm.f … how2_title
http://www.giccs.georgetown.edu/~ric/howto/Xterm-Title/ (I couldn't load it but doesn't produce a 404 error)
I do have 1 problem with yaourt trying to set the window title. I sometimes switch to virtual consoles (Ctrl+Alt+F1-F6) and when I run yaourt it tries to set the 'title' but it just causes "linux;" and the ASCII beep to output. This is quite annoying, especially when I run yaourt in Xterm whenever I have X running and it doesn't appear which is why I propose

case $TERM in
    linux)
       # do not set title
    ;;
esac

As an addition to yaourt (will edit post with more information on where to add it and possbily a patch attached) that way yaourt users running it within a virtual terminal won't have their 'title' set. This case statement does include the fact that screen may be running. If that is the case, the echo should go on bechttp://www.giccs.georgetown.edu/~ric/howto/Xterm-Title/uase $TERM is set to 'screen' not 'linux'

Also, wain, have you thought of redoing yaourt as a C/C++ application? You can use libalp (I think that is what it is) then! Also, it'll be a bit faster, but harder to code, I guess. Anyways, it's just a suggestion. smile

Edit
Found out how to get the title after reading fifi.org (see links above)!
Uses the WM_NAME property of a terminal as well as it's window id ($WINDOWID). ROXTerm doesn't seem to set this but the majority of VTE-based terminal emulators seem to do so. A one-liner is provided at the fifi.org link.

Last edited by zenix (2007-08-07 01:26:10)


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

Board footer

Powered by FluxBB