You are not logged in.

#1 2009-09-17 09:21:00

Solid1986Snake
Member
Registered: 2007-06-18
Posts: 258

Configure yaourt to resume packages

Hi,

i am searching a way to efficiently update git/svn/hg.... packages using yaourt...

My idea is that yaourt saves its builddirectory not to /tmp but to a folder in my /home that doesn't get deleted...

The idea behind is that yaourt doesn't need to check out the whole source tree to build a new version but just to get the diff...

At the moment i am doing it by hand with makepkg, but it would be nice to have a fast way to update all dev packages with yaourt -Syu --devel.

Anyones an idea?

Offline

#2 2009-09-17 09:33:18

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Configure yaourt to resume packages

Doesn't yaourt already do this with "--devel"?

Check the man page/wiki/etc.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2009-09-17 14:07:05

Solid1986Snake
Member
Registered: 2007-06-18
Posts: 258

Re: Configure yaourt to resume packages

Well yaourt does update the devel packages... but it needs to check out the whole branch, because it build in /tmp which is cleaned after reboot.

My intention is to keep the /src folder so that yourt will resume the build next time....

I am aware of two options in /etc/yaourtrc:

TmpDirectory /home/pschw/user/yaourttmp
ExportToLocalRepository /home/user/Repo/yaourtbuild/

Well like you can see I adjusted these values.

No the packages are build in my home directory and afterwards exported to another directory in my /home... But it does not change anything on the default behaviour that I always have to check out the whole source to build a package.

Offline

#4 2009-09-17 21:12:49

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Configure yaourt to resume packages

How should the default behavior work otherwise? I think it's better for the user to determine where potentially large development checkouts should be stored on the system rather than let yaourt decide on its own.

Keep in mind that what you consider to be a reasonable default would probably not be reasonable to others. It would also go against the Arch philosophy of leaving things up to the user (yaourt was made for Arch after all).

You could however file a feature request to have yaourt display a warning message when storing development files somewhere in /tmp.

Last edited by Xyne (2009-09-17 21:13:26)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2009-09-18 05:59:49

Solid1986Snake
Member
Registered: 2007-06-18
Posts: 258

Re: Configure yaourt to resume packages

Well let me try to describe my intention in another way....

The default behaviuor when yaourt builds packages from aur is the following:

1.) Try to build in /var/abs/yaourtbuild/ if yaourt has no rights to wright in there
2.) it builds its packages per default in /tmp which will be cleaned after reboot.

The behaviour I would like:

1.) Build the aur packages in a directory in my /home..    for me it would be something like /home/$user/Repo/yaourt
2.) Check out the src folder of the package in that directory
3.) Do NOT clean the src directory after successfull build

[4] When yaourt will build the package again, because it is maybe a git package it will not need to checkout the whole master tree, but just the diff... This would speed up buildung packages with yaourt again a lot...

I would wonder if I need to create a wish, I could swear that I can create such a behaviour but am only to foolish to configure it the right way!

Offline

#6 2009-09-18 06:41:35

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Configure yaourt to resume packages

I quite like slurpy for this kind of thing.
If I expect that I'll be rebuilding again shortly in the future, I'll get the PKGBUILD with slurpy and build it manually.


neutral

Offline

#7 2009-09-18 09:13:41

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Configure yaourt to resume packages

What I do for git/svn packages is just do a yaourt -G <package_name> and do my own makepkg once in a while.

Alternatively, just change permissions on /var/abs/local to allow yaourt permission.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2009-09-18 09:29:52

Solid1986Snake
Member
Registered: 2007-06-18
Posts: 258

Re: Configure yaourt to resume packages

Alternatively, just change permissions on /var/abs/local to allow yaourt permission.

I thougth about that, but the space I have on my / partition is to lean.... in /home there would be more than 200 gig and no problems...

Offline

Board footer

Powered by FluxBB