Patents are morally reprehensible in principle, the result in practice is therefore inevitable. There is no middle road or way around this: patents must be abolished.
Furthermore, if you aren't against patents in general, there is no principled argument that can be made against software patents in particular. Software is just as inventive as other realms.