Zvlastni chovani portmasteru

Jan Dušátko jan at dusatko.org
Sat Mar 21 14:34:25 CET 2015


Ahoj
Dostal jsem se do situace, kdy se mi portmaster zacyklil na zavislostech a
odmital delat upgrade dalsich package, neustale se tocil na textproc/xmlto->
fop -> devel/apache-ant -> openjdk8 .... az jsem se dostal na nejakych 6000
procesu a vsiml si toho.
Po odstreleni jsem zkusil dle rad z internetu nasledujici postup:

1) # pkg backup /data/pkgdb.backup.20150320 Dumping database:
Backing up: 100%

2) # pkg clean
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
pkg: Repository FreeBSD cannot be opened. 'pkg update' required The
following package files will be deleted:
        /var/cache/pkg/All/pkg-1.0.11.txz The cleanup will free 1 MiB

Proceed with cleaning the cache? [y/N]: y Deleting files: 100% All done

3) Kontrola /etc/pkg/FreeBSD.conf, event. porovnani s
/usr/src/etc/pkg/FreeBSD.conf
FreeBSD: {
         url: "pkg+http://pkg.freebsd.org/${ABI}/latest",
         enabled: true,
         signature_type: "fingerprints",
         fingerprints: "/usr/share/keys/pkg",
         mirror_type: "srv"
         }

4) # pkg update -f
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
Fetching meta.txz: 100%    968 B   1.0kB/s    00:01
Fetching packagesite.txz: 100%    5 MiB   2.7MB/s    00:02
Processing entries: 100%
FreeBSD repository update completed. 24022 packages processed

5) # pkg clean
Nothing to do.

6) # pkg stats
Local package database:
        Installed packages: 908
        Disk space occupied: 3 GiB

Remote package database(s):
        Number of repositories: 1
        Packages available: 24022
        Unique packages: 24022
        Total size of packages: 42 GiB

7) # pkg check -Bd -n -a
Checking all packages:   1%databases/WWWdb has a missing dependency:
lang/perl5.14
print/a2ps has a missing dependency: lang/perl5.14
Checking all packages:   2%security/amavis-stats has a missing dependency:
lang/perl5.14
security/amavisd-new has a missing dependency: lang/perl5.14 ....

Jednalo se o dry run, tedy beze zmen, vicemene veci, ktere jsou vyreseny
pomoci /etc/make.conf.

Bohuzel, pri opetovnem pokusu jsem se dostal do situace, kdy se mi
portmaster zpomalil o nekolik radu - kontrola zavislosti u kazdeho z
instalovanych portu trva okolo minuty. Mam proto otazky:
1) Je nejaky zpusob, jak rebuildovat databazi portu v portng ?
2) Je nejaky zpusob, jak vyhodit duplicitni zaznamy v databazi portu (pokud
tam jsou)?
3) Na co se zamerit pri hledani problemu?

Kazda rada dobra.

Diky

Honza



Jan Dušátko

Phone:		+420 602 427 840
e-mail:		jan na dusatko.org
SkypeID:		darmodej
GPG:			http://www.dusatko.org/downloads/jdusatko.asc





More information about the Users-l mailing list