Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2009 20:18:37 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Zbigniew Szalbot <zszalbot@gmail.com>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: Performing installed ports upgrade / leaving some software intact
Message-ID:  <20090114191837.GA99290@slackbox.xs4all.nl>
In-Reply-To: <94136a2c0901141003hf976918vee0e5c6c9262000a@mail.gmail.com>
References:  <94136a2c0901141003hf976918vee0e5c6c9262000a@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 14, 2009 at 07:03:02PM +0100, Zbigniew Szalbot wrote:
> Dear all,
>=20
> 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).=20

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.
>=20
> What options do I have so that I do not break the setup?
>
> I am thinking of:
>=20
> 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.
=20
> 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?=20

Roland
--=20
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)

--UlVJffcvxoiEqYs2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkluOo0ACgkQEnfvsMMhpyXSWgCbBderKQH3o7qCVg0N5l/ueXJQ
QZwAn10NCUFAsetIzx3KhJYq4AIM13lc
=L+RB
-----END PGP SIGNATURE-----

--UlVJffcvxoiEqYs2--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20090114191837.GA99290>