Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jul 2008 15:55:58 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        David Southwell <david@vizion2000.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Ports and system upgrades
Message-ID:  <487F5D7E.5060202@infracaninophile.co.uk>
In-Reply-To: <200807170755.54269.david@vizion2000.net>
References:  <200807170755.54269.david@vizion2000.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig1462DDA8B79BC1AAE2C15099
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

David Southwell wrote:
> I have been unable to find instructions in the manual about  recompilin=
g ports=20
> as part of a system upgrade process. There seems to be no reference to =
it.=20
> The upgrade from 6.1 to 6.3 seemed to work OK once I sorted out a probl=
em=20
> with perl. However 6.3 to 7.0 seems to produce more difficulties than I=
=20
> bargained for!!!
>=20
> How can I best reconfigure and recompile all th installed ports?
>=20
> As you can see from below:
> [root@dns1 ~]# portupgrade -a
> Fatal error 'Thread is not system scope.
> ' at line 319 in file /usr/src/lib/libpthread/thread/thr_sig.c (errno =3D=
 2)
> Segmentation fault: 11 (core dumped)
>=20
> I have definitely omitted a vital step

There are two approaches:

1) Back up all your data and config files. List all your installed ports
to a safe location before updating.  Delete all installed ports.  (either=
 just before or just after updating the base system: makes little=20
difference.)   Reinstall them all from scratch after doing the update.

2) Manually delete and then reinstall portupgrade and its dependencies
( ruby, ruby18-bdbXX, dbXX -- possibly openssl if you have it installed
from ports )  Once you've deleted the 6.x packages, you should be able
to just:

   # cd /usr/ports/ports-mgmt/portupgrade
   # make install clean

Then use the newly build portupgrade to force upgrade everything.  This
takes a long time and always seems to fall over in the middle, so a good
trick is to say:

   # portupgrade -fa -x ">=3D2008-7-17"

meaning "upgrade everything except packages installed after the date
of the upgrade."  If it flails in the middle you can fix the problem
and rerun that command without ending up rebuilding everything all
over again.

Option (1) will probably give better results, but it is a log more
intrusive.  (2) works OK, eventually, if you keep plugging at it.

	Cheers,

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


--------------enig1462DDA8B79BC1AAE2C15099
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkh/XYQACgkQ8Mjk52CukIw29gCfZIrkXxVsuRY30T8WfPycq/iN
ixcAn2An7/CFyvEqP5PRAsA2YgK2R/P0
=/UGY
-----END PGP SIGNATURE-----

--------------enig1462DDA8B79BC1AAE2C15099--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?487F5D7E.5060202>