1. joe@gentoo1 ~/dwm (fibi)> git apply --check --verbose --whitespace=nowarn ../patches/dwm-fibonacci-20200418-c82db69.diff
  2. Checking patch config.def.h...
  3. error: while searching for:
  4. static const int nmaster = 1; /* number of clients in master area */
  5. static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
  6. static const Layout layouts[] = {
  7. /* symbol arrange function */
  8. { "[]=", tile }, /* first entry is default */
  9. { "><>", NULL }, /* no layout function means floating behavior */
  10. { "[M]", monocle },
  11. };
  12. /* key definitions */
  13. error: patch failed: config.def.h:36
  14. error: config.def.h: patch does not apply
  15. Checking patch fibonacci.c...
  16. joe@gentoo1 ~/dwm (fibi) [1]> git apply --reject --verbose --whitespace=nowarn ../patches/dwm-fibonacci-20200418-c82db69.diff
  17. Checking patch config.def.h...
  18. error: while searching for:
  19. static const int nmaster = 1; /* number of clients in master area */
  20. static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
  21. static const Layout layouts[] = {
  22. /* symbol arrange function */
  23. { "[]=", tile }, /* first entry is default */
  24. { "><>", NULL }, /* no layout function means floating behavior */
  25. { "[M]", monocle },
  26. };
  27. /* key definitions */
  28. error: patch failed: config.def.h:36
  29. error: while searching for:
  30. { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
  31. { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
  32. { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
  33. { MODKEY, XK_space, setlayout, {0} },
  34. { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
  35. { MODKEY, XK_0, view, {.ui = ~0 } },
  36. error: patch failed: config.def.h:76
  37. Checking patch fibonacci.c...
  38. Applying patch config.def.h with 2 rejects...
  39. Rejected hunk #1.
  40. Rejected hunk #2.
  41. Applied patch fibonacci.c cleanly.
  42. joe@gentoo1 ~/dwm (fibi) [1]> vim config.def.h.rej
  43. joe@gentoo1 ~/dwm (fibi)> sudo make install clean --dry-run
  44. Password:
  45. cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"6.5\" -DXINERAMA dwm.c
  46. cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"6.5\" -DXINERAMA util.c
  47. cc -o dwm drw.o dwm.o util.o -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
  48. mkdir -p /usr/local/bin
  49. cp -f dwm /usr/local/bin
  50. chmod 755 /usr/local/bin/dwm
  51. mkdir -p /usr/local/share/man/man1
  52. sed "s/VERSION/6.5/g" < dwm.1 > /usr/local/share/man/man1/dwm.1
  53. chmod 644 /usr/local/share/man/man1/dwm.1
  54. rm -f dwm drw.o dwm.o util.o dwm-6.5.tar.gz
  55. joe@gentoo1 ~/dwm (fibi)> git add .
  56. joe@gentoo1 ~/dwm (fibi)> git commit -m "added fibi layout patch"
  57. [fibi 2ca52de] added fibi layout patch
  58. 5 files changed, 246 insertions(+), 10 deletions(-)
  59. create mode 100644 .config.def.h.swp
  60. create mode 100644 config.h
  61. create mode 100644 fibonacci.c
  62. joe@gentoo1 ~/dwm (fibi)> sudo make install clean
  63. cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"6.5\" -DXINERAMA dwm.c
  64. In file included from dwm.c:318:
  65. config.h:54:23: error: spiral undeclared here (not in a function)
  66. 54 | { "[@]", spiral },
  67. | ^~~~~~
  68. config.h:55:24: error: dwindle undeclared here (not in a function)
  69. 55 | { "[\\]", dwindle },
  70. | ^~~~~~~
  71. make: *** [Makefile:12: dwm.o] Error 1