Re: [gentoo-user] cleaning disfiles

2009-03-26 Thread laurent

Mike Kazantsev a écrit :

On Wed, 25 Mar 2009 13:33:58 +0100
laurent laur...@logiquefloue.org wrote:

  
But your real problem is a stupid original disk layout. Why don;t you decide 
to fix that instead of getting into cute tricks with symlinks?


  
Because I let my server host install it with their default disk layout. 
When I realise it looks pretty un-servish I had already installed http 
server with client website on it.
The simplest for me was to move folders because I did not find any 'how 
to' that say it would be simple de repartition with keeping your data on.



It should be pretty easy to rsync /home to some other (temporary)
place, 'pvcreate /dev/home-whatever' and lvcreate, say, a
separate vol for portage (with it's ever-growing tree/distfiles) and
for /home, leaving plenty of space to play with, should you need it
either on these partitions or to create others.

Well, LVM is just what I mean ;)

  
LVM...hm nice new word to me. And rsync too, looks good. Ok I will have 
a look when I'm safer.

Got that emerge -v world to finish ;)

I read about a tool to color the etc-update difference, can't find it 
again, if you know about it ;)

thx
Laurent.



Re: [gentoo-user] cleaning disfiles

2009-03-26 Thread Neil Bothwick
On Thu, 26 Mar 2009 16:36:41 +0100, laurent wrote:

 I read about a tool to color the etc-update difference, can't find it 
 again, if you know about it ;)

colordiff, it's in portage.


-- 
Neil Bothwick

0 and 1. Now what could be so hard about that?


signature.asc
Description: PGP signature


Re: [gentoo-user] cleaning disfiles

2009-03-25 Thread Dale
Alan McKinnon wrote:
 On Tuesday 24 March 2009 23:37:50 laurent wrote:
   
 Hi,

 I need to clean disfiles or move it to /home/var/ftp/disfiles.

 For first is there a tool to emerge that will manage the distfiles.
 

 eclean - part of app-portage/gentoolkit

   
 If not I was thinking copy to my home folder and symlink
 /var/ftp/distfiles to it.

 Is the second safe with just a symlink or should I change a PATH somewhere?
 

 Change DISTDIR in /etc/make.conf to point to the new location

 But this is not a good idea, as distfiles will be owned by root or portage 
 and 
 it's in your home directory owned by you.

 Rather leave distfiles where it is, and create a symlink in ~ that points to 
 distfiles. I can't imagine how your scheme would benefit you in any way.

   
 I should do both solution.

 thank you
 Laurent
 

   

I think he is running our of disk space and trying to move it to a
partition that has more space.  He didn't say that but I think that is
the issue at hand.

I do suspect that this could cause . . . . issues in the long run. 
Permissions is a good one to mention.

Dale

:-)  :-) 



Re: [gentoo-user] cleaning disfiles

2009-03-25 Thread laurent

Dale a écrit :

Alan McKinnon wrote:
  

On Tuesday 24 March 2009 23:37:50 laurent wrote:
  


Hi,

I need to clean disfiles or move it to /home/var/ftp/disfiles.

For first is there a tool to emerge that will manage the distfiles.

  

eclean - part of app-portage/gentoolkit

  


If not I was thinking copy to my home folder and symlink
/var/ftp/distfiles to it.

Is the second safe with just a symlink or should I change a PATH somewhere?

  

Change DISTDIR in /etc/make.conf to point to the new location

But this is not a good idea, as distfiles will be owned by root or portage and 
it's in your home directory owned by you.


Rather leave distfiles where it is, and create a symlink in ~ that points to 
distfiles. I can't imagine how your scheme would benefit you in any way.


  


I should do both solution.

thank you
Laurent

  
  



I think he is running our of disk space and trying to move it to a
partition that has more space.  He didn't say that but I think that is
the issue at hand.

I do suspect that this could cause . . . . issues in the long run. 
Permissions is a good one to mention.


Dale

:-)  :-) 




  
yes it's exactly that, I did not choose the install partitionning. So I 
moved portage, www and now disfiles from /var to /home/var.
For the other ones I did add a symlink also. Should I do that for 
disfiles? What do you mean by permissions issues ??


Another question about emerge -v world, I go a empty manifest on layman. 
What should I do to fix that ?


Thanks!
Laurent



Re: [gentoo-user] cleaning disfiles

2009-03-25 Thread laurent

Alan McKinnon a écrit :

On Tuesday 24 March 2009 23:37:50 laurent wrote:
  

Hi,

I need to clean disfiles or move it to /home/var/ftp/disfiles.

For first is there a tool to emerge that will manage the distfiles.



eclean - part of app-portage/gentoolkit

  

If not I was thinking copy to my home folder and symlink
/var/ftp/distfiles to it.

Is the second safe with just a symlink or should I change a PATH somewhere?



Change DISTDIR in /etc/make.conf to point to the new location

But this is not a good idea, as distfiles will be owned by root or portage and 
it's in your home directory owned by you.
  


drwxr-xr-x 14 root root  4096 mar 24 20:19 home

looks owned by root.
Rather leave distfiles where it is, and create a symlink in ~ that points to 
distfiles. I can't imagine how your scheme would benefit you in any way.


  

I should do both solution.

thank you
Laurent



  





Re: [gentoo-user] cleaning disfiles

2009-03-25 Thread Neil Bothwick
On Wed, 25 Mar 2009 13:00:15 +0100, laurent wrote:

 yes it's exactly that, I did not choose the install partitionning. So I 
 moved portage, www and now disfiles from /var to /home/var.
 For the other ones I did add a symlink also. Should I do that for 
 disfiles? What do you mean by permissions issues ??

So you're putting it on the /home partition but not in your home
directory? In that case, permissions are not a problem as the directory
will only be used by portage, just set DISTDIR=/home/distfiles in
make.conf, no need to mess around with symlinks.


-- 
Neil Bothwick

Sex is hereditary. If your parents never had it, chances are you wont
either. -


signature.asc
Description: PGP signature


Re: [gentoo-user] cleaning disfiles

2009-03-25 Thread Alan McKinnon
On Wednesday 25 March 2009 14:03:34 laurent wrote:
  But this is not a good idea, as distfiles will be owned by root or
  portage and it's in your home directory owned by you.
   

 drwxr-xr-x 14 root root  4096 mar 24 20:19 home

 looks owned by root.

/home is not your home directory.

Out of the box emerge runs as the portage user, which will not have write 
permission to your home directory unless you modify the ownership/permissions.

But your real problem is a stupid original disk layout. Why don;t you decide 
to fix that instead of getting into cute tricks with symlinks?

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] cleaning disfiles

2009-03-25 Thread laurent

Alan McKinnon a écrit :

On Wednesday 25 March 2009 14:03:34 laurent wrote:
  

But this is not a good idea, as distfiles will be owned by root or
portage and it's in your home directory owned by you.
 
  

drwxr-xr-x 14 root root  4096 mar 24 20:19 home

looks owned by root.



/home is not your home directory.

Out of the box emerge runs as the portage user, which will not have write 
permission to your home directory unless you modify the ownership/permissions.


But your real problem is a stupid original disk layout. Why don;t you decide 
to fix that instead of getting into cute tricks with symlinks?


  
Because I let my server host install it with their default disk layout. 
When I realise it looks pretty un-servish I had already installed http 
server with client website on it.
The simplest for me was to move folders because I did not find any 'how 
to' that say it would be simple de repartition with keeping your data on.


Laurent



Re: [gentoo-user] cleaning disfiles

2009-03-25 Thread Mike Kazantsev
On Wed, 25 Mar 2009 13:00:15 +0100
laurent laur...@logiquefloue.org wrote:

 Another question about emerge -v world, I go a empty manifest on layman. 
 What should I do to fix that ?

cd /usr/local/portage/layman/someoverlay/some/package  \
repoman manifest

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


Re: [gentoo-user] cleaning disfiles

2009-03-25 Thread Mike Kazantsev
On Wed, 25 Mar 2009 13:33:58 +0100
laurent laur...@logiquefloue.org wrote:

  But your real problem is a stupid original disk layout. Why don;t you 
  decide 
  to fix that instead of getting into cute tricks with symlinks?
 
 Because I let my server host install it with their default disk layout. 
 When I realise it looks pretty un-servish I had already installed http 
 server with client website on it.
 The simplest for me was to move folders because I did not find any 'how 
 to' that say it would be simple de repartition with keeping your data on.

It should be pretty easy to rsync /home to some other (temporary)
place, 'pvcreate /dev/home-whatever' and lvcreate, say, a
separate vol for portage (with it's ever-growing tree/distfiles) and
for /home, leaving plenty of space to play with, should you need it
either on these partitions or to create others.

Well, LVM is just what I mean ;)

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


[gentoo-user] cleaning disfiles

2009-03-24 Thread laurent

Hi,

I need to clean disfiles or move it to /home/var/ftp/disfiles.

For first is there a tool to emerge that will manage the distfiles.

If not I was thinking copy to my home folder and symlink 
/var/ftp/distfiles to it.


Is the second safe with just a symlink or should I change a PATH somewhere?

I should do both solution.

thank you
Laurent



Re: [gentoo-user] cleaning disfiles

2009-03-24 Thread Dale
laurent wrote:
 Hi,

 I need to clean disfiles or move it to /home/var/ftp/disfiles.

 For first is there a tool to emerge that will manage the distfiles.

 If not I was thinking copy to my home folder and symlink
 /var/ftp/distfiles to it.

 Is the second safe with just a symlink or should I change a PATH
 somewhere?

 I should do both solution.

 thank you
 Laurent




If you need to clean out unneeded tarballs in distfiles, you can use
eclean.  It's part of gentoolkit.  eclean-dist is the command you are
looking for.  eclean-dist -h for more info.

If you want to move the distfiles directory, you can change the path in
make.conf and tell it where the new location is.  You will have to copy
the files from the old location to the new location tho.

Hope that helps.

Dale

:-)  :-) 



Re: [gentoo-user] cleaning disfiles

2009-03-24 Thread laurent

Dale a écrit :

laurent wrote:
  

Hi,

I need to clean disfiles or move it to /home/var/ftp/disfiles.

For first is there a tool to emerge that will manage the distfiles.

If not I was thinking copy to my home folder and symlink
/var/ftp/distfiles to it.

Is the second safe with just a symlink or should I change a PATH
somewhere?

I should do both solution.

thank you
Laurent






If you need to clean out unneeded tarballs in distfiles, you can use
eclean.  It's part of gentoolkit.  eclean-dist is the command you are
looking for.  eclean-dist -h for more info.

If you want to move the distfiles directory, you can change the path in
make.conf and tell it where the new location is.  You will have to copy
the files from the old location to the new location tho.

Hope that helps.

Dale

:-)  :-) 




  

Yes it help, got 50 M clean with eclean.

I looked in make.conf but did not see any 'DISTFILES_PATH'. What should 
I add?

my make.conf:

# These settings were set by the catalyst build script that 
automatically built$

# Please consult /etc/make.conf.example for a more detailed example
CFLAGS=-O2 -pipe -march=k8
CHOST=x86_64-pc-linux-gnu
CXXFLAGS=${CFLAGS}
MAKEOPTS=-j2
GENTOO_MIRRORS=http://mirror.ovh.net/gentoo-distfiles/ 
ftp://mirror.ovh.net/ge$
USE=-X mmx multilib netboot sse sse2 -gtk -sdl apache2 mysql pam ssl 
sasl xml $

FEATURES=-sandbox collision-protect ccache parallel-fetch
PORTDIR_OVERLAY=/usr/local/portage

source /home/portage/local/layman/make.conf
PORTAGE_TMPDIR=/home/portage

Thanks ;)
Laurent



Re: [gentoo-user] cleaning disfiles

2009-03-24 Thread darren kirby
quoth the laurent:
I looked in make.conf but did not see any 'DISTFILES_PATH'. What should 
I add?
 Thanks ;)
 Laurent

DISTDIR=/where/you/want/them

see 'man make.conf' for explanation and more...

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972