Random Notes‎ > ‎

pkgsrc on linux: using nbpatch instead of GNU patch

posted Jan 27, 2011, 6:57 AM by William Shallum   [ updated Jan 27, 2011, 7:09 AM ]
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

  1. install build-essential and libncurses5-dev
  2. set CVS_RSH=ssh in .profile
  3. use the recommended .cvsrc (probably OK since I don't use CVS for anything else)
  4. cvs -q -z3 -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -r pkgsrc-20xxQy -P pkgsrc
  5. cd pkgsrc/bootstrap; ./bootstrap --unprivileged
  6. 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
Comments