From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mekeor Melire Subject: bug#29219: CUPS filter still can't access Ghostscript (gs) Date: Thu, 09 Nov 2017 20:19:17 +0100 Message-ID: <87a7zvfefe.fsf@gmail.com> References: <87efp8fqab.fsf@gmail.com> <87r2t7q0t5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCsMw-0000zx-RS for bug-guix@gnu.org; Thu, 09 Nov 2017 14:20:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCsMs-00080J-D0 for bug-guix@gnu.org; Thu, 09 Nov 2017 14:20:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52126) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eCsMs-00080A-9b for bug-guix@gnu.org; Thu, 09 Nov 2017 14:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eCsMs-0004PE-1V for bug-guix@gnu.org; Thu, 09 Nov 2017 14:20:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87r2t7q0t5.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 29219@debbugs.gnu.org Ludovic Courtès writes: > Mekeor Melire skribis: >> But although I was expecting commit >> 1728c411718e3b358c06561d6e80b47d7b331617¹ to fix this issue, when I try >> the ljet4² driver, I still get this error in /var/log/cups/error_log³: >> sh: gs: command not found >> Process is dying with \"Unable to determine number of pages, page count: -1 >> \", exit stat 3 > Just make sure to reconfigure from a recent-enough commit (run ‘guix > --version’ as root to see which commit you’re using.) Done. I'm running a recent-enough commit. (Namely 46dea1241c801af5aa65e0c7b4e84bb0aff11273.) > If it turns out you’re already using CUPS with commit > 1728c411718e3b358c06561d6e80b47d7b331617, could you reproduce the issue > while running “strace -p PID -f -s 345 -o log”, where PID is the PID of > cupsd as shown by ‘herd status cups’? You can find the log here: . These might be the interesting lines: $ grep -E '[^a-zA-Z0-9]gs' log 31377 execve("/gnu/store/…-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 pdfpagecount == flush currentdict pdfclose end end quit'"], 0x149e810 /* 33 vars */ 31377 stat("/gnu/store/…-cups-server-bin/lib/cups/filter/gs", 0x7ffd7921b5c0) = -1 ENOENT (No such file or directory) 31377 stat("/gnu/store/…-cups-2.2.4/bin/gs", 0x7ffd7921b5c0) = -1 ENOENT (No such file or directory) 31377 stat("/gnu/store/…-cups-2.2.4/sbin/gs", 0x7ffd7921b5c0) = -1 ENOENT (No such file or directory) 31377 stat("/bin/gs", 0x7ffd7921b5c0) = -1 ENOENT (No such file or directory) 31377 stat("/usr/bin/gs", 0x7ffd7921b5c0) = -1 ENOENT (No such file or directory) 31377 write(2, "sh: gs: command not found\n", 26) = 26 15154 <... read resumed> "sh: gs: command not found\n", 2047) = 26 15154 write(4, "D [09/Nov/2017:20:06:50 +0100] [Job 13] sh: gs: command not found\n", 66) = 66 Thank you for your help! How could we continue debugging? -- mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868