FreeBSD Ports

FreeBSD Porter’s Handbook

Makefile Options

Updating Ports Tree

# portsnap update
# portsnap fetch extract

ports.tar.gz

FreeBSD 6.4

# python -V
Python 2.4.4

# perl -v
This is perl, v5.10.0 built for amd64-freebsd

# uname -a
FreeBSD te-clan.ch 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Tue Jan 23 11:58:30 CET 2007

Upgrading Perl 5.10 -> 5.18

# pkg_info | grep -i perl-5
perl-5.10.0_1       Practical Extraction and Report Language

# portupgrade perl-5.10.0_1
** Port deleted on 2013-02-04: lang/perl5.10
	Has expired: no longer under development, use lang/perl5.16 or lang/perl5.14
** Listing the failed packages (-:ignored / *:skipped / !:failed)
	- lang/perl5.10 (port deleted)

# portupgrade -fo lang/perl5.18 perl-5.10.0_1
--->  Upgrading 'perl-5.10.0_1' to 'perl-5.18.1_1' (lang/perl5.18)
--->  Building '/usr/ports/lang/perl5.18' with make flags: -DDISABLE_CONFLICTS
===>  Cleaning for perl-5.18.1_1
===>  License ART10 GPLv1 accepted by the user
=> perl-5.18.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/perl.
=> Attempting to fetch ftp://ftp.cpan.org/pub/CPAN/modules/by-module/../../src/perl-5.18.1.tar.bz2
perl-5.18.1.tar.bz2                            47% of   13 MB  291 kBps 00m25s

portupgrade -o does not work when moving from a MOVED/deleted port

Remove obsoleted Package

Re-creating Port Database => (does NOT help!)

]# portupgrade php5*
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 410 packages found (-0 +10) .......... done]
[missing key: virtual_categories] [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 0 port entries found  ..... done]
missing key: virtual_categories: Cannot read the portsdb!
database file error
[missing key: virtual_categories] [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 0 port entries found  ..... done]
missing key: virtual_categories: Cannot read the portsdb!
database file error
^C
Interrupted.

]# pkgdb -fu
--->  Updating the pkgdb
[Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... - 410 packages found (-0 +410) ....................................................................................................100....................................................................................................200....................................................................................................300....................................................................................................400.......... done]

Leave a Reply

Your email address will not be published. Required fields are marked *