The pancake box could be used to mount the light fixture, but it would be much easier to use a surface mount 4" round weatherproof box. They cost around $5.
Again, the electrician that did the original installation should pay to have this fixed, not you.