Don't patch generated files as they'll change drastically over time and make maintaining the patch impossible.
Also if the patch has been submitted upstream, including a link to the submission (bug, list thread, etc) is helpful when doing upgrades in the future.