I was thinking about this the other day, the basic problem with software patents is that almost all problems are trivial to solve as soon as you actually ask the question. It's just that there are so many questions in software engineering. Most programming problems are fairly easy to solve for a smart person. Many programmers have come up with virtually ideal solutions very quickly, people matching grep's search speed in days or came up with almost an identical shuffling algo as the ideal one in a couple of minutes.
Until you have a storefront and logged in users, you can't ask the question "how can my users quickly buy something online", and come up with a one-click button.
And so instead of being awarded for hard, complicated work that took months or years of man-effort, patents are being awarded for being the first to ask questions that are simple to solve with a few hours work.
We agree on the sad state of software patents right now, but it seems that there is some movement against it.
Now if govenerments actually posted money into basic R&D in collaboration with the private sector on the premises that the work will be public domain, this might not be a problem, but when they pay for it themself, it's foolish to belive they want to share in this market economy. I could see a model where all e.g. car manufactures collaborate on creating an ECU software company, they all pay to, but it requires ALL manufactures to participate, otherwise someone enter the party, without paying the entrance fee. It's a classic prisoners dilemma - if all play nicely, it's a net benefit for all of them, but if one doesn't it's a net loss for all.
I would like a "Rights of ownership" define access to the source code, I just cannot see how.