From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2KCjEDZ+7mYz5AAA62LTzQ:P1 (envelope-from ) for ; Sat, 21 Sep 2024 08:05:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2KCjEDZ+7mYz5AAA62LTzQ (envelope-from ) for ; Sat, 21 Sep 2024 10:05:10 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=up9UcU1L; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=aYe2oUBK; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726905910; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: 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=SGIX3lKzdvIsn4XzV4xaeCZ/n0iY37uv9n0DhTSWRQw=; b=Np3HKKi1PnYEgDAuLgYYlwkWueHf/LBwu1A4gQhl9e+x55TIShF/tis7eoW+T1U9rpjyzj 3afjPVMk5OvtKSSiT4xjgwkJo6l7YGUPTo7RSRHblaUeERPJayejfoY5WRy7LYBXjb7u0X MbmydQQMpKll6LDsFAL8AfPf4goFDR83cUUz1ZlYSalITktz921NGCWCWwQwSW7F28kv9i PDS6/1440BFCuloBCECdi8C1Zllq4jLMYTpWq4047IFcUWvjx1n9qYTOiuQQxgPyudpytp CIemWhvY4bwgHMHeYsyMry2ar1mftcMJvGPP+0wfdq6xBIwMLGUYS7aZ6VO1LQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=up9UcU1L; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=aYe2oUBK; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726905910; a=rsa-sha256; cv=none; b=SvIZ4QwCPqRkwj+REaNIknO/Uc+m0vvUQfSVwSNBo9cTYfdvbp9l2JIHq7YVNgfb0MQ4Nd TT/+YxOfGjhgONtxYt0XnfzDqxgRcblIZNF+G328GOHsOPtzUfQ/w1ciGJBPnTiaGfPF+P qAgSXDQUbfCm3jhLqWoIgWkcD8D/rAtGvnpfhOzdqHpQ7rLge2hqxzJTcWSja9J/1zz6Pl CZ3N0arCskCvbbSuxtRezYrUx0KzzEFA2BYFH8A/RZO3cuYRdcNhfo1wOd6/TzHEvo4qGi AQ8UtZfpcllBZyWg+33dfUlxYd6+sry6wSW1EVWQHj4sXa+FjaaNRDuJ+HojYg== 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 CC1D37F651 for ; Sat, 21 Sep 2024 10:05:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srv6i-00026X-GI; Sat, 21 Sep 2024 04:04:44 -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 1srv6g-00025v-Cj for guix-patches@gnu.org; Sat, 21 Sep 2024 04:04:42 -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 1srv6g-0007Zo-3m for guix-patches@gnu.org; Sat, 21 Sep 2024 04:04:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=SGIX3lKzdvIsn4XzV4xaeCZ/n0iY37uv9n0DhTSWRQw=; b=up9UcU1LVYJdbTAC9vpxIb+z3OqT/dibEOrS6nBSqUF1cL/ax0M88APCY5Q7AWT2d4kytalroDpXNP+GcfV7ANDp+7VYvzz5x8v/9WpbQDooXIYjtA1osRrwqZn0ZazCptRWkRIsMunqvp32eCUVIO/VPMUtXww/Q8TnM13BhU06gBhOGewV2ThZb772tWX3AsU4qxdHepH0y4pvXyU/WdOST/+OWdkkL+r1IgPBEQZMpuB33Ir9DqPl1/RycY2bPpFko7AfN1GuO7oCdEUGXEkAIQ4PYmJOOsemOxICHd6/dPP7y2c+cfUPjO1Kml4X2M2yoATlgGM2ui2qUgsaPQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srv6z-0006XQ-VU for guix-patches@gnu.org; Sat, 21 Sep 2024 04:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73406] [PATCH v2 1/2] gnu: sane-backends-minimal: fix lock path for plustek backend Resent-From: Adrien 'neox' Bourmault Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Sep 2024 08:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73406 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73406@debbugs.gnu.org Cc: Adrien 'neox' Bourmault Received: via spool by 73406-submit@debbugs.gnu.org id=B73406.172690584525001 (code B ref 73406); Sat, 21 Sep 2024 08:05:01 +0000 Received: (at 73406) by debbugs.gnu.org; 21 Sep 2024 08:04:05 +0000 Received: from localhost ([127.0.0.1]:36999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srv64-0006VB-KM for submit@debbugs.gnu.org; Sat, 21 Sep 2024 04:04:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srv62-0006Ub-TA for 73406@debbugs.gnu.org; Sat, 21 Sep 2024 04:04:03 -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 ) id 1srv5d-0007WQ-82; Sat, 21 Sep 2024 04:03:37 -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=SGIX3lKzdvIsn4XzV4xaeCZ/n0iY37uv9n0DhTSWRQw=; b=aYe2oUBKYlvsQStb55PQ BxAMqeqeSQDrj8ZsftYi180OXiVMsj/mIhFNSgLyAtlcuDb1jXES+pcowHsMZcI/Dr7AhzfcQb1ne 7Ind6VhV7g7XCyT6vKCISeyduYHd7UODwaJ8FNBlW4sYufh9+g/BgyV0FdL/jaz4zllldHjW5OG0s qLrKNBpBFhldx3v+hxqPyaLxTh8tX5AQBCbCm3DrATRQOLPD2HiheFDnPqK/8vwmmXydpnXciHYjb 9VqJ0XxD1ESCVIUPK6fktGe4XmoQOFqNYkyhoPJv2GXg/bsaZJUEYxt7jCXbXJ9fV1Btnafe9jobb 41ZJk/KdmMl05Q==; From: Adrien 'neox' Bourmault Date: Sat, 21 Sep 2024 10:03:32 +0200 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.01 X-Spam-Score: -6.01 X-Migadu-Queue-Id: CC1D37F651 X-Migadu-Scanner: mx10.migadu.com X-TUID: 9jNj9x++EHeC Message-ID: <20240921080332.vNz-gNDDWvvWMfJoCTbOW-5i-l67uhMG42ZhW7QKUS0@z> * 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 --- gnu/packages/scanner.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm index a2faaa2728..a346f004ae 100644 --- a/gnu/packages/scanner.scm +++ b/gnu/packages/scanner.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2017, 2019, 2020, 2022 Tobias Geerinckx-Rice ;;; Copyright © 2018 Efraim Flashner ;;; Copyright © 2022 João Gabriel +;;; Copyright © 2024 Adrien Bourmault ;;; ;;; This file is part of GNU Guix. ;;; @@ -136,7 +137,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 +147,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