Re: [gentoo-user] Emerge and binary packages

2018-07-02 Thread Daniel Frey
On 07/02/18 04:49, Vadim A. Misbakh-Soloviov wrote:
> I think autofs will fit that type of solution
> And why just don't put if in fstab and forget about it?
> 
> 
> 

I had it in fstab but the "main" frontend is not always on and it can
hang NFS mounts during startup, even with the 'bg' option. That was
annoying so I was looking for a different solution.

Mounting on access is fine (they're frontends, I only update them every
few months as there's not many packages on them.)

Dan



Re: [gentoo-user] Emerge and binary packages

2018-07-02 Thread Vadim A. Misbakh-Soloviov
I think autofs will fit that type of solution
And why just don't put if in fstab and forget about it?





Re: [gentoo-user] Emerge and binary packages

2018-07-01 Thread Daniel Frey
On 07/01/18 03:56, Marc Joliet wrote:
> Am Samstag, 30. Juni 2018, 19:50:47 CEST schrieb Daniel Frey:
>> Hi all,
>>
>> Some background: I run mythtv with a single backend and five frontends.
>>
>> For many, many years I've been using binpkg to help ease the compile
>> pain on my Intel NUC Celeron-based frontends. I use distcc on one to
>> compile all my packages and export /usr/portage/packages via nfs.
>>
>> I am wondering if it's possible to get emerge to mount
>> /usr/portage/packages before actually emerging anything. I've been
>> mounting that directory manually but once in a while I forget to.
>>
>> Dan
> 
> I don't know much about NFS, but... what about autofs?  That would mount the 
> FS on first access, and AFAIK can unmount it after a period of inactivity.
> 
> HTH
> 

Thanks all for the replies.

I was thinking about a wrapper too but figured there must be a more
elegant way. I think autofs will fit that type of solution; I'm going to
look into that.

Dan



Re: [gentoo-user] Emerge and binary packages

2018-07-01 Thread Marc Joliet
Am Samstag, 30. Juni 2018, 19:50:47 CEST schrieb Daniel Frey:
> Hi all,
> 
> Some background: I run mythtv with a single backend and five frontends.
> 
> For many, many years I've been using binpkg to help ease the compile
> pain on my Intel NUC Celeron-based frontends. I use distcc on one to
> compile all my packages and export /usr/portage/packages via nfs.
> 
> I am wondering if it's possible to get emerge to mount
> /usr/portage/packages before actually emerging anything. I've been
> mounting that directory manually but once in a while I forget to.
> 
> Dan

I don't know much about NFS, but... what about autofs?  That would mount the 
FS on first access, and AFAIK can unmount it after a period of inactivity.

HTH
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Emerge and binary packages

2018-06-30 Thread Paul Colquhoun
On Sunday, 1 July 2018 3:50:47 AM AEST Daniel Frey wrote:
> Hi all,
> 
> Some background: I run mythtv with a single backend and five frontends.
> 
> For many, many years I've been using binpkg to help ease the compile
> pain on my Intel NUC Celeron-based frontends. I use distcc on one to
> compile all my packages and export /usr/portage/packages via nfs.
> 
> I am wondering if it's possible to get emerge to mount
> /usr/portage/packages before actually emerging anything. I've been
> mounting that directory manually but once in a while I forget to.
> 
> Dan


Maybe a wrapper script or an alias like this might be a simple solution.

  alias  emerge="mount /usr/portage/packages ; /usr/bin/emerge "

Put that in your .bashrc file and it will be ready for you every time you 
login.

A wrapper script in your ~/bin directory might be better, as it would let you 
unmount the directory after emerge has finished. You may need to add that to 
your execution $PATH variable in .bashrc

~/bin/emerge
  #!/bin/bash
  mount /usr/portage/packages
  emerge $*
  umount /usr/portage/packages


-- 
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/
  Asking for technical help in newsgroups?  Read this first:
 http://catb.org/~esr/faqs/smart-questions.html#intro






Re: [gentoo-user] Emerge and binary packages

2018-06-30 Thread Neil Bothwick
On Sat, 30 Jun 2018 10:50:47 -0700, Daniel Frey wrote:

> For many, many years I've been using binpkg to help ease the compile
> pain on my Intel NUC Celeron-based frontends. I use distcc on one to
> compile all my packages and export /usr/portage/packages via nfs.
> 
> I am wondering if it's possible to get emerge to mount
> /usr/portage/packages before actually emerging anything. I've been
> mounting that directory manually but once in a while I forget
> to.

Something like this in /etc/portage/env/media-tv/mythtv

pre_pkg_setup {
mount whatever wherever
}

may do what you want. I haven't tested it but a similar approach works
with post install functions for me.


-- 
Neil Bothwick

If you use envelopes, why not encryption ?


pgp83B3cOKU2r.pgp
Description: OpenPGP digital signature


[gentoo-user] Emerge and binary packages

2018-06-30 Thread Daniel Frey
Hi all,

Some background: I run mythtv with a single backend and five frontends.

For many, many years I've been using binpkg to help ease the compile
pain on my Intel NUC Celeron-based frontends. I use distcc on one to
compile all my packages and export /usr/portage/packages via nfs.

I am wondering if it's possible to get emerge to mount
/usr/portage/packages before actually emerging anything. I've been
mounting that directory manually but once in a while I forget to.

Dan