Send source patches with (G Suite) and Thunderbird

にほんご Gmail’s web mail client is not suitable for sending code patches, since it doesn’t send the email contents as is. TABs are converted to white spaces, trailing spaces are trimmed. patch collapsed via web Gmailpatch collapsed via web Gmail " patch collapsed via web Gmail So the patch cannot be applied with git am or git apply! 1 2 3 4 5 $ git apply < patch.txt error: patch failed: gdb/ChangeLog:1 error: gdb/ChangeLog: patch does not apply error: patch failed: gdb/darwin-nat.

Backtrace samples in NetBSD kernel

Here I’ll paste many backtraces I’ve got while debugging the NetBSD kernel with gdb, because it is often the case that I want to see them when I’m so lazy that I can’t startup the debug environment :) sys/netipsec/key.c key_api_getspi() key_api_register() 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 (gdb) bt #0 key_api_getspi (so=0xffff8241b23880c8, m=0xffff8241ab42e778, mhp=0xffff958033193978) at /home/wsh/qc/netbsd/sys/netipsec/key.

Can't --enable-gold in NetBSD-tools' binutils

Add --enable-gold in tools/binutils/Makefile: 1 2 3 4 5 6 7 8 9 10 11 12 diff --git a/tools/binutils/Makefile b/tools/binutils/Makefile index 45d71431395..a4677c102d0 100644 --- a/tools/binutils/Makefile +++ b/tools/binutils/Makefile @@ -14,6 +14,7 @@ BRANDING?= \ CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} --disable-nls \ --program-transform-name="s,^,${MACHINE_GNU_PLATFORM}-," \ --disable-werror --disable-initfini-array \ + --enable-gold \ ${BRANDING} build/gas/m68k-parse.c: ${GNUHOSTDIST}/gas/m68k-parse.c 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 .

Build strongSwan on macOS

Warning Though I succeeded to build strongSwan on macOS, establishing VPN was tough and I aborted. I guess strongSwans is not well tested on recent macOS and establishing VPN might be even impossible on recent macOS without hacking the source. Info For those who reached here via google: configure YACC='/usr/local/Cellar/bison/3.4.2/bin/bison -y' --disable-kernel-netlink may fix your problem. As of 2019-11-27, the build of strongSwan on macOS is broken;

Keep "Change-Id" unchanged when update patch for golang

otherwise new “change” (the Gerrit’s counterpart of “pull request” in GitHub) will be created on git codereview mail. https://go-review.googlesource.com/q/owner:wataash%2540wataash.com If Change-Id is modified by accident, modify it back manually by git commit --amend. Then git codereview mail will update the original “change”.