kthakore / frozen-bubble

Making frozen bubble cross platform
http://frozen-bubble.org
GNU General Public License v2.0
149 stars 33 forks source link

Remove call to deprecated POSIX::tmpnam (perl 26) #66

Closed dod38fr closed 7 years ago

dod38fr commented 7 years ago

This patch replaces the call to POSIX::tmpnam with a call to File::Temp. This call is deprecated and will break with perl 26.

File::Temp object handles file cleanup when the object is destroyed, so the call to unlink($filename) is no longer needed.

While I was at it, I've replaced a call to POSIX::_exit with good old die, so frozen-bubble no longer depends on POSIX.

This patch also fixes debian bug #866321 and will be shortly applied to Debian version of frozen-bubble.

Instructions to test this patch are shown there

All the best

FROGGS commented 7 years ago

Thank you very much Dominique.