Re: Performing installed ports upgrade / leaving some software intact

2009-01-17 Thread Frank Shute
On Thu, Jan 15, 2009 at 07:17:27AM +0100, Zbigniew Szalbot wrote:

 Hello,
 
  1/ backing up the hacked [mailman] files and restoring them later (but I
  will
  overwrite the newer files with older ones perhaps breaking something).
  2/ making them read only (but the end result will be the same and
  upgrading as root I will overwrite them anyway).
 
  Keep in mind mailman is all python.  There really is nothing to recompile
  after a system upgrade.  (Unless you are upgrading python which you aren't).
 
 I am not so sure. According to
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
 
 All third party software will now need to be rebuilt and
 re-installed. This is required as installed software may depend on
 libraries which have been removed during the upgrade process. The
 ports-mgmt/portupgrade command may be used to automate this process.
 The following commands may be used to begin this process:

This is prefaced by:

Note: Depending on whether any libraries version numbers got bumped,
there may only be two install phases instead of three.

Rebuilding all the installed ports being the third phase.

Since you're just going from 7.0 to 7.1 this shouldn't be the case
unless specifically mentioned in /usr/src/UPDATING

snip

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
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: Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Steve Bertrand
Zbigniew Szalbot wrote:
 Dear all,
 
 I am now full into planning the 7.0-RELEASE to 7.1-RELEASE upgrade. I
 know that at the end of the day it will also mean upgrading all ports
 (portupgrade -af). I have one port - mailman - which I have customized
 a lot and do not really want to upgrade it as it will most likely mean
 I will have to hack a few files again.
 
 What options do I have so that I do not break the setup?
 
 I am thinking of:
 
 1/ backing up the hacked files and restoring them later (but I will
 overwrite the newer files with older ones perhaps breaking something).
 2/ making them read only (but the end result will be the same and
 upgrading as root I will overwrite them anyway).
 
 And that would be it. My wisdom ends here. Is there any option to
 survive the ports upgrade? :)
 
 If not, I guess I will just have to hack Mailman files again after the
 upgrade...

Can you verify that the original copy of the files you've hacked have
indeed been modified in the upgraded version?

Perhaps you could download the source for both the new version in ports,
and the original version, and find out exactly what, if any changes have
been made to your modified files.

Steve
___
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: Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Roland Smith
On Wed, Jan 14, 2009 at 07:03:02PM +0100, Zbigniew Szalbot wrote:
 Dear all,
 
 I am now full into planning the 7.0-RELEASE to 7.1-RELEASE upgrade. I
 know that at the end of the day it will also mean upgrading all ports
 (portupgrade -af). 

Not necessarily. Upgrading all ports is only mandatory after a major
version update, e.g. from 6.x to 7.x because of changed shared library
versions. A point release should not affect shared library versions.

Personally, I like to keep the ports on my desktop updated every other
week or so, depending on if I see something interesting on freshports...

 I have one port - mailman - which I have customized
 a lot and do not really want to upgrade it as it will most likely mean
 I will have to hack a few files again.
 
 What options do I have so that I do not break the setup?

 I am thinking of:
 
 1/ backing up the hacked files and restoring them later (but I will
 overwrite the newer files with older ones perhaps breaking something).

You should merge any differences by hand instead of overwriting
them. 'diff -u' is your friend there.

 2/ making them read only (but the end result will be the same and
 upgrading as root I will overwrite them anyway).

'chflags schg,sunlnk files' (as root) will do the trick. Even root
cannot overwrite these without removing the flags.
 
 And that would be it. My wisdom ends here. Is there any option to
 survive the ports upgrade? :)

Touch /var/db/pkg/mailman/+IGNOREME. This should make both portmaster
and portupgrade leave this port alone.

 If not, I guess I will just have to hack Mailman files again after the
 upgrade...

Or see if you can get your changes comitted upstream. Maybe as OPTIONS? 

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp6T2lWu2KuF.pgp
Description: PGP signature


Re: Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Jeffrey Goldberg

On Jan 14, 2009, at 12:03 PM, Zbigniew Szalbot wrote:

1/ backing up the hacked [mailman] files and restoring them later  
(but I will

overwrite the newer files with older ones perhaps breaking something).
2/ making them read only (but the end result will be the same and
upgrading as root I will overwrite them anyway).


Keep in mind mailman is all python.  There really is nothing to  
recompile after a system upgrade.  (Unless you are upgrading python  
which you aren't).


Cheers,

-j
___
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: Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Zbigniew Szalbot
Hello,

 1/ backing up the hacked [mailman] files and restoring them later (but I
 will
 overwrite the newer files with older ones perhaps breaking something).
 2/ making them read only (but the end result will be the same and
 upgrading as root I will overwrite them anyway).

 Keep in mind mailman is all python.  There really is nothing to recompile
 after a system upgrade.  (Unless you are upgrading python which you aren't).

I am not so sure. According to
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

All third party software will now need to be rebuilt and
re-installed. This is required as installed software may depend on
libraries which have been removed during the upgrade process. The
ports-mgmt/portupgrade command may be used to automate this process.
The following commands may be used to begin this process:

So my thinking is that by issuing portupgrade -af both python and
mailman will get reinstalled. However, the option suggested by Roland
(thank you!) of touching /var/db/pkg/mailman/+IGNOREME seems very
interesting. I must read more about it.

Thank you all!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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