European Union governments have rubber-stamped controversial software patent rules despite strong opposition.

A meeting of EU ambassadors on Wednesday evening agreed to formally endorse a deal reached by member state governments in May of this year. The decision will come as a blow to opponents of the new legislation among the open source software community who argue that the rules would allow the patenting of software. For approval, the legislation still must be referred back to the European Parliament (EP), which includes many supporters of open source software.

If members of Parliament, or MEPs, reject the agreement, the two sides have to find a compromise, which may end up being closer to the open source software lobby’s position.

A spokesman for the Dutch Presidency of the EU, which is chairing meetings until December 31, said: “Everyone realized that (the legislation) is not going to work if we change position now,” adding, "It’s a complex agreement and different positions have been taken into account. It’s in no way an extreme agreement.”

Not everyone is pleased with the legislation. "It's a piece of junk," said Hartmut Pilch, president of the Foundation for Free Information Infrastructure. "What they have passed is something nobody stands behind."

A slim majority of the 25 member states approved the May agreement and several countries only supported a compromise drawn up by the-then Irish Presidency because they believed that it excluded pure software from being patented.

Since then, the Polish government indicated it could no longer support the Irish proposal it agreed to in May, saying it was not happy with the wording of the text and problems its implementation might cause. Poland withdrawing its support at this stage would eliminate the compromise's majority and force the EU to draft new legislation, setting the whole process back at least a year.

Poland is understood to have come under severe political pressure not to undermine the proposal at this stage.

"Whatever concerns Poland has about the language, they support patenting for computer-implemented inventions, not patenting of software. By letting it (the legislation) go to the second stage they can make sure that their concerns are addressed," said Mark MacGann, director general of the European Industry Association for Information Technology, Consumer Electronics.

Hungary, Latvia and the Netherlands also made declarations with the Hague’s ambassador noting that the Dutch Parliament had concerns about the legislation.

The directive will be sent to the EP for its second reading under the EU’s codecision process, which gives the EP equal powers to the Council of Ministers.

Last year, however, MEPs took a strongly diverging line to the Council and drastically restricted the scope of inventions that could be patented to prevent the rules from covering software.

Meanwhile, support for the open source community’s arguments against the legislation grows with calls coming from all German political parties - including the normally pro-business center-right and Liberals - for the rules to exclude software patents. The rules could have an even rougher ride from MEPs next year when they are debated in Parliament.

"This is a very positive step, but a lot more work needs to be done," MacGann said.