Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
was hat das {D} in manchen ebuild scripts für einen sinn???
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5174

PostPosted: Thu Oct 31, 2002 8:47 pm    Post subject: was hat das {D} in manchen ebuild scripts für einen sinn??? Reply with quote

hi,
wie schon im titel steht frag ich mich was fürn sinn das {D} in machen ebuild scripten unter src_install() hat.

nun zum Hintergrund meiner Frage :) :

ich hatte heute den mc per emerge mc installiert.
da ging auch alles glatt :)
nur dann wollte ich den mc mit einer veränderten optimierung neu
installieren (anstelle von -mcpu=pentium2 mit -march pentium2).

wenn ich dann(nach dem neuinstallieren) im mc die F1 taste drückte sollte ja normalerweise die hilfe angezeigt werden.
Aber er spukte nur folgende Fehlermeldung aus:

Cannot open file /var/tmp/portage/mc-4.6.0_pre1/image//usr/lib/mc/mc.hlp
Datei oder Verzeichniss nicht gefunden (2).

Ich hab dann mal neugestartet und nochmal installiert und da hat es auch wieder richtig gefunzt.

Da es nach einem neustart wieder ging kann es nur sein das die variable {D} durch was auch immer mit folgendem string gefüllt worden sein:
"/var/tmp/portage/mc-4.6.0_pre1/image/"

Also nochmal für was is dieses {D} überhaupt in manchen ebuild scripts drinn obwohl, wie bei mir passiert, die variable durch irgent welchen blödsinn gefüllt werden kann. Und dadurch die Pfade nicht mehr richtig in die binary compiliert werden.
Back to top
View user's profile Send private message
Ravage
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2002
Posts: 107

PostPosted: Thu Oct 31, 2002 10:13 pm    Post subject: Reply with quote

das ${D} wird im ebuild mit dem Image-Directory gefüllt.
soll heißen:
- beim z.B. emerge mc wird alles im ${WORKDIR} compiliert
- ein "make install" (was vom ebuild dann ausgeführt wird) installiert nach ${D}
- wenn alles fehlerfrei lief, dann wird der Inhalt von ${D} nach / (root-Verz.) kopiert.
(das sind die vielen <<< /irgendwas nach /irgendwo's
- manchmal wird in manchen filess vergessen den ${D}-Pfad wieder "raus zu löschen" <-- so bei dir geschehen. (liegt am ebuild, nicht an dir !)

Hat den vorteil, das wenn was schief geht, nicht deine Installation den Bach runtergeht.

rav
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum