From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sNSSBmrH7Wa73gAAqHPOHw:P1 (envelope-from ) for ; Fri, 20 Sep 2024 19:05:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sNSSBmrH7Wa73gAAqHPOHw (envelope-from ) for ; Fri, 20 Sep 2024 21:05:14 +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=kM1eTnR5; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=keFl1TaQ; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726859113; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=SITGMNM4yvBpT3NOZxg/2/N8fzJeArlYlkpvQs89/js=; b=UK0d9RUJ7HhzjKrS0vZwRWSW10e/CsC3vE3egIQ4cK14esHRQoTs91lvZPpfqXVZwW1ImS xEOam/jwa2f9wAd88F1GFqYpT/3r4kEYTFpSLwJg1LoDUGt/76u34k6OOfKW2pqUgWToZD LDE/a5bkk3Vhf9EySe5xT1nF229LFvCoiC+d9WMn0GQlV/JNukWKHVP2BO0MX535NQ10LG K9qAiB4gretfo9dSwpDyi+Ta1gkvdf3J3re6XnKm8URY1W0WrVwhi/C3P7IYNaKQ+F8Zuj hS4wUH6qewVScMbcmIDIog+oA7odDboRQSlMktYrXzkjt7+5x2r0/jYk+EpXSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726859113; a=rsa-sha256; cv=none; b=OeV/WVdhEHrE2Liqczw5Kd+T0JYzt3kJoc9miZMA6XXgc81PfEBJgfEQlL+eZ71novJE1d p2PltowC50Th8fgqpCX+2qM1dmjKL8bDmn8eoef677ALwal57PNVOFlJkv10Amqn2ANe/a gttN9xzAjEbU+88T0+T3RZcpC0ISdeT0ObT/7jz1Hz4xsrQw2xnxgE0kE/6DFLCUmrR9Iy rvt9uzzSVbcSGTredQGqLLx3r/BYdBaCtAoOjYaXornt7WMZbQfdA3YxM3E4OT8eSMbQ71 filFNqWIbCcFReP1CqE1TdU1gGwtfUAUKYy8sBk5AtzE1+csvGbddl96YAIF0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=kM1eTnR5; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=keFl1TaQ; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 DE3716AAAF for ; Fri, 20 Sep 2024 21:05:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srivv-0003iy-GY; Fri, 20 Sep 2024 15:04:47 -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 1srivs-0003i4-MP for guix-patches@gnu.org; Fri, 20 Sep 2024 15:04:44 -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 1srivs-0001m2-DA for guix-patches@gnu.org; Fri, 20 Sep 2024 15:04:44 -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=SITGMNM4yvBpT3NOZxg/2/N8fzJeArlYlkpvQs89/js=; b=kM1eTnR5NxQV5Bo7A+Ns7JilljJk23V0qZcyFjuwZvE+kfGm6dNruqsj15XIwCAFIHJDkcp6Zu2kFSZF8yFmkHOhtZqTdswEPZKHyT78ZfFw8UnUSJeWrM8Ck0xdsOuLYnnq6MOmFx/YUuar5lIngFvab+ohD7dW14ujkXtG+39X10SEZo1T154/9kU2Q1z8hAauacTwMNC8q5dF3UJm9pjwPtnB3We1AMtMXuQxLe3IlCNrsuihxuHatk5iHGC7aLi/zEi6MvQHZkCMN7mMQykznFNmLCcA8pzGJC6k97UpZA4sYP6iUDCdJYUICrOB2ILeSb/USLLu6/rt7N+TeA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sriwB-0005vU-Fg for guix-patches@gnu.org; Fri, 20 Sep 2024 15:05:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73392] [PATCH 1/2] gnu: sane-backends-minimal: fix lock path for plustek backend Resent-From: neox Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Sep 2024 19:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73392 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73392@debbugs.gnu.org Cc: Adrien 'neox' Bourmault X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172685906722683 (code B ref -1); Fri, 20 Sep 2024 19:05:03 +0000 Received: (at submit) by debbugs.gnu.org; 20 Sep 2024 19:04:27 +0000 Received: from localhost ([127.0.0.1]:36360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srivb-0005tm-7M for submit@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 ) id 1srivX-0005tZ-Fx for submit@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 ) id 1srivE-0003fM-25 for guix-patches@gnu.org; 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 ) 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 Date: Fri, 20 Sep 2024 21:03:32 +0200 Message-ID: <5c51a9beba46c7f611fe90cc824f0fcbf2505600.1726827449.git.neox@gnu.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.51 X-Spam-Score: -5.51 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Queue-Id: DE3716AAAF X-TUID: /WIbMwj+qVgq From: Adrien 'neox' Bourmault * 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 | 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