Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: how to write patch for pkgsrc ?
On Mon, Aug 11, 2008 at 12:29:50PM -0500, Jeremy C. Reed wrote:
> > how to write patch for pkgsrc ?
> > using pkgvi, mkpatches, patch? I need an example
>
> Here is an example without using pkgvi or mkpatches:
>
> mkdir patches
> cd $WRKSRC # like work/foo-1.2.3
> cp source.file source.file.orig
> vi source.file # edit it
> diff -u source.file.orig source.file > ../../patches/patch-xy
Also note that if your file-to-patch is in a subdirectory, you should NOT
cd to that subdir; you should still run diff from $WRKSRC. i.e.:
diff -u somedir/source.file.orig somedir/source.file > ../../patches/patch-xz
eric
Home |
Main Index |
Thread Index |
Old Index