GNOME Bugzilla – Bug 641477
glib-mkenums uses unportable #! line
Last modified: 2011-02-08 04:28:42 UTC
Created attachment 180071 [details] [review] Use "use warnings;" instead of "-w". glib-mkenums.in currently starts with: #!@PERL_PATH@ -w The problem with this is that PERL_PATH can expand to "/usr/bin/env perl", which results in a #! line with more than one argument. That results in this kind of error when you run the script, several examples of which can be found with a quick web search: /usr/bin/env: perl -w: No such file or directory An easy fix is to say "use warnings;" instead of using -w. Patch attached. Thanks, Adam