View previous topic :: View next topic |
Author |
Message |
bll0 Apprentice
Joined: 22 May 2004 Posts: 178
|
Posted: Mon Oct 24, 2005 11:46 am Post subject: Quellcode geändert, wie emergen? |
|
|
Hi Leute!
Ich hab die Sourcefiles einer Software verändert. Die Sources hatte ich in portage/distfiles liegen.
Nun möchte ich gerne meine geänderte Software testen, so dass er das nimmt was ich geändert habe.
Wie gehe ich jetzt vor, was muss ich noch an ebuilds,md5 oder sonstigem ändern, damit ich das Teil auch
ordentlich emergen kann?
Danke für eure Hilfe!
bll0 _________________ I need a girl whose name doesn't end in .jpg |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Mon Oct 24, 2005 11:52 am Post subject: |
|
|
1. geänderten source in ein tar Archiv packen
2. Tar-Archiv nach "/usr/portage/distfiles" kopieren
3. Digest neu berechnen lassen
Code: |
$ ebuild /path/to/ebuild/filename.ebuild digest
|
Danach kannst emergen.
Damit das ganze beim nächsten sync nicht wieder rückgängig gemacht wird, kopierst du das ebuild am besten vorher in ein overlay.
Mfg
Sino |
|
Back to top |
|
|
bll0 Apprentice
Joined: 22 May 2004 Posts: 178
|
Posted: Mon Oct 24, 2005 12:16 pm Post subject: |
|
|
Irgendwie bekomme ich das nicht wirklich ganz hin...
Also, hab mit "tar cfj aMule-2.0.3.tar.bz2 *" in dem Verzeichnis wo der geänderte Code ist
das Archiv erstellt. Dieses dann in /usr/portage/distfiles kopiert und dne digest neu berechnet.
Wenn ich aber jetzt emerge, findet der das configure script nicht
Code: | >>> Unpacking source...
>>> Unpacking aMule-2.0.3.tar.bz2 to /var/tmp/portage/amule-2.0.3/work
/usr/lib/portage/bin/ebuild.sh: line 42: cd: /var/tmp/portage/amule-2.0.3/work/aMule-2.0.3: Datei oder Verzeichnis nicht gefunden
>>> Source unpacked.
!!! ERROR: net-p2p/amule-2.0.3 failed.
!!! Function econf, Line 488, Exitcode 1
!!! no configure script found |
Was mach ich falsch? _________________ I need a girl whose name doesn't end in .jpg |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Mon Oct 24, 2005 12:28 pm Post subject: |
|
|
Hast du dich evtl. in dem "aMule-2.0.3" Verzeichniss befunden als du das neue Archiv erstellt hast ?
Mfg
Sino |
|
Back to top |
|
|
STiGMaTa_ch Veteran
Joined: 28 Dec 2004 Posts: 1686 Location: Rüti ZH / Schweiz
|
Posted: Mon Oct 24, 2005 1:03 pm Post subject: |
|
|
bll0 wrote: | Irgendwie bekomme ich das nicht wirklich ganz hin...
Also, hab mit "tar cfj aMule-2.0.3.tar.bz2 *" in dem Verzeichnis wo der geänderte Code ist
das Archiv erstellt. [...]Was mach ich falsch? |
Geh ein Verzeichnis höher und gib dann Code: | tar cfj aMule-2.0.3.tar.bz2 aMule-2.0.3 | ein. Dann sollte das eigentlich funktionieren.
Ansonsten:
1. Original aMule-2.0.3.tar.bz2 z.B. in /tmp entpacken
2. In /tmp/aMule-2.0.3/XXXX Deine Dateien abändern
3. Nach /tmp wechseln und dort ein: Code: | tar cfj aMule-2.0.3.tar.bz2 /usr/portage/distfiles/aMule-2.0.3.tar.bz2 aMule-2.0.3 | ausführen.
Dann sollte es eigentlich gehen
Lieber Gruss
STiGMaTa |
|
Back to top |
|
|
slick Bodhisattva
Joined: 20 Apr 2003 Posts: 3495
|
Posted: Mon Oct 24, 2005 4:20 pm Post subject: |
|
|
Folgender Link sollte helfen: http://www.gentoo.de/doc/de/handbook/handbook-x86.xml?part=3&chap=6
prinzipiell machst Du es so (von Orginal-Sourcen und -ebuild ausgehend!)
Code: | ebuild path/to/ebuild unpack
# jetzt patche/ändere Sourcen in /var/tmp/portage/<paket>/work...
ebuild path/to/ebuild compile
touch /var/tmp/portage/<paket>/work/.compiled
ebuild path/to/ebuild install
ebuild path/to/ebuild qmerge
ebuild path/to/ebuild clean |
|
|
Back to top |
|
|
BuLLy Tux's lil' helper
Joined: 26 Oct 2004 Posts: 79
|
Posted: Mon Oct 24, 2005 6:29 pm Post subject: |
|
|
Wenn ich mal was im Quellcode ändere, z.B. im Firefox, dann emerge ich ganz normal und warte bis die Sources in /var/tmp/portage/ entpackt und gepatched wurden. Dann drücke ich STRG + Z, ändere den Code und gebe dann fg ein, um den emerge Prozess wieder auszunehmen.
Ist zwar nicht sehr professionell, klappt aber sehr gut, und eignet sich sehr gut, wenn man was auf die Schnelle machen will.
gruß
BuLLy |
|
Back to top |
|
|
|