Package: lintian
Version: 2.18.0
Severity: wishlist

The Lintian reports for gnome-documents and gnome-sound-recorder say that
#!/usr/bin/gjs-console is an unusual interpreter.

Before I researched this, I had assumed that gjs preloaded GTK or some
other X11-related library and gjs-console didn't, but actually they
are equivalent: gjs-console is the original name for /usr/bin/gjs,
which is just a symlink. I don't think there is any particular
reason to prefer one over the other: the symlink was added in
https://bugzilla.gnome.org/show_bug.cgi?id=584560 to make it slightly
easier for developers to start an interactive REPL for gjs.

I believe the attached patch is correct.

    smcv
>From c97dc433809297b5690905db1018200041d16001 Mon Sep 17 00:00:00 2001
From: Simon McVittie <s...@debian.org>
Date: Sat, 17 Aug 2019 17:27:19 +0100
Subject: [PATCH] interpreters: Add gjs-console

Signed-off-by: Simon McVittie <s...@debian.org>
---
 data/scripts/interpreters | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/scripts/interpreters b/data/scripts/interpreters
index fe7ec46e6..68deba8c3 100644
--- a/data/scripts/interpreters
+++ b/data/scripts/interpreters
@@ -41,6 +41,7 @@ gbx            => /usr/bin, gambas-runtime
 gbx2           => /usr/bin, gambas2-runtime
 gforth         => /usr/bin
 gjs            => /usr/bin
+gjs-console    => /usr/bin, gjs
 gnuplot        => /usr/bin
 gosh           => /usr/bin, gauche
 hhvm           => /usr/bin
-- 
2.23.0.rc1

Reply via email to