mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.5 KiB

  1. The ROCK Linux Patch Guide
  2. ==========================
  3. In order to make applying patches as efficient as possible, submitted
  4. patches should be in the format described here. I (and some maintainers
  5. of subsystems) might be refusing patches if they don't conform to this
  6. document.
  7. Please put the string [PATCH] at the beginning of the Mail Subject. It might
  8. not be seen if the word isn't part of the first few characters, since many
  9. console mail clients do only show the start of the subject in the mail
  10. index.
  11. 0. DON'T SEND UNTESTED PATCHES WITHOUT POINTING OUT CLEARLY THAT THEY ARE
  12. UNTESTED AND DON'T EXPECT UNTESTED PATCHES TO GET APPLIED. In cases of
  13. package updates, etc. it's already enought to test if the package still
  14. builds fine in a more or less generic configuration.
  15. 1. Patches should be in the the unified- or context-format. We prefer
  16. unified diffs. It should be possible to apply the patch with the
  17. command 'patch -p1 < patchfile' in the base directory.
  18. Patches created with 'cvs diff' or 'svn diff' and simmilar are also ok,
  19. as long as they are context diffs and can be applied with the the
  20. misc/archive/apply-patch.sh script.
  21. 2. The Patch shouldn't contain any files which are automatically generated
  22. by ./scripts/Puzzle.
  23. The script "./scripts/Create-Diff <old-dir> <new-dir>" can be used to
  24. easily create patches conforming to 1. and 2.
  25. 3. The patch should be against one of the latest development snapshots or
  26. (even better) the relevant Revision Control System used for the source
  27. tree.
  28. 4. One patch should solve only one issue. If you have multiple (independent)
  29. fixes, send multiple patches.
  30. 5. If a patch isn't two-lines self-describing, add a little comment and a
  31. properly formated CHANGELOG entry at the top of the patch file or the
  32. mail body.
  33. 6. If you don't get any feedback and the patch doesn't show up in the
  34. snapshots after a week, resend the patch to the maintainer.
  35. 7. Don't pack your patches to tar-files. That makes it much harder to open
  36. and read them in a mail-reader. Only compress a patch if it's _really_ big.
  37. 8. Inform the responsible maintainer when you start working on a problem to
  38. make sure you are not doing duplicate work.
  39. 9. Don't just send me the files you have been added or modified. Send me
  40. a patch against the ROCK Linux Sources (as described above).
  41. 10. NEVER SEND TAR-FILES WHICH ARE REPLACING THE FILES YOU HAVE MODIFIED
  42. AND/OR ARE ADDING NEW FILES! ALWAYS SEND PATCHES AS DESCRIBED ABOVE!