dependence v ports/INDEX souboru jsou po make index chybne

Radim Kolar hsn at netmag.cz
Mon Jun 21 23:37:38 CEST 2004


Napsal jsem program pro incrementalni generovani ports/INDEX souboru protoze
mne uz prestalo bavit cekat hodinu a pul. Neni mne jasne, jak se delaji
dependence protoze je generuji jine nez ten originalni novy make indexovac.

priklad:
0verkill ma dependenci jenom na xlibs:
(hsn at ttyv4):/usr/ports/games/0verkill% make depends
===>   0verkill-0.16 depends on shared library: X11.6 - found
(hsn at ttyv4):/usr/ports/games/0verkill% make describe
0verkill-0.16|/usr/ports/games/0verkill|/usr/local|0verkill is a bloody 2D actio
n deathmatch-like game in ASCII-ART|/usr/ports/games/0verkill/pkg-descr|mich at Fre
eBSD.org|games|/usr/ports/x11/XFree86-4-libraries|/usr/ports/x11/XFree86-4-libra
ries|http://artax.karlin.mff.cuni.cz/~brain/0verkill/

tedka se podivame do originalniho indexu, jak tyhle dependence make index 
expanduje

(hsn at ttyv2):/usr/ports% make search name=0verkill
Port:   0verkill-0.16
Path:   /usr/ports/games/0verkill
Info:   0verkill is a bloody 2D action deathmatch-like game in ASCII-ART
Maint:  mich at FreeBSD.org
B-deps: XFree86-libraries-4.3.0_7 expat-1.95.7 fontconfig-2.2.2,1 freetype2-2.1.
7_3 imake-4.3.0_2 perl-5.6.1_15 pkgconfig-0.15.0_1
R-deps: XFree86-libraries-4.3.0_7 expat-1.95.7 fontconfig-2.2.2,1 freetype2-2.1.
7_3 imake-4.3.0_2 perl-5.6.1_15 pkgconfig-0.15.0_1

tedka vymenim INDEX-5 za ten co jsem vygeneroval ja a zopakuji to

(hsn at ttyv2):/usr/ports% make search name=0verkill
Port:   0verkill-0.16
Path:   /usr/ports/games/0verkill
Info:   0verkill is a bloody 2D action deathmatch-like game in ASCII-ART
Maint:  mich at FreeBSD.org
B-deps: XFree86-libraries-4.3.0_7 imake-4.3.0_2 perl-5.6.1_15 freetype2-2.1.7_3
gmake-3.80_2 gettext-0.13.1_1 libiconv-1.9.1_3 libtool-1.3.5_2 expat-1.95.7 font
config-2.2.2,1 pkgconfig-0.15.0_1
R-deps: XFree86-libraries-4.3.0_7 imake-4.3.0_2 perl-5.6.1_15 freetype2-2.1.7_3
fontconfig-2.2.2,1 pkgconfig-0.15.0_1 expat-1.95.7

a jsou tam videt rozdily. Ja tam mam vsechny uplne dependence, protoze jsem to rozexpandoval rekurzivne az do konce. Pokud si vzpominam tak drive to rozhodne bylo rozbalene az dokonce a pravdepodobne to tak ma byt, nebot' v posledni dobe mne portupgrade blblo, vynechavalo nektere vice zanorene programy -r -R.

(hsn at ttyv2):/usr/ports/x11/XFree86-4-libraries% make describe
XFree86-libraries-4.3.0_7|/usr/ports/x11/XFree86-4-libraries|/usr/X11R6|XFree86-
4 libraries and headers|/usr/ports/x11/XFree86-4-libraries/pkg-descr|x11 at FreeBSD
.org|x11|/usr/ports/devel/imake-4 /usr/ports/print/freetype2 /usr/ports/x11-font
s/fontconfig|/usr/ports/devel/imake-4 /usr/ports/print/freetype2 /usr/ports/x11-
fonts/fontconfig|http://www.xfree86.org/

Jak je videt tak x11 knihovny zavisi na imake-4, freetype2 a fontconfig. Coz je
mene nez jsou ty dependence uvedene, takze je make index expanduje jeste do dalsi urovne. Nicmene nevim v jakem okamziku s tim make index prestane a proc se tedy nedostal a k gmake. 

(hsn at ttyv3):~/sql/bsdpkg% pkg_tree  0verkill
0verkill-0.16
|\__ pkgconfig-0.15.0_1
|\__ perl-5.6.1_15
|\__ imake-4.3.0_2
|\__ freetype2-2.1.7_3
|\__ expat-1.95.7
|\__ fontconfig-2.2.2,1
 \__ XFree86-libraries-4.3.0_7
neni mne jasne odkud bere pkg_tree tyhle informace.

Ted se mrkneme na freetype2
(hsn at ttyv2):/usr/ports/print/freetype2% make describe
freetype2-2.1.7_3|/usr/ports/print/freetype2|/usr/local|A free and portable True
Type font rendering engine|/usr/ports/print/freetype2/pkg-descr|gnome at FreeBSD.or
g|print|/usr/ports/devel/gmake /usr/ports/devel/libtool13||http://www.freetype.o
rg/

a hele, tady je ten gmake ktery muj program spravne zahrnul a make index se na to vykaslal.

pav to cele prelozi do anglictiny a posle si to jako PR :)

moje hracka je na http://home.tiscali.cz/~cz210552



More information about the Users-l mailing list