After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 641477 - glib-mkenums uses unportable #! line
glib-mkenums uses unportable #! line
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gobject
2.26.x
Other Linux
: Normal minor
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-02-04 11:19 UTC by Adam Sampson
Modified: 2011-02-08 04:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use "use warnings;" instead of "-w". (483 bytes, patch)
2011-02-04 11:19 UTC, Adam Sampson
none Details | Review

Description Adam Sampson 2011-02-04 11:19:51 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