GNOME Bugzilla – Bug 791927
Using '#!/usr/bin/perl' in scripts is not portable
Last modified: 2017-12-25 04:27:46 UTC
gdk/broadway/toarray.pl hard-codes the path to perl by using '#!/usr/bin/perl -w', which won't work on FreeBSD because perl is not part of the base system and cannot be installed in /usr/bin. [1/1265] Generating clienthtml.h with a meson_exe.py custom command. FAILED: gdk/broadway/clienthtml.h /usr/local/bin/python3 /home/lantw44/gnome/devinstall/bin/meson --internal exe /home/lantw44/gnome/build/gtk+/meson-private/meson_exe_toarray.pl_0427a21cf428aa92ea814428487b41eff9ccfdb5.dat Traceback (most recent call last):
+ Trace 238286
sys.exit(main())
return mesonmain.run(sys.argv[1:], launcher)
sys.exit(run_script_command(args[1:]))
return cmdfunc(cmdargs)
return run_exe(exe)
p, stdout, stderr = Popen_safe(cmd + exe.cmd_args, env=child_env, cwd=exe.workdir)
stderr=stderr, **kwargs)
restore_signals, start_new_session)
raise child_exception_type(errno_num, err_msg, err_filename)
ninja: build stopped: subcommand failed.
Created attachment 365940 [details] [review] gdk/broadway/toarray.pl: Don't hard-code the path of perl
Review of attachment 365940 [details] [review]: Looks good to me, and it's in line with the other scripts. Of course, I'd also accept a rewrite of the script in Python ;-)
Attachment 365940 [details] pushed as 5f8e2fc - gdk/broadway/toarray.pl: Don't hard-code the path of perl