You are not logged in.

#101 2007-05-10 17:43:24

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 336
Website

Re: yaourt: pacman frontend

Great - thanks! I'll have a look at it. Not that I'm a screen guru, but now that I know what to look for, it might be easier.

Offline

#102 2007-05-11 07:05:57

Shirakawasuna
Member
Registered: 2007-03-09
Posts: 94

Re: yaourt: pacman frontend

I've experienced the same issue as emphire, with my own package even.  yaourt -Su --aur gives "a7xpg: Unable to read a7xpg's PKGBUILD".  yaourt -S a7xpg works fine.

Offline

#103 2007-05-15 01:10:44

Shirakawasuna
Member
Registered: 2007-03-09
Posts: 94

Re: yaourt: pacman frontend

It also seems like yaourt is adding cruft for some packages using -S.  For instance for doing yaourt -S gprename, the gtk2-perl and glib-perl dependencies are required.  After those packages install and the gprename installation is complete, it says:

checking dependencies... done.

Targets: gtk2-perl  cairo-perl  glib-perl

Do you want to remove these packages? [Y/n] n

Apparently this is asking if I want to keep them explicitly installed - I thought yaourt could install dependencies *as* dependencies of the package. Doing pacman -Rsc gprename does not remove glib-perl or gtk2-perl, and the packages do not show up in pacman -Qe.  Had I not noticed, I'd have three new cruft packages: glib-perl, gtk2-perl, and the dependency cairo-perl.

(note: avoiding this kind of thing is exactly why I dropped aurbuild - any fix is greatly appreciated!)

Last edited by Shirakawasuna (2007-05-15 01:11:14)

Offline

#104 2007-05-15 16:55:16

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

Re: yaourt: pacman frontend

Shirakawasuna wrote:

It also seems like yaourt is adding cruft for some packages using -S.  For instance for doing yaourt -S gprename, the gtk2-perl and glib-perl dependencies are required.  After those packages install and the gprename installation is complete, it says:

checking dependencies... done.

Targets: gtk2-perl  cairo-perl  glib-perl

Do you want to remove these packages? [Y/n] n

Apparently this is asking if I want to keep them explicitly installed - I thought yaourt could install dependencies *as* dependencies of the package. Doing pacman -Rsc gprename does not remove glib-perl or gtk2-perl, and the packages do not show up in pacman -Qe.  Had I not noticed, I'd have three new cruft packages: glib-perl, gtk2-perl, and the dependency cairo-perl.

(note: avoiding this kind of thing is exactly why I dropped aurbuild - any fix is greatly appreciated!)

This is due to the new makepkg3. I have to write a patch ASAP


for "Unable to read PKGBUILD" problem, I have found a solution for the next release ;-)

Offline

#105 2007-05-16 21:04:57

mutlu_inek
Member
From: all over the place
Registered: 2006-11-18
Posts: 676
Website

Re: yaourt: pacman frontend

wain wrote:

for "Unable to read PKGBUILD" problem, I have found a solution for the next release ;-)

You are outstanding. We are all deeply indebted to your work. Keep it up!

Offline

#106 2007-05-24 22:03:34

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

Re: yaourt: pacman frontend

- version 0.7.9-1 -

- fixed wget -c for aur's PKGBUILD (thanks to Florian Loitsch)
- yaourt -Sg show group without root/sudo (thanks to Marc Poiroud)
- yaourt -Si show "last update" for aur's package (Nak)
- new dynamic title for xterm/aterm/rxvt
- makedepends for makepkg are not removed until this bug is not fixed:
http://bugs.archlinux.org/task/7193

Offline

#107 2007-05-24 22:09:00

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: yaourt: pacman frontend

wain wrote:

- makedepends for makepkg are not removed until this bug is not fixed:
http://bugs.archlinux.org/task/7193

/me votes for it


I am a gated community.

Offline

#108 2007-06-06 19:53:04

Beini
Member
From: Finland
Registered: 2007-06-06
Posts: 78

Re: yaourt: pacman frontend

I'm not sure if this is yaourt related or PKGBUILD related... Im new to arch, just made the switch from gentoo smile

When I'm trying to install lib32-libart-lgpl from aur, i get this error:

./PKGBUILD: line 21: `install-dir': not a valid identifier

I can make the package manually with makepkg without problems.


archlinux x86_64 user || My PKGBUILDs

Offline

#109 2007-06-07 16:18:09

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

Re: yaourt: pacman frontend

Beini wrote:

I'm not sure if this is yaourt related or PKGBUILD related... Im new to arch, just made the switch from gentoo smile

When I'm trying to install lib32-libart-lgpl from aur, i get this error:

./PKGBUILD: line 21: `install-dir': not a valid identifier

I can make the package manually with makepkg without problems.

hum, there is a problem with "source ./PKGBUILD" in yaourt with this extra install-dir function. I don't know how to solve this at this time.
Maybe the solution is to move this line in the build() function as DaNiMoTh wrote on AUR.

build() {
  mkdir -p $startdir/pkg/opt/lib32/usr/
  cp -rPf $startdir/src/usr/lib $startdir/pkg/opt/lib32/usr/lib
}

Last edited by wain (2007-06-07 16:18:34)

Offline

#110 2007-06-12 03:25:57

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

Re: yaourt: pacman frontend

Anyway to make installing a package from aur not display all the comments?

Offline

#111 2007-06-12 05:34:38

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: yaourt: pacman frontend

nesl247 wrote:

Anyway to make installing a package from aur not display all the comments?

I agree, it's pretty irritating for packages that have REALLY long comments.

Also, I get a bug that I think is caused by using an alternative --tmp directory:

$ yaourt -S vmware-player --tmp tmp/

...

/usr/bin/yaourt: line 1122: tmp//yaourt-tmp-stonecrest/orphans/orphans_after.13239.tmp: No such file or directory
/usr/bin/yaourt: line 1123: tmp//yaourt-tmp-stonecrest/orphans/installed_after.13239: No such file or directory
/usr/bin/yaourt: line 1124: tmp//yaourt-tmp-stonecrest/orphans/installed_after.13239.newonly: No such file or directory
/usr/bin/yaourt: line 1125: tmp//yaourt-tmp-stonecrest/orphans/orphans_after.13239: No such file or directory
comm: tmp//yaourt-tmp-stonecrest/orphans/orphans_before.13239: No such file or directory

I am a gated community.

Offline

#112 2007-06-12 11:31:24

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

Re: yaourt: pacman frontend

nesl247 wrote:

Anyway to make installing a package from aur not display all the comments?

Ok I will add an option

stonecrest wrote:

Also, I get a bug that I think is caused by using an alternative --tmp directory:

$ yaourt -S vmware-player --tmp tmp/

...

/usr/bin/yaourt: line 1122: tmp//yaourt-tmp-stonecrest/orphans/orphans_after.13239.tmp: No such file or directory
/usr/bin/yaourt: line 1123: tmp//yaourt-tmp-stonecrest/orphans/installed_after.13239: No such file or directory
/usr/bin/yaourt: line 1124: tmp//yaourt-tmp-stonecrest/orphans/installed_after.13239.newonly: No such file or directory
/usr/bin/yaourt: line 1125: tmp//yaourt-tmp-stonecrest/orphans/orphans_after.13239: No such file or directory
comm: tmp//yaourt-tmp-stonecrest/orphans/orphans_before.13239: No such file or directory

Sorry, you have to pass the full path like yaourt -S vmware-player --tmp /home/stonecrest/tmp/

Last edited by wain (2007-06-12 11:32:01)

Offline

#113 2007-06-12 16:19:14

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

Re: yaourt: pacman frontend

Thanks in advance for the not showing of comment option. You think we could have it as default, or have some sort of line in pacman.conf to disable it, so that we don't have to pass --no-comments or something to yaourt?

Offline

#114 2007-06-12 18:10:51

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

Re: yaourt: pacman frontend

nesl247 wrote:

Thanks in advance for the not showing of comment option. You think we could have it as default, or have some sort of line in pacman.conf to disable it, so that we don't have to pass --no-comments or something to yaourt?

what do you prefer ? smile
It's easy to add an alias in .bashrc like "alias yaourt='yaourt --showcomment'" or "alias yaourt='yaourt --nocomment'" smile

Offline

#115 2007-06-12 19:11:39

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

Re: yaourt: pacman frontend

I'd default it to off. There's really no reason to show comments unless you want to see them.

Offline

#116 2007-06-13 03:14:57

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: yaourt: pacman frontend

wain wrote:

Sorry, you have to pass the full path like yaourt -S vmware-player --tmp /home/stonecrest/tmp/

Hmm.. yaourt uses the relative tmp path I specified just fine, right up until after the package is installed and I see those lines. Maybe I'm not understanding you correctly. Are you saying that specifying the full path will prevent those error messages? Or will this be changed in the future to allow relative paths?


I am a gated community.

Offline

#117 2007-06-14 06:31:02

congyiwu
Member
Registered: 2006-11-18
Posts: 16

Re: yaourt: pacman frontend

Whenever pacman gives me a Y/n prompt, pressing 'enter' will choose the default.  Pressing random letters or the arrow keys doesn't do anything.  However, when yaourt gives me a prompt for building/installing packages from the AUR, almost any key will automatically answer the prompt, and show the PKGBUILD, build the pkg, etc.  Maybe I'm just being clumsy, but I've accidentally answered a few of these prompts already by trying to change terminals in yakuake with shift+right, except not pressing shift, etc.  I think it would be better to only allow the enter key, plus whatever the actual letter choices are for these prompts.

Anyway, I used to use qpkg, and once I realized that qpkg wasn't being developed anymore, I switched to aurbuild, and once aurbuild wasn't being developed anymore, I started using yaourt, which is much faster than aurbuild, btw.  I like yaourt a lot so far.  Keep up the good work.

Offline

#118 2007-06-14 08:17:14

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

Re: yaourt: pacman frontend

The prompt() should be changed to contain read -ep "<content of question> y/n etc" <variable name>, instead of the current method of posting the question, then asking yes/no.

Offline

#119 2007-06-18 17:17:44

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

Re: yaourt: pacman frontend

stonecrest wrote:
wain wrote:

Sorry, you have to pass the full path like yaourt -S vmware-player --tmp /home/stonecrest/tmp/

Hmm.. yaourt uses the relative tmp path I specified just fine, right up until after the package is installed and I see those lines. Maybe I'm not understanding you correctly. Are you saying that specifying the full path will prevent those error messages? Or will this be changed in the future to allow relative paths?

Yes, specifying the full path can prevent those errors, but Yaourt 0.8 will accept relative paths too :-)

nesl247 wrote:

I'd default it to off. There's really no reason to show comments unless you want to see them.

Ok, yaourt will show comment by default. But finally, several users convinced me to add a config file. You will be able to desactivate AUR comments here.

nesl247 wrote:

The prompt() should be changed to contain read -ep "<content of question> y/n etc" <variable name>, instead of the current method of posting the question, then asking yes/no.

-e option is exactly what we need for the problem with arrow keys \o/  thanks a lot !
But the yaourt's behavior which consists in taking only one letter is so much faster big_smile

Last edited by wain (2007-06-18 17:29:46)

Offline

#120 2007-06-19 22:35:12

Shirakawasuna
Member
Registered: 2007-03-09
Posts: 94

Re: yaourt: pacman frontend

Sorry if what I'm about to report has been talked about already, but I swear I searched for it and searched for it!  As I'm sure everyone has noticed, yaourt downloads the source for its packages for every package every time it is run - this means that if you install say 'legends' with yaourt, it downloads the source and attempts to install.  If this install fails and you want to install it again, you'll have to redownload the source.  This becomes something of a chore if the PKGBUILD has issues (or the user's system) and it would be convenient to be able to specify, possibly in a conf file, to save the source unless a command like yaourt -Scc --aur was run.

It really does seem like someone would have brought this issue up, so again sorry if it's bee gone through!

Offline

#121 2007-06-19 22:37:30

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

Re: yaourt: pacman frontend

I'm not sure how yaourt works in terms of downloading packages from aur. But this is what could happen

It changes to /tmp
Downloads the .tar.gz
Extracts
Changes to the directory
Builds
If fail, let the person know, but keep the directory

If it's run again, and the version from aur matches the version in the /tmp/<pkgname>/PKGBUILD (if /tmp/<pkgname> is there), then it dosn't redownload.

Offline

#122 2007-06-20 17:44:11

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

Re: yaourt: pacman frontend

Shirakawasuna wrote:

Sorry if what I'm about to report has been talked about already, but I swear I searched for it and searched for it!  As I'm sure everyone has noticed, yaourt downloads the source for its packages for every package every time it is run - this means that if you install say 'legends' with yaourt, it downloads the source and attempts to install.  If this install fails and you want to install it again, you'll have to redownload the source.  This becomes something of a chore if the PKGBUILD has issues (or the user's system) and it would be convenient to be able to specify, possibly in a conf file, to save the source unless a command like yaourt -Scc --aur was run.

It really does seem like someone would have brought this issue up, so again sorry if it's bee gone through!

Oh that's very easy big_smile
Just add "SRCDEST=/some/where/src" in /etc/makepkg.conf cool

Offline

#123 2007-06-20 22:24:23

tockar
Member
From: Poland
Registered: 2006-06-08
Posts: 15
Website

Re: yaourt: pacman frontend

Small bug with --aur:

==> Searching for new version on AUR
(...)
kernel26viper: /usr/bin/yaourt: line 993: [: i: integer expression expected
/usr/bin/yaourt: line 994: [: i: integer expression expected
up to date

Yaourt has this problem only with kernel26viper.

Offline

#124 2007-06-21 08:29:00

Shirakawasuna
Member
Registered: 2007-03-09
Posts: 94

Re: yaourt: pacman frontend

wain wrote:

Just add "SRCDEST=/some/where/src" in /etc/makepkg.conf

Awesome, thanks!

Was this in any of the documentation, by the way? smile

Offline

#125 2007-06-21 11:59:51

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: yaourt: pacman frontend

man makepkg, man makepkg.conf (PKGDEST/SRCDEST)


1000

Offline

Board footer

Powered by FluxBB