- To: Jeremy Visser <jeremy.visser@xxxxxxxxx>
- Subject: Re: [SLUG] Creating a really really simple .deb package
- From: David Gillies <daveg@xxxxxxxxx>
- Date: Tue, 07 Nov 2006 14:29:21 +1100
- Cc: slug@xxxxxxxxxxx
- User-agent: Thunderbird 1.5.0.7 (X11/20060922)
Jeremy Visser wrote:
This technique works with what I'm doing to the point of the version
numbers. I have managed to get dpkg-repack to build into a folder, where
I can modify the version number in ./DEBIAN/control, but can't seem to
build any further from there afterwards.
I tried "sudo dpkg-repack --root=./ metacity-common" on the generated
folder, but it complained that the package wasn't installed. I suspect
--root has to point to a chroot installation or something.
Any more pointers?
To rebuild a package, I usually:
1. apt-get source <package>
2. cd <package>
3. dch -i
This will open debian/changelog , then you can increment the package
version/release/etc, put in changelog info, etc
4. dpkg-buildpackage -rfakeroot -uc -b
This will only build the binary packages, no source stuff will be
spat out
before you run this, make sure that <package-name>/debian/control is
executable
At step 4, it might complain about unsatisfied build dependancies. I'm
pretty sure there's a nice apt/dpkg automatic way of doing this, but I
can't remember what is it. It'll tell you anyhow and you can then do the
usual apt-get install <blah>
--
dave.