GNU bug report logs - #73392
[PATCH v2 0/2] SANE: fix a locking bug for plustek backend

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: neox <neox@HIDDEN>; Keywords: patch; merged with #73391, #73393, #73406; dated Fri, 20 Sep 2024 19:05:03 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Changed bug title to '[PATCH v2 0/2] SANE: fix a locking bug for plustek backend' from '[PATCH 1/2] gnu: sane-backends-minimal: fix lock path for plustek backend' Request was from Adrien 'neox' Bourmault <neox@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 73391 73392 73393 73406. Request was from Adrien 'neox' Bourmault <neox@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Disconnected #73393 from all other report(s). Request was from Adrien 'neox' Bourmault <neox@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Disconnected #73406 from all other report(s). Request was from Adrien 'neox' Bourmault <neox@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 73391 73392 73393 73406. Request was from Adrien 'neox' Bourmault <neox@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Disconnected #73393 from all other report(s). Request was from Adrien 'neox' Bourmault <neox@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Disconnected #73406 from all other report(s). Request was from Adrien 'neox' Bourmault <neox@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 73391 73392 73393 73406. Request was from Adrien 'neox' Bourmault <neox@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 73391 73392 73393. Request was from Adrien 'neox' Bourmault <neox@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 73392 <at> debbugs.gnu.org:


Received: (at 73392) by debbugs.gnu.org; 20 Sep 2024 19:22:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 20 15:22:11 2024
Received: from localhost ([127.0.0.1]:36384 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1srjCl-0006vi-19
	for submit <at> debbugs.gnu.org; Fri, 20 Sep 2024 15:22:11 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53478)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <neox@HIDDEN>)
 id 1srjCj-0006vN-3d; Fri, 20 Sep 2024 15:22:09 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <neox@HIDDEN>)
 id 1srjCK-00045H-Kl; Fri, 20 Sep 2024 15:21:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:To:From:
 Subject; bh=9x/L8V8qoY6KDwKr2BBOpwINL2gwHoL9ZM1PP6Dc/o4=; b=Ns1IvJ3tVjy8bvoHD
 qPOfOAxoZtvU5MYSizklcHNVkZtNupAiAiQRx/TOGPowFaRhmeRKG37nW6Sjibh9d9cMUndWqQdf8
 5DhrEn+b51Lj0uI8Ez0SwRQ/Yfj0W34ARNV1vNIE6gA84CYcxIJ7xRabETvPmnlneYU0LFFhkLsP0
 MwtuzS09QrbsStV1e/2QilxDwoG9uTGeiHsOTpFmIaFqSsejOQrQPKh8qvLee0pXAfxvGllPiqjf7
 M/nTC7BG6M1QzKkJPY75ibmF1qBYe4aneEnN9bszDT+7sSc42myshZcHeZM5Sm+9G6ZQJe4T0FxyI
 yuGR8LgImq9Dtur0g==;
Message-ID: <b6a589d6a295e755f40b9d6f9cff1e2815248626.camel@HIDDEN>
Subject: Re: bug#73392: Acknowledgement ([PATCH 1/2] gnu:
 sane-backends-minimal: fix lock path for plustek backend)
From: Adrien 'neox' Bourmault <neox@HIDDEN>
To: 73392 <at> debbugs.gnu.org, 73393 <at> debbugs.gnu.org
Date: Fri, 20 Sep 2024 21:21:43 +0200
In-Reply-To: <handler.73392.B.172685906722683.ack <at> debbugs.gnu.org>
References: <5c51a9beba46c7f611fe90cc824f0fcbf2505600.1726827449.git.neox@HIDDEN>
 <handler.73392.B.172685906722683.ack <at> debbugs.gnu.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.48.4 
MIME-Version: 1.0
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73392
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi, please close as this is a duplicate of #73391 due to a
misconfiguration on my part. Thanks a lot and sorry about this.




Information forwarded to guix-patches@HIDDEN:
bug#73392; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2024 19:04:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 20 15:04:27 2024
Received: from localhost ([127.0.0.1]:36360 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1srivb-0005tm-7M
	for submit <at> debbugs.gnu.org; Fri, 20 Sep 2024 15:04:27 -0400
Received: from lists.gnu.org ([209.51.188.17]:45244)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <neox@HIDDEN>) id 1srivX-0005tZ-Fx
 for submit <at> debbugs.gnu.org; Fri, 20 Sep 2024 15:04:23 -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 <neox@HIDDEN>) id 1srivE-0003fM-25
 for guix-patches@HIDDEN; Fri, 20 Sep 2024 15:04:04 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <neox@HIDDEN>)
 id 1srivD-0001kB-Ka; Fri, 20 Sep 2024 15:04:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To:
 From; bh=SITGMNM4yvBpT3NOZxg/2/N8fzJeArlYlkpvQs89/js=; b=keFl1TaQYR8iyB0js/7o
 o2bySTqWsBoN9HQ8IKt6qwUySMz7cbK00harplHcWPSzAItj1/Xz2BMBZ/mOKddYr/eMvDSbFo2pi
 IW04af32ZZffagKlFC57/G2vTG2U1cC8xbRksW87jGkI/LQiuua7JzsxGC+g6jAePoAiLY5qu05FT
 JMxZijEJiIlvF6diWvMqWbXmGlF5WFF+yDFSIJj6eJAkfkDxSA2jBzyDN/MwAxR9OvzTrQ/hPPTjq
 46N82KzhczWwq2r1EW6MROwJOmXpcPuF7pLmUsDsaI2WO0s1+VLd+Ftm7HpYyFvwQjHjSclwOROjT
 kOkfqTZjjOFVrw==;
From: neox <neox@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH 1/2] gnu: sane-backends-minimal: fix lock path for plustek
 backend
Date: Fri, 20 Sep 2024 21:03:32 +0200
Message-ID: <5c51a9beba46c7f611fe90cc824f0fcbf2505600.1726827449.git.neox@HIDDEN>
X-Mailer: git-send-email 2.46.0
In-Reply-To: <cover.1726827449.git.neox@HIDDEN>
References: <cover.1726827449.git.neox@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
Cc: Adrien 'neox' Bourmault <neox@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

From: Adrien 'neox' Bourmault <neox@HIDDEN>

* gnu/packages/scanner.scm (sane-backends-minimal)
[arguments]<#:configure-flags>: add "--with-lockdir=/var/lock/sane"
[arguments]<#:phases>: add disable-lockdir-creation to prevent creating the
 lockpath during install

Change-Id: I338c16cd4c0bfa0d165c9906b0f1f87ab79a4f75
Signed-off-by: Adrien 'neox' Bourmault <neox@HIDDEN>
---
 gnu/packages/scanner.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm
index a2faaa2728..a20d27ad2a 100644
--- a/gnu/packages/scanner.scm
+++ b/gnu/packages/scanner.scm
@@ -136,7 +136,8 @@ (define-public sane-backends-minimal
     (inputs
      (list libusb))
     (arguments
-     `(#:phases
+     `(#:configure-flags '("--with-lockdir=/var/lock/sane") ;; Avoid errors with plustek
+       #:phases
        (modify-phases %standard-phases
          (add-before 'bootstrap 'zap-unnecessary-git-dependency
            (lambda _
@@ -145,6 +146,12 @@ (define-public sane-backends-minimal
                (("/bin/sh") (which "sh")))
              (with-output-to-file ".tarball-version"
                (lambda _ (format #t ,version)))))
+         (add-before 'configure 'disable-lockdir-creation
+           (lambda _
+             ;; Modify the Makefile.am to prevent the creation of the lock dir
+             (substitute* "backend/Makefile.am"
+               (("^install-lockpath:.*$")
+                "install-lockpath: # pass"))))
          (add-before 'configure 'disable-backends
            (lambda _
              (setenv "BACKENDS" " ")
-- 
2.46.0





Acknowledgement sent to neox <neox@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#73392; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.