On Mon, May 13, 2002 at 06:27:17PM -0500, Ron Johnson wrote: > On Mon, 2002-05-13 at 16:20, Colin Watson wrote: > > (I hope you didn't unpack it in /etc/apt! Use 'apt-get source' as an > > ordinary user, not as root, and usually somewhere in your home > > directory.) > > Uh, yeah. That's where I was when I did > $ apt-get source mozilla > Can I just "rm mozilla*" and mozilla-1+rc1/ from /etc/apt?
Yep, sure. > > Change into the unpacked source directory and run 'dpkg-buildpackage > > -rfakeroot -uc -us'. The -uc and -us prevent the tools from trying to > > sign the generated .changes and .dsc files, which you probably don't > > want to bother with. -rfakeroot, if you have the fakeroot package > > installed, means you don't need root privileges for the build. > > > > You'll want to install the build-essential package and its dependencies, > > plus anything listed in the Build-Depends:/Build-Depends-Indep: fields > > of debian/control in the source package. 'apt-get build-dep mozilla' > > will do this for you if you have apt >= 0.5. > > So, since I already have apt 0.5.4 & build-essential 6 installed, > as root, in ~, I do > $ apt-get source mozilla > $ cd <the_mozilla_dir> > $ dpkg-buildpackage -uc -us > OR > $ apt-get build-dep mozilla > $ apt-get --build source mozilla Looks about right to me, although you want 'apt-get build-dep' in the former case too. You need to get build-dependencies as root, while everything else can be done as an ordinary user. Actually, there's a note in the FAQ about doing this kind of thing, although it's at a lower level then either of these two (Debian has lots of different ways to do some things, mostly because people got dissatisfied with the interfaces presented by the existing tools and decided they wanted to write some wrappers to make things easier). It's here: http://www.debian.org/doc/FAQ/ch-pkg_basics.html#s-sourcebuild Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]