porty II

Martin Horcicka horcicka at freebsd.cz
Tue Jan 14 10:09:30 CET 2003


Zbyněk Burget (2003-01-14 07:21 +0100):

> Tak, tady je jeden takovy pokus o pridani portu - byl proveden jeste pred
> aktualizaci kolekce portu. Po aktualizaci seto chovalo prakticky stejne, jen
> s tim rozdilem, ze chtel aktualizovat XFree86-libraries (uz bylo v portech
> novejsi), takze jsem musel dat portupgrade bez optionu -R. Pak ten vypis
> vypada uplne stejne, jenom chybi radky zacinajici **
>
> # portupgrade -FPRN tkdesk
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 79 packages
> found (-0 +25) ......................... done]
> ** No need to upgrade 'gmake-3.80' (>= gmake-3.79.1_3). (specify -f to
> force)
> ** No need to upgrade 'freetype2-2.1.2_1' (>= freetype2-2.1.2). (specify -f
> to force)
> ** No need to upgrade 'XFree86-libraries-4.2.1_3' (>=
> XFree86-libraries-4.2.1_1). (specify -f to force)
> --->  Checking the availability of the latest package of 'x11-fm/tkdesk'
> --->  Found a package of 'x11-fm/tkdesk':
> /usr/ports/packages/All/tkdesk-1.2_1.tgz
> # portupgrade -PRN tkdesk
> ** No need to upgrade 'gmake-3.80' (>= gmake-3.79.1_3). (specify -f to
> force)
> ** No need to upgrade 'freetype2-2.1.2_1' (>= freetype2-2.1.2). (specify -f
> to force)
> ** No need to upgrade 'XFree86-libraries-4.2.1_3' (>=
> XFree86-libraries-4.2.1_1). (specify -f to force)
> --->  Checking the availability of the latest package of 'x11-fm/tkdesk'
> --->  Found a package of 'x11-fm/tkdesk':
> /usr/ports/packages/All/tkdesk-1.2_1.tgz
> --->  Installing 'tkdesk-1.2_1' from a package
> --->  Installing the new version via the package
> pkg_add: could not find package tcl-8.3.5  (proceeding anyway)
> pkg_add: could not find package itcl-3.2  (proceeding anyway)
> pkg_add: could not find package tk-8.3.5  (proceeding anyway)
> pkg_add: could not find package blt-2.4u  (proceeding anyway)
> pkg_add: can't open dependency file '/var/db/pkg/tcl-8.3.5/+REQUIRED_BY'!
> dependency registration is incomplete
> pkg_add: can't open dependency file '/var/db/pkg/itcl-3.2/+REQUIRED_BY'!
> dependency registration is incomplete
> pkg_add: can't open dependency file '/var/db/pkg/tk-8.3.5/+REQUIRED_BY'!
> dependency registration is incomplete
> pkg_add: can't open dependency file '/var/db/pkg/blt-2.4u/+REQUIRED_BY'!
> dependency registration is incomplete
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 80 packages
> found (-0 +1) . done]
> # pkg_deinstall tkdesk
> Stale dependency: tkdesk-1.2_1 --> blt-2.4u -- manually run 'pkgdb -F' to
> fix, or specify -O to force.
> # pkg_delete /var/db/pkg/tkdesk-1.2_1
> # pkgdb -Fu
> --->  Updating the pkgdb
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 79 packages
> found (-1 +0) (...) done]
> --->  Checking the package registry database
>
> Z toho, jak se to chova jsem jenom pochopil to, ze portupgrade potrbuje
> kolekci portu ke dvema vecem. Jednak tam ma napsano, odkud se stahuji
> zdrojaky, a potom, jaka je aktualni verze toho ktereho portu - tzn. jestli
> je potreba ho upgradovat nebo ne. Evidentne ze sebe vola pkg_add -f je
> mozne, ze se neco polamalo, jenom nevim co. Kdyz jsem portupgrade odebral a
> znovu nainstaloval, tak se to chova stejne. Jestli je neco polamane, tak se
> to pri odinstalaci neodebere a pri instalaci neprepise. Nebo je chyba nekde
> uplne jinde - portupgrade potrebuje ten ruby - nemohlo se neco polamat v
> nem?

Myslim, ze portupgrade pouziva i pri instalaci baliku kolekci portu pro
prehled o existujicich portech, jejich aktualnich verzich a zavislostech mezi
porty. Z vypisu vyse se mi zda, ze portupgrade nevi o vsech zavislostech.
Nesledoval jsem celou tuto diskuzi, tak nevim co jste uz vsechno zkousel, ale
zkusil bych zkontrolovat, zda v indexu portu jsou vsechny spravne zavislosti
(grep ^tkdesk /usr/ports/INDEX) a pregenerovat databazovou verzi tohoto
souboru, kterou si udrzuje a pouziva portupgrade (rm /usr/ports/INDEX.db;
portsdb -u). Pak zkuste znovu nainstalovat tkdesk a pouzijte u portupgrade i
parametr -v, aby byl ponekud ukecanejsi o tom co dela.

Martin



More information about the Users-l mailing list