Skip to content

Instantly share code, notes, and snippets.

@farhaven
Created November 22, 2015 14:35
Show Gist options
  • Save farhaven/09cd5e130e6d1895b42c to your computer and use it in GitHub Desktop.
Save farhaven/09cd5e130e6d1895b42c to your computer and use it in GitHub Desktop.
15:16:41 farhaven | ksh: cd: /usr/ports/net/bitcoin - No such file or directory
15:16:43 farhaven | nah :)
15:17:50 farhaven | it would be awesome if you could do per-file patches instead of a whole tree
15:18:02 farhaven | as in, diff -u file.orig file
15:18:08 farhaven | where file.orig is the one without your changes
15:19:32 farhaven | and from there, you basically kick out all old patches and add yours one by one
15:19:38 farhaven | named patch-$something
15:19:48 farhaven | where $something is a version of the file path
15:20:07 farhaven | so a patch for a/b/c/foo.c gets named patch-a-b-c-foo_c
15:20:24 farhaven | that way, it's obvious to which file a patch applies
15:20:40 farhaven | and well, you already have the changes to the make file
15:21:03 farhaven | a few of those are redundant, you don't need PKGNAME if DISTNAME is already the same, for example
15:21:07 <-- | BW^- (~Bwbwbwbwb@unaffiliated/bw-/x-2460362) has quit (Ping timeout: 240 seconds)
15:21:09 farhaven | and you don't need to set WRKDIST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment