[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: patching a package?

On Tue, May 09, 2006 at 08:03:32AM +0200, Lionel Elie Mamane wrote:
> On Mon, May 08, 2006 at 11:32:38PM -0500, Jason D. Clinton wrote:
> > I want to take a Debian source package and make a few changes to do
> > it and then recompres it and test it. If it works I want to generate
> > a patch which I can send to the maintainer. What would be the best
> > way to do this?
> apt-get source ${PACKAGE}
> cp -R ${PACKAGE}-${VERSION} ${PACKAGE}-${VERSION}.pristine-deb
> # hack away

Some other helpful bits since your "then recompres it and test it"
wasn't really addressed... You'll probably want to install the
devscripts and fakeroot packages (if you haven't already) and see
the manpage for debuild, but in short you probably want something

   debuild -rfakeroot -b -uc -us
   sudo dpkg -i ../*.deb
   # test away

Added a Cc/MFT debian-user, as these sorts of questions are probably
more appropriate there.
{ IRL(Jeremy_Stanley); PGP(9E8DFF2E4F5995F8FEADDC5829ABF7441FB84657);
SMTP(fungi@yuggoth.org); IRC(fungi@irc.yuggoth.org#ccl); ICQ(114362511);
AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fungi@yuggoth.org);
MUD(fungi@katarsis.mudpy.org:6669); WWW(http://fungi.yuggoth.org/); }

Reply to: