Re: [mythtv-users] stable and bleeding edge together peacefully?

2005-11-28 Thread Joseph A. Caputo
On Thursday 24 November 2005 7:39, David Raine wrote:
 I just got the 0.18.1 working (from .deb) on a fresh debian sid 
 install 
 (after giving up on KnoppMyth R22) and I am wondering whether it is
 possible to compile and install the SVN head so it would be able to
 coexist on the same setup where I got the 0.18.1 stable working?
 
 Note that puting SVN to /usr/local (while the stable lays in /usr) 
 and 
 renaming the database (I don't mind keeping two databases) might not 
 be 
 enough so I decided to ask if someone runs such setup successfully.
 
 I have both on my system - 0.18.1 for the g/f (stable, no change to 
 behaviour) and latest SVN for when she's out and I can try out the 
 bleeding  
 edge.
 
 I installed one to prefix=/usr/local/mythSVN and the other to 
 prefix=/usr/local/mythSTABLE. I then have a script that removes and 
 recreates symlinks to /usr/local/myth as required - this way I don't 
 have to  
 change the PATH for the mythytv user. I do have to re-run ldconfig 
 after the  
 symlinks are set up to make sure the libraries are referenced OK.

This is *exactly* what GNU stow is for.

http://www.gnu.org/software/stow/

-JAC
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] stable and bleeding edge together peacefully?

2005-11-28 Thread Robin Gilks

 On Thursday 24 November 2005 7:39, David Raine wrote:
 I just got the 0.18.1 working (from .deb) on a fresh debian sid
 install
 (after giving up on KnoppMyth R22) and I am wondering whether it is
 possible to compile and install the SVN head so it would be able to
 coexist on the same setup where I got the 0.18.1 stable working?
 
 Note that puting SVN to /usr/local (while the stable lays in /usr)
 and
 renaming the database (I don't mind keeping two databases) might not
 be
 enough so I decided to ask if someone runs such setup successfully.

 I have both on my system - 0.18.1 for the g/f (stable, no change to
 behaviour) and latest SVN for when she's out and I can try out the
 bleeding
 edge.

 I installed one to prefix=/usr/local/mythSVN and the other to
 prefix=/usr/local/mythSTABLE. I then have a script that removes and
 recreates symlinks to /usr/local/myth as required - this way I don't
 have to
 change the PATH for the mythytv user. I do have to re-run ldconfig
 after the
 symlinks are set up to make sure the libraries are referenced OK.

 This is *exactly* what GNU stow is for.

 http://www.gnu.org/software/stow/


What about the MySQL database - from 0.18.1 to SVN head there are
incompatabilities aren't there?

Do you rename the relevant directory containing the database (mythconverg)
and restart the mysql server or what?


-- 
Robin Gilks



___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] stable and bleeding edge together peacefully?

2005-11-28 Thread Joseph A. Caputo

Robin Gilks wrote:


On Thursday 24 November 2005 7:39, David Raine wrote:
   


I just got the 0.18.1 working (from .deb) on a fresh debian sid
install
(after giving up on KnoppMyth R22) and I am wondering whether it is
possible to compile and install the SVN head so it would be able to
coexist on the same setup where I got the 0.18.1 stable working?

Note that puting SVN to /usr/local (while the stable lays in /usr)
and
renaming the database (I don't mind keeping two databases) might not
be
enough so I decided to ask if someone runs such setup successfully.
   


I have both on my system - 0.18.1 for the g/f (stable, no change to
behaviour) and latest SVN for when she's out and I can try out the
bleeding
edge.

I installed one to prefix=/usr/local/mythSVN and the other to
prefix=/usr/local/mythSTABLE. I then have a script that removes and
recreates symlinks to /usr/local/myth as required - this way I don't
have to
change the PATH for the mythytv user. I do have to re-run ldconfig
after the
symlinks are set up to make sure the libraries are referenced OK.
 


This is *exactly* what GNU stow is for.

http://www.gnu.org/software/stow/

   



What about the MySQL database - from 0.18.1 to SVN head there are
incompatabilities aren't there?

Do you rename the relevant directory containing the database (mythconverg)
and restart the mysql server or what?
 



Well, I personally don't run concurrent versions that have incompatible 
database schemas.  Presumably you'd have to fuss about with dump/restore.


-JAC
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


RE: [mythtv-users] stable and bleeding edge together peacefully?

2005-11-24 Thread David Raine

I just got the 0.18.1 working (from .deb) on a fresh debian sid install
(after giving up on KnoppMyth R22) and I am wondering whether it is
possible to compile and install the SVN head so it would be able to
coexist on the same setup where I got the 0.18.1 stable working?

Note that puting SVN to /usr/local (while the stable lays in /usr) and
renaming the database (I don't mind keeping two databases) might not be
enough so I decided to ask if someone runs such setup successfully.


I have both on my system - 0.18.1 for the g/f (stable, no change to 
behaviour) and latest SVN for when she's out and I can try out the bleeding 
edge.


I installed one to prefix=/usr/local/mythSVN and the other to 
prefix=/usr/local/mythSTABLE. I then have a script that removes and 
recreates symlinks to /usr/local/myth as required - this way I don't have to 
change the PATH for the mythytv user. I do have to re-run ldconfig after the 
symlinks are set up to make sure the libraries are referenced OK.


Yes, two databases are required.

Regards
David


___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


RE: [mythtv-users] stable and bleeding edge together peacefully?

2005-11-24 Thread Petr Stehlik
David Raine píše v Čt 24. 11. 2005 v 12:39 +:
 possible to compile and install the SVN head so it would be able to
 coexist on the same setup where I got the 0.18.1 stable working?

 I installed one to prefix=/usr/local/mythSVN and the other to 
 prefix=/usr/local/mythSTABLE. I then have a script that removes and 
 recreates symlinks to /usr/local/myth as required - this way I don't have to 
 change the PATH for the mythytv user

so you added /usr/local/myth/bin to your $PATH?

 I do have to re-run ldconfig after the 
 symlinks are set up to make sure the libraries are referenced OK.

What if you had two user accounts: stable and svn and their $PATH
pointed to /usr/local/mythSTABLE/bin (mythSVN respectively) directly?
That would save you the ldconfig, I guess.

Pity I got the 0.18.1 installed to /usr/bin. I cannot unsymlink that
path :-) Now I would have to rely on the precedence of /usr/local/bin if
PATH=/usr/local/bin:$PATH. However, if myth keeps the same names for all
binaries this *could* work. What do you think?

Petr


___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


RE: [mythtv-users] stable and bleeding edge together peacefully?

2005-11-24 Thread David Raine

 possible to compile and install the SVN head so it would be able to
 coexist on the same setup where I got the 0.18.1 stable working?

 I installed one to prefix=/usr/local/mythSVN and the other to
 prefix=/usr/local/mythSTABLE. I then have a script that removes and
 recreates symlinks to /usr/local/myth as required - this way I don't 
have to

 change the PATH for the mythytv user

so you added /usr/local/myth/bin to your $PATH?


yes.


 I do have to re-run ldconfig after the
 symlinks are set up to make sure the libraries are referenced OK.

What if you had two user accounts: stable and svn and their $PATH
pointed to /usr/local/mythSTABLE/bin (mythSVN respectively) directly?
That would save you the ldconfig, I guess.


But then, I'd have to make sure that the gdm startup and backend startup 
stuff was using the same PATH, for me it was easier to build 0.18.1 and 
latest SVN and then, using the symlinks, I was guaranteed that I was using 
the latest libs. I also had all sorts of problems when the shared loader 
could see both libraries. Now, I just run a script mythswitch SVN|STABLE 
and all gets reset.



Pity I got the 0.18.1 installed to /usr/bin. I cannot unsymlink that
path :-) Now I would have to rely on the precedence of /usr/local/bin if
PATH=/usr/local/bin:$PATH. However, if myth keeps the same names for all
binaries this *could* work. What do you think?


Build 0.18 from source and install in /usr/local/mythX - once you have 
everything working, remove the relevant files from /usr/bin, /usr/lib, etc. 
- ie, do a manual unistall.  You will find these files in 
/usr/local/mythX/bin, lib. You can rely on PATH precedence for the binaries 
but not for the shared libs.



___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


RE: [mythtv-users] stable and bleeding edge together peacefully?

2005-11-24 Thread Petr Stehlik
David Raine píše v Čt 24. 11. 2005 v 13:42 +:
 But then, I'd have to make sure that the gdm startup and backend startup 
 stuff was using the same PATH, for me it was easier to build 0.18.1 and 
 latest SVN and then, using the symlinks, I was guaranteed that I was using 
 the latest libs.

True, the libs!

 I also had all sorts of problems when the shared loader 
 could see both libraries. 

I realized that changing $PATH didn't help for /etc/ld.so.conf... As
well as I can't hide myth libs from /usr/lib. Uninstalling the packages
is the only choice.

 Build 0.18 from source and install in /usr/local/mythX - once you have 
 everything working, remove the relevant files from /usr/bin, /usr/lib, etc. 
 - ie, do a manual unistall.

apt-get remove mythtv will do.

 You can rely on PATH precedence for the binaries but not for the shared libs.

Yes.

Thanks.

Petr


___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users