Umgehung eventueller Probleme beim aktualisieren von portugrade

-Daemon-

Well-Known Member
Hallo allerseits,

ich habe gerade portupgrade auf die Version 2.1.3.2_1,2 gebracht und einige kleinere Probleme gehabt ;) Der ports-tree ist auf aktuellem Stand.

Mein System: FreeBSD 7.0-CURRENT #0: Fri Jul 14 21:13:53 CEST 2006

Die Fehlermeldung die man bekommt:
Code:
# portupgrade portupgrade
--->  Upgrading 'portupgrade-2.1.3.2,2' to 'portupgrade-2.1.3.2_1,2' (sysutils/p
ortupgrade)
--->  Building '/usr/ports/sysutils/portupgrade'
===>  Cleaning for ruby-1.8.4_8,1
===>  Cleaning for ruby18-bdb1-0.2.2
===>  Cleaning for perl-5.8.8
===>  Cleaning for portupgrade-2.1.3.2_1,2
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for portupgrade-2.1.3.2_1,2
===>  Extracting for portupgrade-2.1.3.2_1,2
=> MD5 Checksum OK for pkgtools-2.1.3.2.tar.bz2.
=> SHA256 Checksum OK for pkgtools-2.1.3.2.tar.bz2.
===>   portupgrade-2.1.3.2_1,2 depends on file: /usr/local/bin/ruby18 - found
=================================================================
WITH_BDB1 is defined but ruby-bdb port installed.
Remove ruby-bdb or redefine options.
=================================================================
*** Error code 1

Stop in /usr/ports/sysutils/portupgrade.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade88079.0 mak
e PORT_UPGRADE=yes
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! sysutils/portupgrade (portupgrade-2.1.3.2,2)  (unknown build error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

Um das Problem zu beheben macht man folgendes:
Code:
# pkg_delete portupgrade-2.1.3.2,2
# pkg_delete ruby18-bdb-0.5.9
# cd /usr/ports/sysutils/portupgrade && make install clean
Das alte portupgrade wird deswegen gelöscht, damit man ruby18-bdb überhaupt deinstallieren kann...:ugly:

Die portsdb und pkgdb sollte man noch neu bauen. ;)

Ich hoffe das diese kurze Notiz irgendjemandem helfen konnte :)

Gruß,
Philipp
 
Zuletzt bearbeitet:
In UPDATING steht das:
20060703:
AFFECTS: users of sysutils/portupgrade
AUTHOR: sem@FreeBSD.org

Because portupgrade had a problem with detecting Berkley DB version 2
or newer, and the default database format is now set to use these
versions, you can end up with a portupgrade that does not work with
older databases. A quick fix is to remove the databases, type:
'rm /var/db/pkg/pkgdb.db /usr/ports/INDEX*.db'.
portupgrade will recreate them automaticaly. It does absolutely no harm.

If you do not want remove the databases, you should detect what database
type do you use, and set the port options for portupgrade accordingly.
Follow these instructions:

- run 'pkgdb -fu' *before* upgrading and take a look on the output.
You can see database format there as: format:XXX, where XXX is your
current database format.
- Go to portupgrade port directory and configure the port with
`make config' command. If you have bdb_* format, then turn on the BDB4
option. If you have bdb1_* format, then turn off BDB4 and turn on
the BDB1 option. If you have dbd_hash format, then turn off all options.
- Upgrade portupgrade.

Note: if you change database format with changing port options,
you should remove the ruby-bdb* port that you don't need anymore.
Alternatively, you can hard code database format in your pkgtools.conf.

hat bestens funktioniert.
 
Das hab ich auch beachtet und letzte Woche durchgefuehrt... Nur hab ich mir da wohl noch was anderes verschossen gehabt :ugly:
 
Zurück
Oben