Subject: Re: Simple commands to add own patches to pkgsrc softwares
To: None <netbsd-users@netbsd.org>
From: Cem Kayali <cemkayali@eticaret.com.tr>
List: netbsd-users
Date: 12/27/2007 06:08:42
Mr. Nemeth, i thank you.=20
Full steps in detail:
Go to pkgsrc directory of the software you want to patch
# cd /usr/pkgsrc/category/software
Exract the software
# make extract
Go to directory of source files
# cd work
# cd src
Edit files via pkgvi and get difference file
# pkgvi file.c
# pkgdiff file.c > patch-zz
Edit patch file, because path of the file may be incorrect. See 3rd and 4th
line
# vi patch-zz
Move patch to original patches directory
# mv patch-zz /usr/pkgsrc/category/software/patches
# cd /usr/pkgsrc/category/software
Well, it could be better to clean first and then install
# make clean
# make install
I think this should be documented for future reference of standard users.
Regards,
John Nemeth wrote:
>=20
> On Apr 13, 4:01pm, Cem Kayali wrote:
> }=20
> } I would like to apply my own patches and build pkgsrc softwares, but it
> } creates error message. I checked
> } "http://www.netbsd.org/docs/pkgsrc/components.html" already, but it sti=
l
> } fails, i probably make a mistake.
> }=20
> } Steps:
> }=20
> } 1- Exract original software.
>=20
> You can use "make extract" for this step.
>=20
> } 2- Copy original_file.c to original_file.c.orig
> }=20
> } 3- Edit original_file.c
>=20
> You can use 'pkgvi' for these two steps.
>=20
> } 4- Run "pkgdiff original_file.c.orig original_file.c"
> }=20
> } 5- Place patch into "pkgsrc/category/software/patches/"
> }=20
> } 6- Run "make makedistinfo" in "pkgsrc/category/software/"
>=20
> You probably just want "make mps" for this step.
>=20
> } Once i try to "make install" it says, patch is inappropriate format.
>=20
> Not sure about this. But, if you are in a subdirectory of the
> package when you do the 'pkgdiff' you may have to edit filename in the
> patch to include the path. Also, you can use "make patch" to test how
> well your patches are working.
>=20
> }-- End of excerpt from Cem Kayali
>=20
>=20
-----
=20
=20
=20
----------------
Cem Kayal=C4=B1
--=20
View this message in context: http://www.nabble.com/Simple-commands-to-add-=
own-patches-to-pkgsrc-softwares-tp14512204p14513476.html
Sent from the netbsd-users mailing list archive at Nabble.com.