Re: Moving from one port to another

2010-08-29 Thread Chip Camden
Quoth Eitan Adler on Sunday, 29 August 2010:
 On Sat, Aug 28, 2010 at 10:40 PM, Kurt Buff kurt.b...@gmail.com wrote:
  Portupgrade won't, AFAIK, cross branches, though I could be wrong about 
  that.
 
  There's a 3.0 branch in /usr/ports/www/squid30 and a 3.1 branch in
  /usr/ports/www/squid31, and I want to make the switch to pick up a
  feature.
 
  Kurt
 
 portmaster -o www/squid31 www/squid30
 
 
 -- 
 Eitan Adler

So, if I understand correctly, I could use this to upgrade from python26
to python27?  Or perl 5.8.9 to perl 5.12?  and everything that depended
on the former will be upgraded to the latter?  Can I say swet in
advance?  Is there a way to do that with portupgrade, or is this one of
those features that makes portmaster a better mousetrap?

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpz9OVWY9Cyh.pgp
Description: PGP signature


Re: Moving from one port to another

2010-08-29 Thread Warren Block

On Sun, 29 Aug 2010, Chip Camden wrote:

Quoth Eitan Adler on Sunday, 29 August 2010:

On Sat, Aug 28, 2010 at 10:40 PM, Kurt Buff kurt.b...@gmail.com wrote:

Portupgrade won't, AFAIK, cross branches, though I could be wrong about that.

There's a 3.0 branch in /usr/ports/www/squid30 and a 3.1 branch in
/usr/ports/www/squid31, and I want to make the switch to pick up a
feature.


portmaster -o www/squid31 www/squid30


So, if I understand correctly, I could use this to upgrade from python26
to python27?  Or perl 5.8.9 to perl 5.12?  and everything that depended
on the former will be upgraded to the latter?  Can I say swet in
advance?  Is there a way to do that with portupgrade, or is this one of
those features that makes portmaster a better mousetrap?


portupgrade has had it for a long time:

man portupgrade | less '+/-o ORIGIN'
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Moving from one port to another

2010-08-29 Thread Matthew Seaman
On 29/08/2010 20:20:51, Warren Block wrote:
 On Sun, 29 Aug 2010, Chip Camden wrote:
 Quoth Eitan Adler on Sunday, 29 August 2010:
 On Sat, Aug 28, 2010 at 10:40 PM, Kurt Buff kurt.b...@gmail.com wrote:
 Portupgrade won't, AFAIK, cross branches, though I could be wrong
 about that.

 There's a 3.0 branch in /usr/ports/www/squid30 and a 3.1 branch in
 /usr/ports/www/squid31, and I want to make the switch to pick up a
 feature.

 portmaster -o www/squid31 www/squid30

 So, if I understand correctly, I could use this to upgrade from python26
 to python27?  Or perl 5.8.9 to perl 5.12?  and everything that depended
 on the former will be upgraded to the latter?  Can I say swet in
 advance?  Is there a way to do that with portupgrade, or is this one of
 those features that makes portmaster a better mousetrap?
 
 portupgrade has had it for a long time:
 
 man portupgrade | less '+/-o ORIGIN'

Yes.  portmaster has pretty much the same '-o' flag.

However, it's not quite so swet (sic) as all that -- all the '-o'
flag does, in either portmaster or portupgrade is transfer the
dependencies to the new package.  In very many cases you would still
have to reinstall everything that depends on the replaced package.

Sometimes that's because shlibs have different versions -- eg. if you
upgrade from mysql-5.0.x to mysql-5.1.x[*], then the ABI version changes
and you need to reinstall everything that links against libmysql.

With perl, the reason is even simpler -- the perl version number is
embedded in the library search path, so until you reinstall, even
pure-perl modules are going to be inaccessible.  XS modules need
relinking in any case.

Not entirely sure of the details with python, but certainly any module
which is available as dynamically loadable object code will need relinking.

Generally, the advice is to forcibly reinstall everything that depends
on the package you replaced:

portmaster -f -R -r example/port
portupgrade -f -r example/port

Cheers,

Matthew

[*] Which is a slightly trickier exercise than most, given you've got to
update both mysql-client and mysql-server ports using the '-o' thing.
Possibly even the mysql-scripts port if installed.  And then you've got
to deal with all the dependencies too.

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Moving from one port to another

2010-08-29 Thread Chip Camden
Quoth Warren Block on Sunday, 29 August 2010:
 On Sun, 29 Aug 2010, Chip Camden wrote:
 Quoth Eitan Adler on Sunday, 29 August 2010:
 On Sat, Aug 28, 2010 at 10:40 PM, Kurt Buff kurt.b...@gmail.com wrote:
 Portupgrade won't, AFAIK, cross branches, though I could be wrong about 
 that.
 
 There's a 3.0 branch in /usr/ports/www/squid30 and a 3.1 branch in
 /usr/ports/www/squid31, and I want to make the switch to pick up a
 feature.
 
 portmaster -o www/squid31 www/squid30
 
 So, if I understand correctly, I could use this to upgrade from python26
 to python27?  Or perl 5.8.9 to perl 5.12?  and everything that depended
 on the former will be upgraded to the latter?  Can I say swet in
 advance?  Is there a way to do that with portupgrade, or is this one of
 those features that makes portmaster a better mousetrap?
 
 portupgrade has had it for a long time:
 
 man portupgrade | less '+/-o ORIGIN'
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

OK, I just upgrade to python27 using this approach, and everything seemed
to work OK.  The only oddity is that now two of my ports are ahead of the
curve:

py27-gdbm-2.7 succeeds port (port has 2.6.5) 
py27-sqlite3-2.7_1succeeds port (port has 2.6.5_1) 

I'm not going to worry about that unless someone or something tells me I
should.

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpSPIUgtp2lj.pgp
Description: PGP signature


Moving from one port to another

2010-08-28 Thread Kurt Buff
Right now I've got an installation of squid 3.0.24, and want to move
to the 3.1 branch.

I could just do a 'make deinstall' on the current version, then do
'make install' in the 3.1 port, but I'm wondering if there's a smarter
way to do this.

Kurt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Moving from one port to another

2010-08-28 Thread Ryan Coleman


portupgrade, perhaps?


On Aug 28, 2010, at 3:56 PM, Kurt Buff wrote:

 Right now I've got an installation of squid 3.0.24, and want to move
 to the 3.1 branch.
 
 I could just do a 'make deinstall' on the current version, then do
 'make install' in the 3.1 port, but I'm wondering if there's a smarter
 way to do this.
 
 Kurt
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Moving from one port to another

2010-08-28 Thread RW
On Sat, 28 Aug 2010 13:56:09 -0700
Kurt Buff kurt.b...@gmail.com wrote:

 Right now I've got an installation of squid 3.0.24, and want to move
 to the 3.1 branch.
 
 I could just do a 'make deinstall' on the current version, then do
 'make install' in the 3.1 port, but I'm wondering if there's a smarter
 way to do this.

Not much smarter. You might want to use portupgrade or portmaster to
make any ports that depend on squid30 depend on the new port - it
doesn't really matter much in the case of squid.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Moving from one port to another

2010-08-28 Thread Eitan Adler
On Sat, Aug 28, 2010 at 4:56 PM, Kurt Buff kurt.b...@gmail.com wrote:
 Right now I've got an installation of squid 3.0.24, and want to move
 to the 3.1 branch.

 I could just do a 'make deinstall' on the current version, then do
 'make install' in the 3.1 port, but I'm wondering if there's a smarter
 way to do this.


If you use portmaster try
portmaster [Common Flags] -o new port dir in /usr/ports installed port

-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Moving from one port to another

2010-08-28 Thread Kurt Buff
Portupgrade won't, AFAIK, cross branches, though I could be wrong about that.

There's a 3.0 branch in /usr/ports/www/squid30 and a 3.1 branch in
/usr/ports/www/squid31, and I want to make the switch to pick up a
feature.

Kurt

On Sat, Aug 28, 2010 at 14:06, Ryan Coleman ryan.cole...@cwis.biz wrote:


 portupgrade, perhaps?


 On Aug 28, 2010, at 3:56 PM, Kurt Buff wrote:

 Right now I've got an installation of squid 3.0.24, and want to move
 to the 3.1 branch.

 I could just do a 'make deinstall' on the current version, then do
 'make install' in the 3.1 port, but I'm wondering if there's a smarter
 way to do this.

 Kurt
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Moving from one port to another

2010-08-28 Thread Kurt Buff
On Sat, Aug 28, 2010 at 14:33, RW rwmailli...@googlemail.com wrote:
 On Sat, 28 Aug 2010 13:56:09 -0700
 Kurt Buff kurt.b...@gmail.com wrote:

 Right now I've got an installation of squid 3.0.24, and want to move
 to the 3.1 branch.

 I could just do a 'make deinstall' on the current version, then do
 'make install' in the 3.1 port, but I'm wondering if there's a smarter
 way to do this.

 Not much smarter. You might want to use portupgrade or portmaster to
 make any ports that depend on squid30 depend on the new port - it
 doesn't really matter much in the case of squid.

Kinda what I thought, but worth asking.

Thanks,

Kurt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Moving from one port to another

2010-08-28 Thread Eitan Adler
On Sat, Aug 28, 2010 at 10:40 PM, Kurt Buff kurt.b...@gmail.com wrote:
 Portupgrade won't, AFAIK, cross branches, though I could be wrong about that.

 There's a 3.0 branch in /usr/ports/www/squid30 and a 3.1 branch in
 /usr/ports/www/squid31, and I want to make the switch to pick up a
 feature.

 Kurt

portmaster -o www/squid31 www/squid30


-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Moving from one port to another

2010-08-28 Thread Kurt Buff
On Sat, Aug 28, 2010 at 21:51, Eitan Adler li...@eitanadler.com wrote:
 On Sat, Aug 28, 2010 at 10:40 PM, Kurt Buff kurt.b...@gmail.com wrote:
 Portupgrade won't, AFAIK, cross branches, though I could be wrong about that.

 There's a 3.0 branch in /usr/ports/www/squid30 and a 3.1 branch in
 /usr/ports/www/squid31, and I want to make the switch to pick up a
 feature.

 Kurt

 portmaster -o www/squid31 www/squid30

Well, that's certainly worth investigating!

I haven't used portmaster, so that's definitely new to me.

Thanks,

Kurt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org