From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SIb5CjinuWTDPwEASxT56A (envelope-from ) for ; Thu, 20 Jul 2023 23:29:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CMjUCjinuWT9bwAA9RJhRA (envelope-from ) for ; Thu, 20 Jul 2023 23:29:28 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E0768598A3 for ; Thu, 20 Jul 2023 23:29:27 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=I084FjWq; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689888568; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=xRjzTDmaGs5qDzB/W0IjSkQ1NrZWsnnFkK7DOIeaoeU=; b=CroyW8BgUj8Wz/kHtmwLgR+e1d3QTBL4EpGVRFFcY+9VVX3m9RUgjJAEUshU8L2dltk9q4 H9VdYcXBtwM54Pz5pjnZ6xDZWfR2VTkeuvFouqZw5C0AMgBnPUFbVFkNbSTL5lwLir68vW qPbtRJifOeggRoJ20jD1j+hvx61WCuJGwBOGxOTg/QPtbXxwoENTptGo1TlCFBip98PWbd WPTw6YN2Vd5mo8sAzMquiJeCcE6yfrhf28PVjQwYKxWylCv2t3obG1Y2SdzWalkYz6jyjc 9kZ3Yn9kXqVfFN1lwJgqUrB7wORYB0z6S/i/OjMAGp7p8+12miPwdBkUnXkRuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=I084FjWq; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689888568; a=rsa-sha256; cv=none; b=YF4VM8cP6zqTJ4Zhi8N7U8UmbdJN0LvrEYORhb3d4JlN2d1MfTqAdDMTmwW1WHJaWnm4VP NdK+7esqy2nD3BBIGjapk9w2zFJ0f+toB8V6In/GKm61LOFmaFQ8sUaCbGPt9HCrvu3iLV 8JL1VkCaetiQRr+Q4AXKOc7x84p+yiN4nemBFm777pZs2o5xZ88ogywGI1s7+JcEFWIVHd ic7ZCv3WMiOaR4gzDbV/LPH/Ytkp6hqbp/i6XuT9l+fvm0h9wOTCf45WJji1+mX5qY9mLm I2P0K6Ek04Ls7lqdBvhVLCfFgEQHW61Kmz5yOi+7nv01xjtOlu8SIT0owMH5yQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMbCr-0000NG-25; Thu, 20 Jul 2023 17:29:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMbCp-0000Mj-Kb for bug-guix@gnu.org; Thu, 20 Jul 2023 17:29:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMbCo-0003al-Ge for bug-guix@gnu.org; Thu, 20 Jul 2023 17:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMbCo-0001s8-Ck for bug-guix@gnu.org; Thu, 20 Jul 2023 17:29:02 -0400 Subject: bug#64741: CUPS: fix the PATH settings for filters Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 20 Jul 2023 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64741 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Emmanuel Beffara Cc: 64741-done@debbugs.gnu.org Mail-Followup-To: 64741@debbugs.gnu.org, maxim.cournoyer@gmail.com, manu@beffara.org Received: via spool by 64741-done@debbugs.gnu.org id=D64741.16898885197164 (code D ref 64741); Thu, 20 Jul 2023 21:29:02 +0000 Received: (at 64741-done) by debbugs.gnu.org; 20 Jul 2023 21:28:39 +0000 Received: from localhost ([127.0.0.1]:60123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMbCR-0001rU-DV for submit@debbugs.gnu.org; Thu, 20 Jul 2023 17:28:39 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:45081) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMbCO-0001rE-Ko for 64741-done@debbugs.gnu.org; Thu, 20 Jul 2023 17:28:37 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-634f59e7d47so10004406d6.2 for <64741-done@debbugs.gnu.org>; Thu, 20 Jul 2023 14:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689888510; x=1690493310; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=xRjzTDmaGs5qDzB/W0IjSkQ1NrZWsnnFkK7DOIeaoeU=; b=I084FjWq05IDAIQzppdHhoXaMk7xWA27FWjjQdSa+gYx31HklH92h8tQIjKY3m/K8u +/DIgCmYbk5L6YB9u1AyYzqHL2D5MIfv1G5qz1pTPvnbEBrEJfzNAWnn4dHgN0lWUnsQ VPUS87T6Lsz5UkUKULXTgBnzbqer8gO/jbQrVbIiDIoULb3uSXzewuZys5HdTu1xYceb ozuE+IHPT5/e3eyomU8SP3EftVVKSRpoEWkJLwN7GwYoIDqfux5oupH7lBl68D0y9Mm+ nptLRStFZ0ppXfPqSOHB6+si/Py2160dayA4WaVBO3Arbja0blE/ZnZfONC6Af3CDmAi 9kgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689888510; x=1690493310; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xRjzTDmaGs5qDzB/W0IjSkQ1NrZWsnnFkK7DOIeaoeU=; b=PC1o1OI/6VSt3y6jumMSgKe2N/iQZNF9B7RTLFOKcxqdosXHr7EYaK+1C1/EcvgOrs 5V8++YaLXCzkuFg7kmjus+i2U8OdgBKxF9Kxhg8dUXgg4GkfCrtPNPJ6Wxj0S9ZVv+8e bn2maYWvp0dcn7exoYK0Ikbm0oiWzLwo42PCQmUUoGodilV325nRSwB6ASI0pvVKI6hW qYLXPLxMUFrezhyLZVR8WBeIgUptTkvJ5L2L1YbmQuIvWzUhBMh3lMOxgx1mRJqMTKgn qRmveb43MQSICJXi8L01C2el5xJIEFqy8mJgFwmgtJaAX6nsTBhAqx/uWI9u5WUp9JJt aYew== X-Gm-Message-State: ABy/qLaEXxUcZ+8K4zygj6r7KVod2xfihDYldlc++JnfQwg/CNz+Xa4F BC/g8SCO+xDHvNDXM5Gewl0z5gg+sqg= X-Google-Smtp-Source: APBJJlHj1IhXRnLxXtLPYMDWF/j0o4Q9opsZUJFLda8K5BySt8BIjoz9YqE5KynXnSucuOULL3cr8g== X-Received: by 2002:a0c:f689:0:b0:636:60c6:203d with SMTP id p9-20020a0cf689000000b0063660c6203dmr281767qvn.35.1689888510528; Thu, 20 Jul 2023 14:28:30 -0700 (PDT) Received: from hurd (dsl-159-145.b2b2c.ca. [66.158.159.145]) by smtp.gmail.com with ESMTPSA id g15-20020a0ce4cf000000b00637abbfaac9sm740990qvm.98.2023.07.20.14.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 14:28:30 -0700 (PDT) From: Maxim Cournoyer References: <20230720103248.GB1092@beffara.org> Date: Thu, 20 Jul 2023 17:28:29 -0400 In-Reply-To: <20230720103248.GB1092@beffara.org> (Emmanuel Beffara's message of "Thu, 20 Jul 2023 10:32:48 +0200") Message-ID: <874jlyl1c2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: 2.85 X-Migadu-Queue-Id: E0768598A3 X-Migadu-Spam-Score: 2.85 X-Migadu-Scanner: mx0.migadu.com X-TUID: uYFcYmInPyIQ Hello, Emmanuel Beffara writes: > Hello, > > I would like to propose the attached patch for the `cups-filters` package. The > point is to add the paths for `coreutils` and `sed` to the PATH setting in the > wrapper scripts so that the filters can find them. Maybe other packages should > be added, at least this patch fixes the issue I was facing. > > About my specific case: I want to use the printing service of my university, > an instance of PaperCut. This is as simple as setting an LPD queue at the > right address with the PPD printer driver provided by the university (a Ricoh > IM C5500 PS in my case, if that makes any difference). After switching to Guix > system a few months ago, this stopped working: print jobs were sent with no > error message but they all appeared as 1 page in PaperCut and nothing actually > came out of the printers. I finally took the time to explore the logs and it > appears that CUPS at some point calls `foomatic-rip` and that this filter > fails, as shown in these extracts from `/var/log/cups/error_log`: > > ``` > I [18/Jul/2023:16:34:10 +0200] [Job 12] Started filter > /gnu/store/nhjpc32034v6186v37l51j0z2jq8xlkm-cups-server-bin/lib/cups/filter/foomatic-rip > (PID 27451) > [...] > D [18/Jul/2023:16:34:21 +0200] [Job 12] Starting process \"renderer\" > (generation 2) > D [18/Jul/2023:16:34:21 +0200] [Job 12] JCL: \033%-12345X@PJL > D [18/Jul/2023:16:34:21 +0200] [Job 12] > D [18/Jul/2023:16:34:21 +0200] [Job 12] > /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash: > line 5: date: command not found > D [18/Jul/2023:16:34:21 +0200] [Job 12] > /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash: > line 5: sed: command not found > D [18/Jul/2023:16:34:21 +0200] [Job 12] > /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash: > line 5: date: command not found > D [18/Jul/2023:16:34:21 +0200] [Job 12] > /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash: > line 5: sed: command not found > D [18/Jul/2023:16:34:21 +0200] [Job 12] > /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash: > line 5: cat: command not found > D [18/Jul/2023:16:34:21 +0200] [Job 12] renderer exited with status > 127 > D [18/Jul/2023:16:34:21 +0200] [Job 12] Process is dying with > \"Encountered error Broken pipe during fwrite\", exit stat 1 > [...] > D [18/Jul/2023:16:34:21 +0200] [Job 12] PID 27451 > (/gnu/store/nhjpc32034v6186v37l51j0z2jq8xlkm-cups-server-bin/lib/cups/filter/foomatic-rip) > stopped with status 1. > ``` > > So `foomatic-rip` actually needs `date`, `sed` and `cat` but does not find > them. The issue with required tools is known in Guix because the package > definition for `cups-filters` already adds paths for `ghostscript-with-cups` > and `grep`. The patch just adds necessary inputs for those, and it makes > printing work for me. I don't know what other tools the filters might require > in other situations. That sounds reasonable. > On a different level, I am surprised that the failure above does not lead to > an actual user-visible error by CUPS. A corrupted job is actually sent > silently (probably with some error messages mixed with the printing job or > with malformed printing commands) although the filter does return an error > code. Maybe this should be sent upstream as a CUPS bug? That's indeed surprising. I'd encourage you to try to reach out to upstream with the problem, if that's feasible for you. I've installed the change to the recently reintroduced core-updates branch. Bonus points next time if you write a GNU ChangeLog style commit message to go along with it! -- Thanks, Maxim