Traditional foreign aid has the same dependency-inducing effects that welfare has within countries. That question is based on the seemingly obvious premise that we will, in fact, someday run out of oil. Ridiculous as it might sound, there is no real reason to assume that we will run out of fossil fuels, at least not before we switch to a better alternative. Fossil fuel supplies are not what really should concern us. Rather, what we actually care about and need is energy.
Fossil fuels are just one of countless sources of energy.
For example, someday we are bound to invent ways to economically divide water into oxygen and hydrogen. When you burn hydrogen the by-product is water, not carbon dioxide. One reason is that our stock of knowledge will continue to grow. Another reason is that necessity is the mother of invention. When the price of a resource rises, it increases the incentive to invent substitutes.