You are not logged in.

#1 2012-04-18 06:04:36

sirspudd
Member
From: Buried
Registered: 2010-07-08
Posts: 3
Website

Persistent git directories

Is there a standard rational place to persist git repos rather than checking out huge repos (Qt 5 in this case) in /tmp and dumping them after each and every successful package compilation.

I apologize for the n00by nature of the question; everything I have ever installed via AUR has checked everything out from scratch and following compilation, promptly tossed the checked out code in the flames.

Offline

#2 2012-04-18 13:53:13

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Persistent git directories

Anywhere you want should be fine. And if you use makepkg nothing will be deleted.

Offline

#3 2012-04-18 14:35:34

yasar11732
Member
Registered: 2010-11-29
Posts: 127

Re: Persistent git directories

If PKGBUILD is designed for using git, you only need to issue makepkg -e, anytime you would like to pull and re-compile (assuming you didn't delete PKGBUILD and other things after you compiled your package.). "-e" option allows you to keep current src directory, so you can only pull latest version. If you don't update version or release each time, makepkg would complain, you can use "-f" option to silence this complain.


Yo Dawg, I heard you likes patches, so I have created a patch for your patch, so you can patch your patches before you patch.

Offline

#4 2012-04-19 00:25:56

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Persistent git directories

sirspudd wrote:

Is there a standard rational place to persist git repos rather than checking out huge repos (Qt 5 in this case) in /tmp and dumping them after each and every successful package compilation.

a) Compile in /var/abs/local instead of /tmp
b) If you really want to compile in /tmp, modify the PKGBUILD that checks out the git repo to do a lightweight checkout (without history): http://breckyunits.com/code/git_clone_without_history

/tmp $ time git clone --depth=1 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Cloning into 'linux'...
remote: Counting objects: 40614, done.
remote: Compressing objects: 100% (38594/38594), done.
remote: Total 40614 (delta 3406), reused 13732 (delta 1542)
Receiving objects: 100% (40614/40614), 111.70 MiB | 1.12 MiB/s, done.
Resolving deltas: 100% (3406/3406), done.

real	10m11.203s
user	0m6.706s
sys	0m2.567s

The whole kernel tree in 10 minutes over an ADSL2+ connection.... With history takes over an hour.

Offline

#5 2012-04-19 00:28:58

sirspudd
Member
From: Buried
Registered: 2010-07-08
Posts: 3
Website

Re: Persistent git directories

Thank you kindly for the suggestions: I like both /var/abs/local  and the history trimmed git checkout

Offline

Board footer

Powered by FluxBB