Spain's Ebro Foods is to buy the pasta business of Canada Bread, the Canadian group that could be set for a change in ownership.