# # # Patches based on plan9port in GITHUB (2017-05) # ============================================== # # -Kenar- NB: it is wise to have a backup of your Plan9port Let $PD be this patch direcory Install tools below first to $HOME/bin - extra/dup # safe installing tool required for safecp - extra/safecp # safe copy that keeps original code They are written in rc scripts. Look the section "extras: post-installation is OK" in this README # # need to be compiled in success # bin/9c bin/9l src/cmd/auxstats/FreeBSD.c src/cmd/devdraw/cocoa-screen.m cd $PD/bin && safecp 9c 9l $PLAN9/bin safecp ($PD $PLAN9)^/src/cmd/auxstats/FreeBSD.c safecp ($PD $PLAN9)^/src/cmd/devdraw/cocoa-screen.m NB: the FreeBSD.c came from https://svnweb.freebsd.org/ports/head/devel/plan9port/files/patch-src-cmd-auxstats-FreeBSD.c?view=markup # # if compilation fails due to depricated getdirentries() # src/lib9/_mp9dir.c src/lib9/mdirread.c src/lib9/mkfile cd $PD/src/lib9 safecp * $PLAN9/src/lib9 cd $PLAN9/src/lib9 && mk NB: the make file includes strcompact.[ch] needsrcquote.c you need comment out those entry or copy required files. # # patches for mac to fix UTF-NFD problem. (need re-install) # src/lib9/strcompact.[ch] # Latin, Greek and Kana safecp ($PD $PLAN9)^/src/lib9/strcompact.c safecp ($PD $PLAN9)^/src/lib9/strcompact.h cd $PLAN9 && ./INSTALL # # Patch for unnecessary quote for some runes (i.e.,未) # NB: this bug has been fixed on GITHUG (2017-06-19) src/lib9/needsrcquote.c safecp ($PD $PLAN9)^/src/lib9/needsrcquote.c cd $PLAN9/src/lib9 && mk cd $PLAN9/src/cmd && mk ls.install cd $PLAN9/src/cmd/rc && mk install # Patches for mac if you don't like looks of `(back quote) and '(single quote). # original code maps those unicode to others. This patch diables the mapping. # NB: this bug has been fixed on GITHUG (2017-06-19) src/cmd/fontsrv/osx.c safecp ($PD $PLAN9)^/src/cmd/fontsrv/osx.c cd $PLAN9/src/cmd/fontsrv && mk install # # 9pfuse: need for mac and bsd (post-installation is OK) # bin/mount bin/unmount src/cmd/9pfuse^(main.c fuse.c) cd $PD/bin && safecp mount unmount $PLAN9/bin safecp $PLAN9/src/cmd/9pfuese/*.c $PLAN9/src/cmd/9pfuse cd $PLAN9/src/cmd/9pfuse && mk install # # just only for me so that they make easy to update p9p. # ndb/local # need your customization bin/9fs # need your customization # # extras: post-installation is OK # extra/cp.c # cp.c from Plan9 for those who hate cp of mac extra/dup # backup tool required for safecp (needs Plan9 cp) extra/safecp # cp that keeps original code (need Plan9 cp) extra/fact # a convenient fatotum tool extra/gg # gg makes 'g' more comfortable (needs lr and 9xa) extra/un9fs # cleans up 9fs related processes cd $PD/extra && cp dup safecp $HOME/bin cd $PD/extra && 9c cp.c && 9l -o o.cp cp.o && cp o.cp $PLAN9/bin cd $PD/extra && safecp fact gg $HOME/bin safecp ($PD/extra $PLAN9/bin)^/un9fs # # other useful stuff from http://p9.nyx.link/netlib # lr # list directories recursively cpdir # copy recursively 9xa # xargs with plan9 flavour