Re: How do I use the source package disributions?
Stan Brown wrote: Sounds liek a stupid question I know. First the reason. I am trying to get amanda to work on my debian box. I am still on bo and there is no .deb binary, so I think simple i'll just grab the hamm source stuff. I found the .orig file and a .diff file. I thought I could just untar the .orig, and then pun pathch from the .diff file. But this results in lot's of files in the directory I am working dorm, and not in the appropriate subdirectories. What am I doing wrong? Take as an example bible-kjv. These are the files in the Debian archive: bible-kjv_4.00-4_i386.deb -- binary package bible-kjv_4.00-4.diff.gz } bible-kjv_4.00-4.dsc } -- source bible-kjv_4.00.orig.tar.gz} (In the case of a package written for Debian, there may not be a .orig.tar.gz) Download all three components of the source -- let us say to /tmp. Then cd to the directory under which you want to put the source and run dpkg-source -x /tmp/bible-kjv_4.00-4.dsc (substituting, of course, the correct .dsc filename.) This will create the directory bible-kjv-4.00 in the current directory, containing the original source with Debian changes applied. -- Oliver Elphick[EMAIL PROTECTED] Isle of Wight http://www.lfix.co.uk/oliver PGP key from public servers; key ID 32B8FAA1 Unsolicited email advertisements are not welcome; any person sending such will be invoiced for telephone time used in downloading together with a £25 administration charge. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: How do I use the source package disributions?
On Thu, Dec 25, 1997 at 08:30:05PM -0500, Stan Brown wrote: Sounds liek a stupid question I know. First the reason. I am trying to get amanda to work on my debian box. I am still on bo and there is no .deb binary, so I think simple i'll just grab the hamm source stuff. I found the .orig file and a .diff file. I thought I could just untar the .orig, and then pun pathch from the .diff file. But this results in lot's of files in the directory I am working dorm, and not in the appropriate subdirectories. What am I doing wrong? Please read the file source-unpack.txt which is put in the doc directory of our ftp server. It tells you to use either dpkg-source and shows you the appropriate set of commands you have to enter if you're unpacking the source manually. You have to use patch -p0 and create the debian subdirectory before applying the patch. Regards Joey -- / Martin Schulze * [EMAIL PROTECTED] * 26129 Oldenburg / / http://home.pages.de/~joey/ / VFS: no free i-nodes, contact Linus -- finlandia, Feb '94 / -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: How do I use the source package disributions?
Martin Schulze [EMAIL PROTECTED] writes: On Thu, Dec 25, 1997 at 08:30:05PM -0500, Stan Brown wrote: Sounds liek a stupid question I know. First the reason. I am trying to get amanda to work on my debian box. I am still on bo and there is no .deb binary, so I think simple i'll just grab the hamm source stuff. I found the .orig file and a .diff file. I thought I could just untar the .orig, and then pun pathch from the .diff file. But this results in lot's of files in the directory I am working dorm, and not in the appropriate subdirectories. What am I doing wrong? Please read the file source-unpack.txt which is put in the doc directory of our ftp server. It tells you to use either dpkg-source and shows you the appropriate set of commands you have to enter if you're unpacking the source manually. You have to use patch -p0 and create the debian subdirectory before applying the patch. Regards Joey I've rebuilt hamm packages for my bo (libc5) system several times. Here's the general procedure: First, I basically use dpkg-source, but the bo dpkg-source can't quite handle hamm source packages; it's a bit annoying, but here's how I fix it. Let's say I want to compile the package foobar, version 1.2-3. ftp the files foobar_1.2-3.dsc, foobar_1.2-3.diff.gz and foobar_1.2-3.tar.gz into (this is just my convention so that I can find the files later) /usr/local/src/build/foobar Then, I need to munge the .orig.tar.gz file a bit so that bo's dpkg-source can deal with it. #(as root) cd /usr/local/src/build/foobar chown martind.martind . * #(as martind) cd /usr/local/src/build/foobar tar -xzf foobar_1.2-3.orig.tar.gz rm foobar_1.2-3.tar.gz mv foobar-1.2 foobar-1.2.orig # This is the change between hamm and bo tar -cf foobar_1.2-3.orig.tar foobar-1.2.orig gzip foobar_1.2-3.orig.tar ls -l foobar_1.2-3.orig.tar.gz md5sum foobar_1.2-3.orig.tar.gz I then go and edit the foobar_1.2-3.dsc file and down where it gives the size and md5 checksum for foobar_1.2-3.orig.tar.gz, I replace it with the size and md5 checksum given by the last two commands. Then, I do: dpkg-source -x foobar_1.2-3.dsc This creates the directory /usr/local/src/build/foobar/foobar-1.2 - then, I can go ahead with the build process as for bo packages: cd foobar-1.2 #(edit the file debian/rules if I need to make any changes - # reconfigure things the way I want, etc.) debian/rules configure debian/rules build #(then su to root - the earlier commands were done as unpriviledged martind) debian/rules binary cd .. dpkg -i foobar_1.2-3.deb This is reconstructed from memory, but I think it's resonably accurate. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .