Wie kompiliere ich mercurial 1.5.2 unter debian?

732
Aaron Digulla

Ich habe die Dateien für Mercurial 1.5.2 von http://packages.debian.org/sid/mercurial (mercurial_1.5.2-1.debian.tar.gz, mercurial_1.5.2-1.dsc und mercurial_1.5.2.orig) heruntergeladen . tar.gz). Wie bekomme ich ein .deb-Paket daraus? Ich habe versucht, den Anweisungen unter http://www.debian.org/doc/maint-guide/ch-build.en.html zu folgen, aber sie funktionieren nicht.

Ich habe versucht, die beiden Archive entpacken und ausführen dpkg-buildpackageoder debian/rules buildaber das scheitert mit:

dh --with quilt clean dh_testdir debian/rules override_dh_auto_clean make[1]: Entering directory `/home/user/packages/mercurial-deb' cp -a mercurial/__version__.py mercurial/__version__.py.save cp: cannot stat `mercurial/__version__.py': No such file or directory make[1]: *** [override_dh_auto_clean] Error 1 make[1]: Leaving directory `/home/user/packages/mercurial-deb' make: *** [clean] Error 2 

Das liegt daran, dass das Verzeichnis mercurialdrin ist mercurial_1.5.2/. Warum ist das Build-Skript nicht cdan der richtigen Stelle? Wenn ich es versuche ../debian/rules build, bekomme ich

dh --with quilt build dh: cannot read debian/control: No such file or directory 

Seufzer

Wie kompiliere ich ein Paket für Debian?

0
Sollte auf so sein? Fake Name vor 13 Jahren 0
Hier geht es nicht um das Programmieren, sondern um "wie verwende ich Software". Aber es ist eine Grauzone, da stimme ich zu. Aaron Digulla vor 13 Jahren 0

2 Antworten auf die Frage

1
Shiki

Why would you want to recompile it? Well whatever.
First, grab them with: dget -u --insecure http://ftp.de.debian.org/debian/pool/main/m/mercurial/mercurial_1.5.2-1.dsc

Then run those commands. This will pack them into a deb like in the archive.

(I would just add a sid.list into my /etc/apt/sources.list.d/ and use apt-pinning since it grabs every needed dependencies, etc etc. You should check apt-pinning out if you just want a newer version.)

Danke, das geht. Mein Grund ist, dass ich einen Patch habe, den ich brauche, und ich möchte mein System zu diesem Zeitpunkt wirklich nicht mit unbekannten Paketen verschmutzen, also kein "sid" für mich (was auch immer das sein mag - es ist mein erster Kontakt mit debian). Aaron Digulla vor 13 Jahren 0
0
Neal

You need to get the mercurial_1.5.2-1.debian.tar.gz file as well. Extract this into the right place and you should be good to go.

The orig file is the source code that the Debian people have got hold of. The debian file contains the changes they have made to the package, including all the information on how the .deb file needs to be built.

Der "richtige Ort" war das, was mir gefehlt hat. Ich entpackte das `debian`-Verzeichnis zusammen mit den Ursprungsquellen, anstatt darin. Aaron Digulla vor 13 Jahren 0