In particular, Gentoo makes it really easy to patch packages you install. It's one of the ways in which the source-based nature really gives you a lot of power.