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

Previous Next

Package: guix-patches;

Reported by: neox <neox <at> gnu.org>

Date: Fri, 20 Sep 2024 19:05:03 UTC

Severity: normal

Tags: patch

Merged with 73391, 73393, 73406

To reply to this bug, email your comments to 73392 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#73392; Package guix-patches. (Fri, 20 Sep 2024 19:05:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to neox <neox <at> gnu.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 20 Sep 2024 19:05:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: neox <neox <at> gnu.org>
To: guix-patches <at> gnu.org
Cc: Adrien 'neox' Bourmault <neox <at> gnu.org>
Subject: [PATCH 1/2] gnu: sane-backends-minimal: fix lock path for plustek
 backend
Date: Fri, 20 Sep 2024 21:03:32 +0200
From: Adrien 'neox' Bourmault <neox <at> gnu.org>

* 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 <at> gnu.org>
---
 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





Information forwarded to guix-patches <at> gnu.org:
bug#73392; Package guix-patches. (Fri, 20 Sep 2024 19:23:01 GMT) Full text and rfc822 format available.

Message #8 received at 73392 <at> debbugs.gnu.org (full text, mbox):

From: Adrien 'neox' Bourmault <neox <at> gnu.org>
To: 73392 <at> debbugs.gnu.org, 73393 <at> debbugs.gnu.org
Subject: Re: bug#73392: Acknowledgement ([PATCH 1/2] gnu:
 sane-backends-minimal: fix lock path for plustek backend)
Date: Fri, 20 Sep 2024 21:21:43 +0200
Hi, please close as this is a duplicate of #73391 due to a
misconfiguration on my part. Thanks a lot and sorry about this.




Merged 73391 73392 73393. Request was from Adrien 'neox' Bourmault <neox <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 20 Sep 2024 20:03:01 GMT) Full text and rfc822 format available.

Merged 73391 73392 73393 73406. Request was from Adrien 'neox' Bourmault <neox <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 21 Sep 2024 08:07:02 GMT) Full text and rfc822 format available.

Disconnected #73406 from all other report(s). Request was from Adrien 'neox' Bourmault <neox <at> a-lec.org> to control <at> debbugs.gnu.org. (Sat, 21 Sep 2024 08:38:02 GMT) Full text and rfc822 format available.

Disconnected #73393 from all other report(s). Request was from Adrien 'neox' Bourmault <neox <at> a-lec.org> to control <at> debbugs.gnu.org. (Sat, 21 Sep 2024 08:38:03 GMT) Full text and rfc822 format available.

Merged 73391 73392 73393 73406. Request was from Adrien 'neox' Bourmault <neox <at> a-lec.org> to control <at> debbugs.gnu.org. (Sat, 21 Sep 2024 08:38:03 GMT) Full text and rfc822 format available.

Disconnected #73406 from all other report(s). Request was from Adrien 'neox' Bourmault <neox <at> a-lec.org> to control <at> debbugs.gnu.org. (Sat, 21 Sep 2024 17:00:02 GMT) Full text and rfc822 format available.

Disconnected #73393 from all other report(s). Request was from Adrien 'neox' Bourmault <neox <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 21 Sep 2024 21:46:02 GMT) Full text and rfc822 format available.

Merged 73391 73392 73393 73406. Request was from Adrien 'neox' Bourmault <neox <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 21 Sep 2024 22:58:02 GMT) Full text and rfc822 format available.

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 <at> a-lec.org> to control <at> debbugs.gnu.org. (Sun, 22 Sep 2024 08:53:02 GMT) Full text and rfc822 format available.

This bug report was last modified 271 days ago.

Previous Next


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