pkgsrc on linux: using nbpatch instead of GNU patch
Posted Jan 27 2011, 14:57 by William Shallum [updated Jan 27 2011, 15:09]
Some patches won’t apply cleanly using GNU patch so use NetBSD’s patch instead (it’s in devel/nbpatch).
To use this for patch just install it and then add to pkg/etc/mk.conf:
TOOLS_PLATFORM.patch= /home/apps/pkg/bin/nbpatch
Your path to nbpatch may vary.
Edit: additional notes for me
- install build-essential and libncurses5-dev
- set CVS_RSH=ssh in .profile
- use the recommended .cvsrc (probably OK since I don’t use CVS for anything else)
- cvs -q -z3 -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -r pkgsrc-20xxQy -P pkgsrc
- cd pkgsrc/bootstrap; ./bootstrap –unprivileged
- add ~/pkg/sbin, ~/pkg/bin to PATH and ~/pkg/man to MANPATH in .profile
Recommended .cvsrc:
# recommended CVS configuration file from the pkgsrc guide
cvs -q -z3
checkout -P
update -dP
diff -upN
rdiff -u
release -d
– end additional notes