From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#29219: CUPS filter still can't access Ghostscript (gs) Date: Fri, 10 Nov 2017 13:22:39 +0100 Message-ID: <871sl6migg.fsf@gnu.org> References: <87efp8fqab.fsf@gmail.com> <87r2t7q0t5.fsf@gnu.org> <87a7zvfefe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eD8Kw-0000h6-ES for bug-guix@gnu.org; Fri, 10 Nov 2017 07:23:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eD8Ks-0004I1-89 for bug-guix@gnu.org; Fri, 10 Nov 2017 07:23:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52833) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eD8Ks-0004Hk-2n for bug-guix@gnu.org; Fri, 10 Nov 2017 07:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eD8Kr-0006OU-Ox for bug-guix@gnu.org; Fri, 10 Nov 2017 07:23:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87a7zvfefe.fsf@gmail.com> (Mekeor Melire's message of "Thu, 09 Nov 2017 20:19:17 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Mekeor Melire Cc: 29219@debbugs.gnu.org Hi Mekeor, Mekeor Melire skribis: > Ludovic Court=C3=A8s writes: > >> Mekeor Melire skribis: > >>> But although I was expecting commit >>> 1728c411718e3b358c06561d6e80b47d7b331617=C2=B9 to fix this issue, when = I try >>> the ljet4=C2=B2 driver, I still get this error in /var/log/cups/error_l= og=C2=B3: > >>> sh: gs: command not found >>> Process is dying with \"Unable to determine number of pages, page c= ount: -1 >>> \", exit stat 3 > >> Just make sure to reconfigure from a recent-enough commit (run =E2=80=98= guix >> --version=E2=80=99 as root to see which commit you=E2=80=99re using.) > > Done. I'm running a recent-enough commit. (Namely > 46dea1241c801af5aa65e0c7b4e84bb0aff11273.) > >> If it turns out you=E2=80=99re already using CUPS with commit >> 1728c411718e3b358c06561d6e80b47d7b331617, could you reproduce the issue >> while running =E2=80=9Cstrace -p PID -f -s 345 -o log=E2=80=9D, where PI= D is the PID of >> cupsd as shown by =E2=80=98herd status cups=E2=80=99? > > You can find the log here: . These might be the > interesting lines: > > $ grep -E '[^a-zA-Z0-9]gs' log > 31377 execve("/gnu/store/=E2=80=A6-bash-static-4.4.12/bin/sh", ["sh",= "-c", "gs -dNODISPLAY -q -c '/pdffile (/var/spool/cups/tmp/foomatic-4ngnEr= ) (r) file def pdfdict begin pdffile pdfopen begin (PageCount: ) print pdfp= agecount =3D=3D flush currentdict pdfclose end end quit'"], 0x149e810 /* 33= vars */ > 31377 stat("/gnu/store/=E2=80=A6-cups-server-bin/lib/cups/filter/gs",= 0x7ffd7921b5c0) =3D -1 ENOENT (No such file or directory) > 31377 stat("/gnu/store/=E2=80=A6-cups-2.2.4/bin/gs", 0x7ffd7921b5c0) = =3D -1 ENOENT (No such file or directory) > 31377 stat("/gnu/store/=E2=80=A6-cups-2.2.4/sbin/gs", 0x7ffd7921b5c0)= =3D -1 ENOENT (No such file or directory) > 31377 stat("/bin/gs", 0x7ffd7921b5c0) =3D -1 ENOENT (No such file o= r directory) > 31377 stat("/usr/bin/gs", 0x7ffd7921b5c0) =3D -1 ENOENT (No such file= or directory) > 31377 write(2, "sh: gs: command not found\n", 26) =3D 26 > 15154 <... read resumed> "sh: gs: command not found\n", 2047) =3D 26 > 15154 write(4, "D [09/Nov/2017:20:06:50 +0100] [Job 13] sh: gs: comma= nd not found\n", 66) =3D 66 > > Thank you for your help! How could we continue debugging? IIUC, process 31377 is started by cupsd itself. Commit 1728c411718e3b358c06561d6e80b47d7b331617 wrapped the cups-filters programs but not cupsd itself. Perhaps we need to wrap cupsd similarly? Could you grep the source of cups itself to see if it contains this =E2=80= =98gs=E2=80=99 invocation? In the meantime, can you try adding ghostcript to your system profile? That should work around the problem. Thanks, Ludo=E2=80=99.